codeburn/app/electron
iamtoruk 4113ae30e0 fix(quota): Antigravity looks for its language server the Windows way
The desktop app's stderr on the VM carried "Antigravity quota unavailable:
Command failed: ps -ax -o pid=,command=" with "ps: unknown option -- x" on every
quota poll. Windows has no ps, and asking for one is a spawn failure rather than
an answer, so the provider reported a transient failure with a warning behind it
instead of simply not being there.

Win32_Process is the same listing by another name, and it is already how
src/providers/antigravity.ts finds these servers, so the quota adapter asks the
same way: PowerShell by absolute System32 path, argv only, no shell string, and
the Where-Object is a prefilter rather than the decision, which classifyProcessLine
still makes. There is no lsof either, so a pid's listening ports come from
netstat -ano; its state column is localized, so it is not matched on, and a row
that turns out not to be listening only costs one refused probe.

The guard this replaces was `win32 && !deps.execFile`, which the desktop app
defeated by injecting execFile, and which its own copy of the adapter never had
at all. Both copies now carry the same code, and the platform is injected so
either branch can be tested from either OS.
2026-09-02 07:00:22 -07:00
..
quota fix(quota): Antigravity looks for its language server the Windows way 2026-09-02 07:00:22 -07:00
cli-win32-reap.test.ts fix: bound the serve drain, reap orphans on Windows, and de-flake the grace test 2026-08-22 10:36:58 -07:00
cli.test.ts test(app): give the orphan-reaping tests room too 2026-09-02 06:27:46 -07:00
cli.ts fix(app): the desktop app can spawn a CLI on Windows at all 2026-09-02 05:28:00 -07:00
main.test.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
main.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
menubar.test.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
menubar.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
preload.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
telemetry.test.ts fix(telemetry): cap cli_error per kind per day, flush app_close on quit 2026-07-18 23:06:30 +03:00
telemetry.ts fix(telemetry): cap cli_error per kind per day, flush app_close on quit 2026-07-18 23:06:30 +03:00
tray-settings.test.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
tray-settings.ts feat(app): read and write the tray app's own settings 2026-09-02 06:28:05 -07:00
updates.test.ts feat(app): update-available notifications 2026-07-17 04:58:13 -07:00
updates.ts feat(app): update-available notifications 2026-07-17 04:58:13 -07:00