Repository navigation
fix(antigravity): guard WSL /mnt rule, bound install dedupe set, and short-circuit sign-in lookup - #51591
Conversation
…short-circuit sign-in lookup - STA-16724: only filter Windows drive mounts in findHostProgram on WSL guests using async WSL/mount checks so native Linux /mnt/<x> installs are kept. - STA-16726: cap reDetectedAfter Set in use-managed-runtime-install.ts at 128 entries with FIFO eviction. - STA-16708: short-circuit nativeChatSignInAccount before walking transcript history when unavailable, launchDetails, or a newer submission already decides.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Fixes the remaining still-present issues from the 1.4.267 delta release scan (Slice A: Antigravity / installer / sign-in):
src/main/acp/launch/acp-launch-command.ts,src/main/wsl/filesystem/wsl-guest-windows-drive-path.ts): Restrict the WSL/mnt/<drive>rejection infindHostProgramto actual WSL guests (using async WSL detection and/proc/mountsdrive mount discovery viareadGuestWindowsDriveMountsAsync/isWslGuestProcessAsync) instead of rejecting/mnt/<letter>/...unconditionally on native Linux. In WSL guests, strip Windows drive mount entries fromPATHbefore resolving so a native Linux binary later onPATHis not shadowed by a Windows copy.src/renderer/src/runtime/hosts/installation/use-managed-runtime-install.ts): Bound the module-levelreDetectedAfterSet<string>with a FIFO cap (MAX_RE_DETECTED_OPERATIONS = 128) so completed installer operation IDs are not retained unboundedly for the lifetime of the renderer.src/renderer/src/components/native-chat/host-access/native-chat-sign-in-account.ts): Short-circuitnativeChatSignInAccountwhenunavailableorlaunchDetailsalready determines the sign-in account instead of eagerly callingcurrentFailure(items, submissions), and skip scanning transcript items incurrentFailurewhen the latest submission's sequence is already newer than the last item in the transcript.(Note:
STA-16725was already fixed onmainin #46368 andSTA-16727was already fixed onmainin #48305; both were closed as Done in Linear.)Performance
/proc/mountsreading infindHostProgramusenode:fs/promises(access,readFile) viaisWslGuestProcessAsync/readGuestWindowsDriveMountsAsyncand cache the parsed mount list after the first read.reDetectedAfteris capped at 128 entries with FIFO eviction.nativeChatSignInAccountno longer walksitemswhenunavailableorlaunchDetailsalready provides the account, or when the latest submission is strictly newer than the last journal item.Verification
timeout 900 pnpm check:changedpasses all 40 checks (format, oxlint, typecheck, unit tests including newsrc/main/acp/launch/acp-launch-command.test.ts, and all ratchets).