Skip to content

docs(web_tools): correct web_extract summarizer timeout comment - #20051

Closed
beardthelion wants to merge 1 commit into
NousResearch:mainfrom
beardthelion:fix/web_extract-timeout-comment
Closed

docs(web_tools): correct web_extract summarizer timeout comment#20051
beardthelion wants to merge 1 commit into
NousResearch:mainfrom
beardthelion:fix/web_extract-timeout-comment

Conversation

@beardthelion

Copy link
Copy Markdown
Contributor

What does this PR do?

Corrects an inaccurate comment at tools/web_tools.py:700-702 describing the timeout behavior for the web_extract LLM summarization call.

The current comment states the default is "360s / 6min". This is wrong:

  • Runtime default when auxiliary.web_extract.timeout is absent from config.yaml: 30s (_DEFAULT_AUX_TIMEOUT in agent/auxiliary_client.py:3140, applied by _get_task_timeout at line 3157).
  • Config template default for fresh configs: 360s (hermes_cli/config.py:697).

Two different defaults in two different files. The comment confuses them. Users with slow local models who read this comment believe they have 6 minutes when they actually have 30s, leading to mystery timeouts.

Related Issue

No issue filed; surfaced while investigating web_extract timeout behavior on a slow local-model deployment.

Type of Change

  • 📝 Documentation update

Changes Made

  • tools/web_tools.py:700-702 — replaced the comment with one that describes both code paths accurately and points users to the correct config key.

How to Test

This is a comment-only change with no behavior modification. Verification that the comment is now accurate:

  1. grep -n '_DEFAULT_AUX_TIMEOUT' agent/auxiliary_client.py_DEFAULT_AUX_TIMEOUT = 30.0 at line 3140.
  2. grep -A1 'web_extract' hermes_cli/config.py | grep timeout → template default 360.
  3. With no auxiliary.web_extract.timeout key in config.yaml, _get_task_timeout("web_extract") returns 30.0 (falls through to _DEFAULT_AUX_TIMEOUT).

Background

The comment was introduced in commit 20b4060d ("fix: web_extract fast-fail on scrape timeout + summarizer resilience", Apr 5 2026). That commit bumped the config template default from 30 to 360 in hermes_cli/config.py but did not touch _DEFAULT_AUX_TIMEOUT in agent/auxiliary_client.py, which had been set to 30.0 since 839d9d74 (Mar 28 2026). The comment was written against the new template default rather than the runtime fallback.

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (docs(scope):)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix (no unrelated commits)
  • I've run pytest tests/ -q -k 'web_extract or web_tools' — 73 passed, 3 skipped, 0 failures (scoped run; full suite not feasible on this dev machine)
  • N/A on test-add — comment-only change, no behavior modified

The comment at tools/web_tools.py:700-702 stated the runtime default for
auxiliary.web_extract.timeout is 360s. The actual runtime default is 30s
(_DEFAULT_AUX_TIMEOUT in agent/auxiliary_client.py:3140), used by
_get_task_timeout when no auxiliary.web_extract.timeout key is present in
config.yaml.

The 360s figure is the config template default written by
hermes_cli/config.py:697 into freshly-generated config.yaml files. It only
takes effect when that key exists in the user's config — not as a fallback.
Users on configs that predate commit 20b4060 (Apr 5, 2026), or who removed
the key, fall through to the 30s _DEFAULT_AUX_TIMEOUT runtime default.

The comment was introduced in 20b4060 alongside the template-default bump
from 30 to 360. The runtime default in auxiliary_client.py was not changed
in that commit and has remained 30s since 839d9d7 (Mar 28, 2026).
@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have tool/web Web search and extraction labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/web Web search and extraction type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants