Skip to content

fix(hindsight): make cloud client timeout configurable#9882

Closed
konsisumer wants to merge 4 commits into
NousResearch:mainfrom
konsisumer:fix/hindsight-configurable-timeout
Closed

fix(hindsight): make cloud client timeout configurable#9882
konsisumer wants to merge 4 commits into
NousResearch:mainfrom
konsisumer:fix/hindsight-configurable-timeout

Conversation

@konsisumer

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Existing hindsight_reflect calls with slow LLM providers should no longer timeout prematurely
  • Setting HINDSIGHT_TIMEOUT=60 or "timeout": 60 in config.json should override the default

Closes #9869

@konsisumer konsisumer marked this pull request as ready for review April 14, 2026 22:34
@konsisumer konsisumer force-pushed the fix/hindsight-configurable-timeout branch 6 times, most recently from 977e8e5 to a716796 Compare April 16, 2026 14:06
The Hindsight cloud client was hardcoded to a 30s timeout, causing
hindsight_reflect to fail on LLM synthesis operations that routinely
take longer. The timeout is now configurable via config key "timeout"
or HINDSIGHT_TIMEOUT env var, defaulting to 120s to match the
_run_sync wrapper.

Closes NousResearch#9869
…ntials

The copilot credential pool entry does not include a base_url, so when
resolve_runtime_provider takes the pool path the returned base_url is
empty.  Add a fallback to DEFAULT_GITHUB_MODELS_BASE_URL, matching how
other providers (codex, qwen, openrouter) handle the same scenario.

Fixes test_runtime_copilot_uses_gh_cli_token.
…on model conflict

The zai provider now has an explicit entry in _PROVIDER_VISION_MODELS
(glm-5v-turbo) on main, so the test no longer exercises the prefix-strip
fallback path. Switch to deepseek which has no explicit vision model mapping.
The rebase onto main mixed the branch's deepseek config with main's
glm-5v-turbo assertion. Restore main's version of this test since
main already fixed the assertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Hindsight plugin hardcoded 30s timeout causes hindsight_reflect to fail

1 participant