Skip to content

fix(compare): skip a provider whose discovery fails instead of exiting - #1643

Merged
iamtoruk merged 1 commit into
mainfrom
fix/compare-blocked-provider
Oct 5, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
fix/compare-blocked-provider

Conversation

@iamtoruk

@iamtoruk iamtoruk commented Oct 5, 2026

Copy link
Copy Markdown
Member

compare --format json called discoverSessions() directly for its self-correction scan. Since 0.9.25 some providers throw on purpose so a run can be marked incomplete (Warp without Full Disk Access, busy or locked SQLite stores). Every other command goes through safeDiscoverSessions, which warns and skips the provider; compare didn't, so one blocked provider exited the whole command with 1.

In the desktop app that left the Compare section on a permanent error panel, and every failure fell back to a second cold spawn. Telemetry shows the compare nonzero errors only on desktop 0.9.25.

The TUI compare and the dashboard provider probe had the same raw call and get the same one-line change.

Checked: with an unreadable Warp database, main exits 1 with an uncaught macOS blocked access error; this branch exits 0 with the "skipped warp" warning. tsc clean, compare CLI tests pass.

compare's self-correction scan called discoverSessions() directly, so a
provider that throws on purpose (Warp without Full Disk Access, a busy or
locked SQLite store) killed the whole command with exit 1. The desktop
Compare section then showed an error on every poll. Route it, the TUI
compare and the dashboard provider probe through safeDiscoverSessions like
every other command.
@iamtoruk
iamtoruk merged commit 75eff6e into main Oct 5, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant