Skip to content

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

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

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

Conversation

@cte
Copy link
Copy Markdown
Collaborator

@cte cte commented Mar 2, 2026

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>
@dosubot dosubot bot 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 main Mar 2, 2026
14 checks passed
@cte cte deleted the cte/cli-ignore-agent-timeout branch March 2, 2026 21:25
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 2, 2026
@github-actions github-actions bot mentioned this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant