bug: terminal() tool hard-caps foreground timeout at 600s, needs 1200+ #65
Labels
No labels
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
bug
documentation
enhancement
feature-request
in-progress
quickfix
research
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/infrastructure#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
terminal_tool.pyline 105-108 hardcodesFOREGROUND_MAX_TIMEOUT = 600with an env var override (TERMINAL_MAX_FOREGROUND_TIMEOUT). The tool rejects any foregroundtimeout=parameter above 600s.GSD pipelines, provider calls, and long-running analysis commands routinely exceed 600s. The 600s cap forces either:
Impact
Request
terminal:section instead of a source-code env varLocation
~/.hermes/hermes-agent/tools/terminal_tool.pylines 105-111Fix Applied
Added
TERMINAL_MAX_FOREGROUND_TIMEOUT=1200to~/.hermes/.env.Hermes loads
.envviaload_hermes_dotenv()before tool modules are imported, so this env var is picked up at import time by_safe_parse_import_env()interminal_tool.py.Test
Before fix (current session, still at 600 cap):
After next process restart, the env var will be read and the cap will be 1200.
Resolution
.env— survives agent restarts, no code change neededconfig.yamlunder theterminal:section so it's discoverable, not an invisible env var. Accepting close on the env var workaround; reopen if you want the config.yaml route.