mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
Automatically resume disconnected cloud conversations in the TUI (#63211)
## Why A dropped cloud stream can leave the displayed conversation without replies that were saved while the terminal was disconnected. ## What changed Reattach the displayed cloud conversation in the background when no user turn is pending or running and no question answers need to be restored. Keep the draft and queued messages while sending is paused. Check that paginated history is complete and includes the conversation already shown before applying it and accepting live events. If history cannot be verified, keep sending paused and show an error. ## Testing Add regression coverage for preserving drafts and queued messages, recovering delayed history, rejecting incomplete history, and switching conversations during recovery. GitOrigin-RevId: bc38958170ea7905452cdc4fbadc838b53400641
This commit is contained in:
committed by
copyberry
parent
4ae20b9f28
commit
44848822b1
@@ -4557,6 +4557,7 @@ impl App {
|
||||
app_server: &mut AppServerSession,
|
||||
mode: ExitMode,
|
||||
) -> AppRunControl {
|
||||
self.reconnect.cloud_resume = None;
|
||||
for (request_id, (source, task)) in self.dynamic_tool_tasks.drain() {
|
||||
if ThreadId::from_string(&source)
|
||||
.is_ok_and(|id| self.agents_overview.pending_archives.contains_key(&id))
|
||||
|
||||
Reference in New Issue
Block a user