Restore agent navigation after TUI reconnects (#41918)

## What changed

- Keep the agent command center visible with its cached inventory and draft while reconnecting, then refresh it without losing the selected task.
- Allow cached, unavailable conversations to reattach when selected while preserving their drafts, recap progress, and runtime permissions.
- Report an unsubmitted rename when its target disappears during refresh, and continue to quarantine queued input instead of resending it automatically.

## Testing

- Add a Unix socket replacement test covering command-center recovery with and without an active conversation, failed reconnects, inventory changes, and subsequent live task input.

GitOrigin-RevId: 774aca2dfb8358e9abd6a2e2ef0d509646648f66
This commit is contained in:
Eric Traut authored and copyberry committed 2026-08-31 21:59:56 +00:00
1 parent 0a2e2bf957
commit 746798b2f7
11 files changed
+752 -43

No files matched your search

+1 -5
View File
@@ -716,11 +716,7 @@ See the Codex keymap documentation for supported actions and examples."
Ok(exit_reason)
} else {
loop {
if app.reconnect.offline
&& !app.reconnect.failed
&& reconnect.is_none()
&& app.reconnect.presentation == reconnect::ReconnectPresentation::Conversation
{
if app.reconnect.offline && !app.reconnect.failed && reconnect.is_none() {
reconnect = Some(Box::pin(reconnect::reconnect(
app.app_server_target.clone(),
app.config.clone(),