Keep command center errors visible and preserve drafts (#44651)

## Why

Command center failures need to remain visible while users retain their task selection and composer draft, including when a task is already managed by another app server.

## What changed

- Show action errors above the retained dashboard with a return option and a clear explanation for tasks open elsewhere.
- Keep the dashboard open until task attachment succeeds, and return to the conversation when selecting the already displayed task.
- Offer “View unsent task” in a pager when restoring a failed submission would overwrite newer input.
- Show task refresh failures inline and clear the notice after a successful refresh.

## Testing

Add regression tests and snapshots for attachment conflicts, preserved selection and drafts, successful attachment, inline refresh recovery, unsent task viewing, and visible action failures.

GitOrigin-RevId: 19670c5ea506414a835296141004db567b0cafef
This commit is contained in:
Eric Traut
2026-09-10 21:42:01 +00:00
committed by copyberry
parent 1aaa453ce2
commit db2e09106c
14 changed files with 411 additions and 65 deletions
+4
View File
@@ -274,6 +274,10 @@ pub(crate) enum AppEvent {
CloseMisalignmentReview,
/// Open the daemon-wide overview of recent and locally retained root sessions.
OpenAgentsOverview,
/// Present a failed command-center action above the retained dashboard.
AgentsOverviewError(String),
/// Show a failed draft without replacing newer composer input.
ViewAgentsOverviewUnsentPrompt(String),
/// Update the daemon-wide overview after a background thread listing finishes.
AgentsOverviewThreadsLoaded {
request_id: Uuid,