Skip to content

[P1][OCR] Stop auto-runner loops after abort and guard invalid round cursors #50

Description

@Ryder-Sun

Source: OCR_ANALYSIS_REPORT.md, OpenCode Review report generated on 2026-08-12.

Findings: M-3, M-4. desktop/src/workspace/local-workspace-auto-runner.cjs can continue loop work after circuit breaker or hard budget aborts, and firstRound can become NaN when controller.currentRound is undefined. Either case can cause confusing terminal behavior or a silent failure path.

Expected fix:

  • Break immediately after circuit breaker or hard budget abort.
  • Normalize controller.currentRound before deriving firstRound.
  • Add focused tests for abort-loop termination and undefined current round recovery.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:harnessMulti-Agent orchestration, run state, and collaborationbugSomething isn't workingpriority:p1Core product or architecture priority

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions