fix(title): honor configured auxiliary.title_generation.timeout (salvage #41844, #32729) - #56322
Merged
Merged
Conversation
kshitijk4poor
enabled auto-merge (rebase)
July 1, 2026 11:06
This was referenced Jul 1, 2026
r266-tech
added a commit
to r266-tech/hermes-agent
that referenced
this pull request
Jul 16, 2026
…t (residual of NousResearch#56322) run_oneshot hard-coded timeout=60.0 and forwarded it, so the live llm.oneshot RPC (which passes task but no timeout) always ignored auxiliary.<task>.timeout -- the exact NousResearch#32729 bug NousResearch#56322 fixed for the generate_title sibling. Resolve the per-task timeout when the caller passes none, preserving the historical 60s default for unconfigured callers.
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Salvage of #41844 by @shandian64 (cherry-picked onto current
main, authorship preserved). The minimal fix for #32729:auxiliary.title_generation.timeoutwas silently ignored.The bug
agent/title_generator.py::generate_titlehardcodedtimeout: float = 30.0in its signature. Its callerauto_title_sessionnever passes an explicit timeout, so the hardcoded30.0always reachedcall_llm— andcall_llmonly resolvesauxiliary.title_generation.timeoutfrom config when it's called withtimeout=None(auxiliary_client.py:5842:effective_timeout = timeout if timeout is not None else _get_task_timeout(task)). So a user who set a high title-generation timeout for a slow local LLM still sawRequest timed out.at 30s every session. Confirmed onmain(title_generator.py:54).The fix (one line)
Optionalis already imported; theNonedefault now flows tocall_llm, which resolvesauxiliary.title_generation.timeout(default 30) from config. An explicittimeout=still overrides. Plus two regression tests: default delegates to config (task=="title_generation",timeout is None) and explicit timeout still forwards.Chosen over competing PRs (issue #32729)
This was a 4-way OPEN cluster. #41844 is the cleanest: the exact one-line default fix with focused, non-tautological tests and no scope creep. Superseded:
call_llm; thorough tests, but more surface than needed.gateway/run.pycall site thatcall_llmalready does internally — redundant plumbing..github/workflows/docker.yml), which disqualifies it as-is.Rebase note
The one-liner applied clean; only the test file conflicted (main added language tests in the same region). Resolved by keeping BOTH main's language tests and #41844's timeout tests.
Review
Ran hermes-agent-dev + hermes-pr-review Phase 2c — 0 Critical / 0 Warnings. Confirmed the fix chain end-to-end, config key exists on main, no behavior change for explicit-timeout callers, tests non-tautological. Locally: 25 passed.
Tests
Supersedes #41844 (and #56285 / #41841 / #39035). Full credit to @shandian64.