Skip to content

Fix optimistic Program run state race#693

Merged
edwin-zvs merged 1 commit into
mainfrom
fix-program-run-optimistic-race
Jul 2, 2026
Merged

Fix optimistic Program run state race#693
edwin-zvs merged 1 commit into
mainfrom
fix-program-run-optimistic-race

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • Track whether Program run shimmer state is daemon-confirmed or still client-optimistic.
  • Preserve unconfirmed optimistic Program runs when program/state broadcasts active_run: null, while still clearing daemon-confirmed runs.
  • Apply the same rule in the web Program view and document the refined spec 0042 consequence.

Tests

  • cargo test -p agentd-cli --bin construct
  • cargo test -p agentd --lib program
  • cargo test -p agentd-e2e --test program_view
  • cargo build

No recording attached: this is a transient state-ordering fix covered by unit and e2e assertions rather than a stable visual delta.

@edwin-zvs
edwin-zvs force-pushed the fix-program-run-optimistic-race branch from a2abbc6 to b02ccc9 Compare July 2, 2026 20:56
@edwin-zvs
edwin-zvs merged commit d34928a into main Jul 2, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the fix-program-run-optimistic-race branch July 2, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant