github →

New request

#3333: Preserve new-chat draft when switching to a history session

We'll provision a sandbox, run an agent against the issue, and open a draft PR. You can pull the branch and iterate from there.

Issue
bughelp wanteduxsprint-candidate

Description

If a user starts a new chat, types an unsent draft, and then opens a session from history, the New Chat composer text is lost. Returning to New Chat should restore the draft.

Steps to reproduce

  1. Click New Chat.
  2. Type some text in the composer, especially a longer prompt.
  3. Click an existing session in the history/sidebar.
  4. Go back to New Chat.

Actual behavior

The composer is empty and the unsent draft is gone.

Expected behavior

The draft typed into New Chat is saved and restored until it is sent or explicitly cleared.

Notes

Related to #3108, but this is the narrower in-app navigation case: selecting a history session should not discard the unsent New Chat draft.

Assessmentadvisory
bug easy80% confidence

Localized navigation bug where unsent composer draft state is discarded on session switch rather than persisted.

Likely files
  • static/composer.js
  • static/sessions.js
  • static/state.js
Create the request

This opens a fresh agent run and a draft PR for issue #3333.

Cancel