mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
Ignore stale workspace headline requests and archived messages (#61411)
## Why Workspace headline request counters restart when the chat widget is replaced, allowing a response for the previous widget to match a new pending request. Archived headlines can also be selected for the status line. ## What changed - Use UUIDs for workspace headline requests and reject refresh events and responses that do not match the current widget's pending request. - Skip archived messages when selecting the first non-empty workspace headline. ## Testing Add a regression test verifying that a replacement widget rejects the previous widget's response while retaining its own pending request. Extend headline selection coverage to include an archived headline before the active one. GitOrigin-RevId: 44b98ab8c6cb70b7cf8e8b9341f27c99c1e1490a
This commit is contained in:
@@ -299,7 +299,6 @@ impl ChatWidget {
|
||||
status_line_git_summary_lookup_complete: false,
|
||||
status_line_workspace_headline: None,
|
||||
status_line_workspace_headline_pending_request_id: None,
|
||||
next_status_line_workspace_headline_request_id: 0,
|
||||
status_line_workspace_headline_last_requested_at: None,
|
||||
status_line_workspace_messages_disabled: false,
|
||||
thread_usage: thread_usage::ThreadUsageState::default(),
|
||||
|
||||
Reference in New Issue
Block a user