Skip to content

fix(app): ignore stale warm session references#32897

Open
dannyward630 wants to merge 1 commit into
anomalyco:devfrom
dannyward630:fix/desktop-stale-session-bootstrap
Open

fix(app): ignore stale warm session references#32897
dannyward630 wants to merge 1 commit into
anomalyco:devfrom
dannyward630:fix/desktop-stale-session-bootstrap

Conversation

@dannyward630

Copy link
Copy Markdown

Issue for this PR

Closes #32473

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Makes Desktop bootstrap tolerate stale session IDs while warming permission/question session references. If a referenced session has already disappeared and the server returns a 404, bootstrap skips that warm-up entry instead of treating it as a fatal bootstrap error. Other errors still surface through the existing reload error handling.

Adds a regression test for a stale permission session reference so this path stays guarded.

How did you verify your code works?

  • npx --yes bun@1.3.14 test --preload ./happydom.ts ./src/context/global-sync/bootstrap.test.ts
  • npx --yes bun@1.3.14 run typecheck in packages/app

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

Desktop renderer fatally crashes (404 NotFoundError) when lastProjectSession references a session missing from opencode.db

1 participant