Skip to content

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

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-370f042f
Apr 28, 2026
Merged

fix(config): add request_timeout_seconds and stale_timeout_seconds to provider _KNOWN_KEYS#16908
teknium1 merged 1 commit into
mainfrom
hermes/hermes-370f042f

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #16853 — cherry-picked onto current main.

Summary

Provider-entry validator no longer warns about request_timeout_seconds / stale_timeout_seconds, which are documented in cli-config.yaml.example and read at runtime by hermes_cli/timeouts.py.

Changes

  • hermes_cli/config.py: add both keys to _KNOWN_KEYS frozenset
  • tests/hermes_cli/test_provider_config_validation.py: positive test that the keys no longer trigger the unknown-key warning

Validation

  • Targeted: tests/hermes_cli/test_provider_config_validation.py — 17/17 pass
  • E2E: calling _normalize_custom_provider_entry({..., request_timeout_seconds: 300, stale_timeout_seconds: 900}) emits no warning; truly unknown keys still warn.

Credit: @vominh1919 (authorship preserved via cherry-pick). Closes #16853.

… 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 #16779
@teknium1 teknium1 merged commit 0169c51 into main Apr 28, 2026
11 of 12 checks passed
@teknium1 teknium1 deleted the hermes/hermes-370f042f branch April 28, 2026 08:28
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels Apr 28, 2026
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 P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants