Skip to content

fix(web): keep the unsent composer draft with its session - #1833

Merged
nikhilunni merged 1 commit into
mainfrom
fix/web-composer-draft-per-session
Nov 26, 2026
Merged

nikhilunni merged 1 commit into
mainfrom
fix/web-composer-draft-per-session

Conversation

@gsdatta

@gsdatta gsdatta commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

The sessions rail changes only the sessionId prop, so SessionThread is not remounted on a switch. The composer text (assistant-ui composer state), the attached upload tokens, and the plan-mode toggle stayed in the composer and showed on the next session. A send from there could also reference an upload that lives in the other session's sandbox.

  • Save and restore the composer text per session before paint.
  • Scope useSessionUploads token lists by a draft key; SessionThread keys by session. The start screen keeps one list, as before.
  • Keep the plan-mode override per session.

Review pass: no other issues found in the touched files.

The sessions rail changes only the sessionId prop, so SessionThread is
not remounted on a switch. The composer text (assistant-ui composer
state), the attached upload tokens, and the plan-mode toggle stayed in
the composer and showed on the next session. A send from there could
also reference an upload that lives in the other session's sandbox.

- Save and restore the composer text per session before paint.
- Scope useSessionUploads token lists by a draft key; SessionThread
  keys by session. The start screen keeps one list, as before.
- Keep the plan-mode override per session.

Review pass: no other issues found in the touched files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@gsdatta

gsdatta commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

@nikhilunni
nikhilunni added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 9d74f4c Nov 26, 2026
28 of 29 checks passed
@nikhilunni
nikhilunni deleted the fix/web-composer-draft-per-session branch November 26, 2026 16:12
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.

2 participants