fix(cli): clear recovered provider errors

Closed
MA
4mo ago
+40-7

Summary

  • clear a remembered provider error when a later assistant completion finishes successfully
  • allow a non-interactive run to exit successfully after automatic compaction recovers
  • cover a 413 overflow followed by compaction and recovered output

Test plan

  • bun test test/cli/run/run-process.test.ts --test-name-pattern "exits 0 when compaction recovers a provider size error"
  • bun typecheck from packages/opencode
  • repository pre-push typecheck (16 packages)

Summary by cubic

Fixes CLI run error recovery so a recovered provider error no longer forces a failure. Non-interactive runs now exit 0 after automatic compaction successfully recovers from a size error.

  • Bug Fixes
    • Clear a remembered provider error when an assistant completion finishes with finish and no error.
    • Allow non-interactive runs to exit 0 after auto-compaction recovers from a 413 provider size error.
    • Add a test covering 413 overflow → compaction → recovered output.