codeburn/app/electron
iamtoruk 32a10e4bdb fix(app): check the tray app is there before talking to it
The stored path is a memory, not a fact. It was written by a build that derived
the binary name from the product name, so on this machine it named a file that
has never existed, and the switches sent --quit and --reload-settings into it
while the desktop app's own stderr said ENOENT. A tray app uninstalled after the
path was stored gets to the same place.

So nothing is launched, and no Run value is written, without checking the file
first. A stale stored path is re-resolved through the CLI rather than trusted,
which costs one `codeburn menubar`: it re-reads the uninstall registry and
installs nothing when the version already matches. A path the installer reports
but nothing is at is refused rather than saved, since saving it is what made the
switches silently do nothing.

Launch at login gets the same treatment. The rule is still that an existing Run
value is not this app's to rewrite, with one exception: a value pointing at a
file that is not there is not somebody's preference, it is the old wrong path,
and it would fail silently at every login. That one is repaired.

While here: a byte order mark no longer makes the settings file unreadable.
Falling back to the defaults means seeding again, which reinstalls the tray app
and re-enables the rail, and a BOM is what anything editing that file by hand on
Windows leaves behind.
2026-09-02 06:03:53 -07:00
..
quota fix(quota): skip zero-entitlement and unlimited Copilot windows instead of showing 100% used 2026-08-31 03:26:19 -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 resident-serve tests room on a loaded machine 2026-09-02 05:35:25 -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): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
main.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
menubar.test.ts fix(app): check the tray app is there before talking to it 2026-09-02 06:03:53 -07:00
menubar.ts fix(app): check the tray app is there before talking to it 2026-09-02 06:03:53 -07:00
preload.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -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
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