Repository navigation
Closed
Description
Refs: #348043
Complexity: 3
Authors: Megan Rogge (@meganrogge)
Testing milestone: 1.147.0
Setup
Use the latest Insiders. In the Agents window, enable sessions.drafts.enabled.
Have a workspace, an existing conversation, and a harmless file to attach. Use distinctive text in each draft so it is easy to notice a mix-up.
Test
Save and open from the notification
- Compose a nonempty New Session request with an attachment and an inline reference. Select a workspace, agent, model, and other available configuration, then navigate to another conversation. The composition should be saved in Drafts without sending a request or starting an agent session. You should see a Created draft notification with an Open Draft link.
- Click Open Draft in that notification. The Drafts section should expand if collapsed, the saved draft's row should be selected, and its contents should be restored with focus in the chat input. Verify the text, attachment, inline reference, workspace, agent, and configuration are preserved.
Multiple drafts and navigation
- Create a second, different composition and navigate away. Preview and open both drafts directly from the Drafts list. Each should retain its own text, context, workspace, agent, and configuration.
- Edit a resumed draft, navigate away, and use Back/Forward. Verify that edits stay with the correct draft and navigation does not duplicate entries or overwrite another composition.
Reload and restart
- Reload and restart the window. Saved drafts should remain available and independently restorable. Reload, autosave, and shutdown alone must not create extra saved drafts, send requests, or automatically open saved entries.
Submit and delete
- Submit a resumed draft. Remove it only after the request is accepted. If submission fails naturally, its text and context should remain recoverable; newer edits or an occupied input must not be overwritten. Also verify that deleting one saved draft leaves the others untouched.
Settings and accessibility
- Disable and reenable
sessions.drafts.enabled. Saved data should be preserved. Try preview/open/delete using the keyboard and, if available, a screen reader; verify understandable labels and focus returning to the input.
Activity