Repository navigation
[AI-3464] Release the turn flag before an Antigravity exit waiter resumes - #1300
Conversation
…umes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Summary by QodoRelease Antigravity turn flag before notifying exit waiters
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 66cedab |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 9853b80 |
AI-3464 (filed in Linear only; there is no GitHub issue)
What & why
EnterTerminalcompleted_terminalTcsbefore it clearedTurnInFlight, so a caller resumed byWaitForExitAsynccould observe a stopped runtime that still held a turn: the CI failureExpected to be false but found True. The flag is now cleared first. The test also stops treatingHasExitedas proof of Terminal (while the turn is Executing it reports the fake process's own exit). It waits onWaitForExitAsync()underWaitAsync(HangGuard), which throws if Terminal never comes, instead of a timeout overload that returns silently.Verification
A 200 ms pause between completing
_terminalTcsand clearing the flag (old order) fails the test with the CI assertion. The same pause before completing it (new order) passes. TheAntigravityActivityClockTestsclass passes locally.🤖 Generated with Claude Code