mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Cancel pending thread title generation after manual renames (#45108)
## Why Saving a manual thread name leaves pending title generation running and its progress indicator visible until the request finishes. ## What changed - Cancel pending title requests after a successful manual rename, including renames from the agents overview, and clear the progress indicator immediately. - Interrupt canceled title-generation turns and unsubscribe their temporary threads. Ignore late start and completion events so canceled requests cannot affect newer requests. - Cancel pending title requests when resetting connection state. - Show only a spinner when generating a title without an existing name, removing the `renaming...` placeholder. ## Testing Add regression tests for manual and overview renames that verify turn interruption, cleanup, and preservation of the saved name. Cover late events after cancellation and update footer and terminal-title snapshots for the spinner-only display. GitOrigin-RevId: f9490ea7be9968ea6c35d80bfbac06fee57d0135
This commit is contained in:
1 parent
b04a2c2645
commit
b4c864dd64
17 files changed
+311
-54
No files matched your search
@@ -5914,7 +5914,7 @@ async fn make_test_app() -> App {
|
||||
pending_realtime_transcript_replay: HashMap::new(),
|
||||
realtime_replay_order: VecDeque::new(),
|
||||
temporary_structured_requests: HashMap::new(),
|
||||
pending_thread_titles: HashSet::new(),
|
||||
pending_thread_titles: HashMap::new(),
|
||||
thread_event_listener_tasks: HashMap::new(),
|
||||
agent_navigation: AgentNavigationState::default(),
|
||||
pending_server_profiles: HashMap::new(),
|
||||
@@ -6013,7 +6013,7 @@ pub(super) async fn make_test_app_with_channels() -> (
|
||||
pending_realtime_transcript_replay: HashMap::new(),
|
||||
realtime_replay_order: VecDeque::new(),
|
||||
temporary_structured_requests: HashMap::new(),
|
||||
pending_thread_titles: HashSet::new(),
|
||||
pending_thread_titles: HashMap::new(),
|
||||
thread_event_listener_tasks: HashMap::new(),
|
||||
agent_navigation: AgentNavigationState::default(),
|
||||
pending_server_profiles: HashMap::new(),
|
||||
|
||||
Reference in new issue
Block a user