Skip to content

fix(web): prevent startup project switches while typing - #152

Merged
incognitojam merged 2 commits into
mainfrom
t3code/preserve-composer-draft-on-project-switch
Aug 15, 2026
Merged

fix(web): prevent startup project switches while typing#152
incognitojam merged 2 commits into
mainfrom
t3code/preserve-composer-draft-on-project-switch

Conversation

@incognitojam

Copy link
Copy Markdown
Collaborator

The web client could start restoring the most recent project from cached thread shells while the server was still resolving its launch-directory bootstrap project. If those automatic navigations overlapped, a late bootstrap route could switch projects after the composer became editable, leaving the user's text behind as a draft in the first project.

Coordinate index-draft and server-bootstrap navigation through a one-shot in-memory owner. A bootstrap target that is already known can open normally, but a late bootstrap welcome cannot interrupt another launch navigation. Bootstrap targets are marked handled per environment and thread so later visits to Home continue to open a normal draft.

Verification:

  • vp test run apps/web/src/launchNavigationStore.test.ts
  • vp run typecheck in apps/web
  • targeted formatter check

Browser evidence was not captured because this is launch-timing behavior and computer-use permission was not requested.


Written by an agent (T3 Code, gpt-5.6-sol).

@incognitojam
incognitojam merged commit 7853381 into main Aug 15, 2026
8 of 9 checks passed
@incognitojam
incognitojam deleted the t3code/preserve-composer-draft-on-project-switch branch August 15, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant