mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
Keep Cloud threads current in the Agents overview (#62858)
## Why The Agents overview can go stale when Cloud threads change from another client, especially when the TUI has no conversation stream attached. ## What changed - Use Cloud stream notifications to update thread status and refresh the thread list. Poll every 10 seconds while the overview is visible and no stream is attached. - Refresh the history already shown while preserving the `Show more` cursor. Use fresh list metadata for thread names, recency, and unread state, and restore rows when a refresh catches a missed unarchive. ## Testing Cover Cloud inventory notifications, polling while detached, pagination across refreshes, and recovery from a missed unarchive. GitOrigin-RevId: 63c98438b6ddd2e47dd2d1f419c2a676508c6d91
This commit is contained in:
committed by
copyberry
parent
941e1dcade
commit
beac2ef8fc
@@ -69,6 +69,8 @@ pub enum AppServerEvent {
|
||||
},
|
||||
ServerNotification(Box<ServerNotification>),
|
||||
ServerRequest(Box<ServerRequest>),
|
||||
/// The signed-in Cloud account may have changed its discoverable thread inventory.
|
||||
CloudInventoryChanged(Option<Box<ServerNotification>>),
|
||||
/// A native Cloud reply stream ended. The underlying thread can still be running.
|
||||
ThreadStreamDisconnected(Box<codex_app_server_protocol::ErrorNotification>),
|
||||
/// The Cloud worker is listening again on the same conversation.
|
||||
|
||||
Reference in New Issue
Block a user