You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document the interactive subagent done signal and the tools.agent.interactive.idle_timeout auto-close #873
PR inference-gateway/cli#1429 (fix for inference-gateway/cli#1422) lets tmux-interactive subagents signal task completion and auto-closes their idle panes. The CLI repo's own docs (docs/configuration-reference.md, docs/subagents.md) are already updated in-tree. This ticket tracks the docs-site-facing follow-up so user-facing documentation pages stay in sync.
What changed, user-facing:
The subagent chat writes done: true in the SubagentResultFile (the JSON behind INFER_SUBAGENT_RESULT_FILE) on its task turn, and on a failed terminal turn. The parent monitor closes the pane itself and emits exactly one [Subagent Completed: <label>] note (with the error on failure).
A subagent that never reports done (a turn that ended without any text, a hung TUI, or a pane running an older binary) is closed after tools.agent.idle_timeout seconds of inactivity: default 300 seconds, 0 disables, env override INFER_TOOLS_AGENT_IDLE_TIMEOUT. The close note is [Subagent Closed: <label>] and the early warning is [Subagent Idle: <label>]. The old fake [Subagent Completed] idle message is gone.
Every completed turn with text counts as done, including one that ends with a question, so task descriptions must be self-contained.
The tools.agent.interactive block is removed. layout and fallback no longer exist: panes always open as a vertical split and always fall back to headless outside tmux.
Approval prompts pause that idle clock, and SendSubagentInput typing resets it. CloseSubagent is now only for stopping a subagent early.
Acceptance Criteria
The configuration reference covers tools.agent.idle_timeout: default, 0 disables, the env override, and that approvals pause the clock
No page mentions tools.agent.interactive.layout or tools.agent.interactive.fallback
The subagent docs describe the done signal and the note formats ([Subagent Completed], [Subagent Idle], [Subagent Closed]) and that the main agent no longer needs CloseSubagent in the normal case
Any page that describes interactive subagent panes as a forever-open REPL is updated to match
New "Done signal and idle auto-close" subsection: done: true in the INFER_SUBAGENT_RESULT_FILE result file, [Subagent Completed] / [Subagent Idle] / [Subagent Closed] notes, every completed turn with text counts as done, CloseSubagent only for stopping early
Removed tools.agent.interactive (multiplexer, layout, fallback) from the config block and env-var table; panes always open as a vertical split and always fall back to headless outside tmux
Validated: bun run format, bun run lint:md, bun run build all pass
Activity
fix(tools): signal done and auto-close idle interactive subagents (#1429
edenreich commentedon Sep 30, 2026
@claude Can you document this?
inference-gateway-maintainer commentedon Sep 30, 2026
Claude finished @edenreich's task in 1m 39s —— View job •
docs/issue-873-20260930-1148• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-873-20260930-1148?quick_pull=1&title=Issue%20%23873%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23873%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented the subagent done signal and idle auto-close
tools.agentdocs live incli.md;a2a.md/observability.mdonly link to it)tools.agent.idle_timeout(default300,0disables,INFER_TOOLS_AGENT_IDLE_TIMEOUT, approvals pause the clock)done: truein theINFER_SUBAGENT_RESULT_FILEresult file,[Subagent Completed]/[Subagent Idle]/[Subagent Closed]notes, every completed turn with text counts as done,CloseSubagentonly for stopping earlytools.agent.interactive(multiplexer,layout,fallback) from the config block and env-var table; panes always open as a vertical split and always fall back to headless outside tmuxbun run format,bun run lint:md,bun run buildall passOnly
cli.mdchanged -a2a.mddescribes interactive panes in one sentence that stays accurate and links here for the details, so it needed no edit.PR: #874
| Branch
inference-gateway-releaser commentedon Oct 1, 2026
🎉 This issue has been resolved in version 0.9.20 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀