Skip to content

fix(config): add request_timeout_seconds and stale_timeout_seconds to provider _KNOWN_KEYS#16853

Closed
vominh1919 wants to merge 1 commit into
NousResearch:mainfrom
vominh1919:fix/known-keys-timeout-config
Closed

fix(config): add request_timeout_seconds and stale_timeout_seconds to provider _KNOWN_KEYS#16853
vominh1919 wants to merge 1 commit into
NousResearch:mainfrom
vominh1919:fix/known-keys-timeout-config

Conversation

@vominh1919

Copy link
Copy Markdown
Contributor

What

Add request_timeout_seconds and stale_timeout_seconds to the _KNOWN_KEYS set in hermes_cli/config.py so the provider-entry validator recognizes them as valid config keys.

Why

Both keys are:

  1. Documented in cli-config.yaml.example (lines 87–88, 90, 97)
  2. Read at runtime by hermes_cli/timeouts.pyget_provider_request_timeout() (line 40) and get_provider_stale_timeout() (line 69)

But the validator's _KNOWN_KEYS set (line 2195) was missing them, so every CLI invocation logged a noisy warning for users who followed the documented config:

WARNING hermes_cli.config: providers.ollama-local: unknown config keys ignored: request_timeout_seconds, stale_timeout_seconds

How

  • 1-line fix: Added "request_timeout_seconds", "stale_timeout_seconds" to the _KNOWN_KEYS frozenset.
  • 1 new test: test_timeout_keys_not_flagged_unknown verifies that these keys no longer trigger the warning.

Before vs After

Before:

$ hermes
WARNING hermes_cli.config: providers.ollama-local: unknown config keys ignored: request_timeout_seconds, stale_timeout_seconds

After:

$ hermes
(no warning)

Fixes #16779

… provider _KNOWN_KEYS

Both keys are documented in cli-config.yaml.example and read at runtime by
hermes_cli/timeouts.py (get_provider_request_timeout and get_provider_stale_timeout),
but the provider-entry validator in config.py flagged them as unknown, producing
noisy warnings on every CLI invocation for users who followed the documented config.

Fixes NousResearch#16779
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels Apr 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #16786 and #16812 — all three add request_timeout_seconds/stale_timeout_seconds to _KNOWN_KEYS. Fixes #16779.

1 similar comment
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #16786 and #16812 — all three add request_timeout_seconds/stale_timeout_seconds to _KNOWN_KEYS. Fixes #16779.

@teknium1

Copy link
Copy Markdown
Contributor

Merged via #16908 — your commit was cherry-picked onto current main with authorship preserved in git log. Thanks @vominh1919!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provider validator's _KNOWN_KEYS is missing request_timeout_seconds / stale_timeout_seconds

3 participants