fix(desktop): scope session lookup to the active profile (supersedes #79522) - #89833
Merged
Conversation
23 tasks
OutThisLife
enabled auto-merge
August 19, 2026 07:05
Unscoped getSession hits the primary backend. A 404 then skipped the active profile in the remaining probes, so chats on a non-default profile never loaded. Co-authored-by: Michael McAllister <michael@empowerlo.com>
OutThisLife
force-pushed
the
bb/scope-session-lookup
branch
from
August 19, 2026 15:51
cd90b3b to
d959ba5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supersedes #79522.
Opening a saved chat on a non-default profile (Bot Mode, cron runs) did an unscoped
getSession. Electron sends that to the primary backend. A 404 then skipped the active profile in the remaining probes, so the session was never found.This passes the active profile on the first lookup, matching the later probes.
What was dropped from #79522
mainIsCoverednavigation for Cron / Command Center.openSession(..., 'main')already covers Bot Mode; overlay dismiss is a separate bug.Test plan
npx vitest run --project ui src/app/session/hooks/use-session-actions/resolve-stored-session.test.ts— 10 passeddefaultCredit: @mmcallister8 (primary).