Skip to content

Settle stranded runs interrupted during the admission window - #939

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7787-stranded-running-fleet-settle
Sep 12, 2026
Merged

Settle stranded runs interrupted during the admission window#939
TheGreatAxios merged 1 commit into
mainfrom
cl-7787-stranded-running-fleet-settle

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • The pending_init interrupt branch drops the run-in-flight marker alongside the lifecycle flip, matching every other terminal transition
  • The spawn_agent not-admissible early returns settle through the normal terminal path (settleRun plus end telemetry) instead of only releasing the admission slot
  • A store-level invariant in mutate drops a stranded run-in-flight marker whenever a terminal lifecycle has no settle-capable handle left

Verification

  • bun test src/subagent/ passes (556 pass, 0 fail)
  • bun run check passes (6980 pass, 0 fail)
  • New regression covers the exact CL-7787 ordering: markRunInFlight, interrupt in the admission window, worktree resolves, wait status reaches terminal and the fleet goes dry

Fixes CL-7787

@linear-code

linear-code Bot commented Sep 12, 2026

Copy link
Copy Markdown

CL-7787

@TheGreatAxios
TheGreatAxios merged commit 6b219fa into main Sep 12, 2026
8 of 9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7787-stranded-running-fleet-settle branch September 12, 2026 05:10
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