Repository navigation
fix(chat): back off Antigravity Windows lock scans while a lock changes hands - #2760
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…sting or a resolved lock
|
Review round 1 (omo + Codex Terra), fixed in 8df7e32:
Both new tests fail on 297dee3 and pass on 8df7e32. |
|
Review round 2 (omo, CLEAR at 8df7e32). Left for later, not fixed here:
CodeRabbit skipped this PR (review limit). |
Fixes #2051
Change
Follow-ups from #2016 (Antigravity chat on Windows):
windowsHeldPathsinvalidated the scan and returned without recording the pid's retry backoff, so a lock that kept flipping caused a full Restart Manager pass over every conversation lock on every refresh. That pid now backs off on the same 5/10/20/40/60 s schedule as any other unresolved pid. It still returns[](nothing is proven), and the backoff still resets when the lock listing changes.RmGetList's holder cap gets its own constant,MAX_WINDOWS_HOLDERS, instead of reusingMAX_WINDOWS_CANDIDATES(same value).windowsLockCandidatesreads its one root directly instead of looping over a one-itemSet.agy-store.test.tstests now remove theirmkdtempdirs (this machine had 140 leftover/tmp/agy-store-*dirs).Not changed, as listed in the issue:
invalidateWindowsScan()still drops another pane's scan in progress. That only wastes work: the interrupted pass restarts itself and its waiters get the fresh result.Validation
backs off a pid whose lock keeps changing hands during every scan: on origin/main 7a923ab it fails (21 full scans in 21 polls, expected < 15); with the fix it passes.bun test server/agy-store.test.ts: 19 pass.bun run check fast: ok (typecheck, build, unit 11085 pass / 0 fail).server/windows-native.test.tsis untouched; the Native Windows CI job covers it).