mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
1aaa453ce2
commit
db2e09106c
14 files changed
+411
-65
No files matched your search
@@ -132,6 +132,7 @@ pub(super) struct AgentsOverviewViewState {
|
||||
pub(super) composer: Option<ChatComposer>,
|
||||
pub(super) key_chord_hint: Option<Vec<(String, String)>>,
|
||||
pub(super) focus: AgentsOverviewFocus,
|
||||
pub(super) refresh_failed: bool,
|
||||
pub(super) connection_notice: Option<&'static str>,
|
||||
pub(super) server_version_notice: Option<String>,
|
||||
search: String,
|
||||
@@ -320,7 +321,6 @@ impl AgentsOverviewView {
|
||||
state.search.clear();
|
||||
state.searching = false;
|
||||
}
|
||||
self.state().completion = Some(ViewCompletion::Accepted);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user