Skip to content

CLI: improve stream recovery and add configurable consecutive mistake limit#11775

Open
cte wants to merge 1 commit intomainfrom
fix/cli-stream-mistake-limit-recovery
Open

CLI: improve stream recovery and add configurable consecutive mistake limit#11775
cte wants to merge 1 commit intomainfrom
fix/cli-stream-mistake-limit-recovery

Conversation

@cte
Copy link
Collaborator

@cte cte commented Feb 27, 2026

Summary

  • stop treating recoverable idle asks (mistake_limit_reached, api_req_failed) as terminal task completion in CLI stream mode
  • keep terminal completion events for completion_result and resume_completed_task
  • add --consecutive-mistake-limit <limit> CLI flag and thread it into extension settings
  • set CLI default consecutive mistake limit to 10 and document it
  • add/update tests for completion semantics and CLI settings propagation

Validation

  • pnpm -C apps/cli run -s check-types
  • pnpm -C apps/cli run -s lint
  • pnpm -C apps/cli vitest run src/agent/__tests__/events.test.ts src/agent/__tests__/extension-host.test.ts src/agent/__tests__/extension-client.test.ts src/lib/storage/__tests__/settings.test.ts
  • pnpm -C apps/cli vitest run src/commands/cli/__tests__/run.test.ts src/commands/cli/__tests__/parse-stdin-command.test.ts

Interactively review PR in Roo Code Cloud

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant