Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

fix(cli): ignore model-provided timeout in CLI runtime - #11835

Merged
cte merged 1 commit into
mainfrom
cte/cli-ignore-agent-timeout
Mar 2, 2026
Merged

fix(cli): ignore model-provided timeout in CLI runtime#11835
cte merged 1 commit into
mainfrom
cte/cli-ignore-agent-timeout

Conversation

@cte

@ctecte commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extract resolveAgentTimeoutMs() from inline timeout logic in ExecuteCommandTool
  • Return 0 (no agent timeout) when ROO_CLI_RUNTIME=1, so command lifetime is governed solely by the user's commandExecutionTimeout setting
  • Add unit tests covering both CLI runtime and non-CLI runtime paths

Test plan

  • Unit tests added for resolveAgentTimeoutMs (CLI runtime returns 0, non-CLI returns converted ms)
  • Verify CLI stdin harness commands are no longer killed by model-provided background timeouts

🤖 Generated with Claude Code

Interactively review PR in Roo Code Cloud

In CLI runtime, stdin harnesses expect command lifetime to be governed
solely by commandExecutionTimeout (user setting), not model-provided
background timeouts. Extract resolveAgentTimeoutMs() and return 0 when
ROO_CLI_RUNTIME=1.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dosubotdosubotBot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Mar 2, 2026
@cte
cte merged commit 7ea91fa into mainMar 2, 2026
14 checks passed
@cte
cte deleted the cte/cli-ignore-agent-timeout branch March 2, 2026 21:25
@github-project-automationgithub-project-automationBot moved this from New to Done in Roo Code RoadmapMar 2, 2026
@github-actionsgithub-actionsBot mentioned this pull request Mar 4, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugSomething isn't workingsize:SThis PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@cte