Remote SSH conversation history disappears from sidebar after Codex Desktop update/restart
What version of the Codex App are you using (From “About Codex” dialog)?
26.623.42026 (4514)
What subscription do you have?
ChatGPT Pro
What platform is your computer?
25.5.0 arm64 arm
What issue are you seeing?
After Codex Desktop updates/restarts, all conversation history for my Remote SSH/devbox connection disappears from the left sidebar.
This appears to be a sidebar refresh/hydration bug rather than data loss.
Environment:
- Codex Desktop: 26.623.42026 (4514)
- macOS: 26.5, build 25F71
- Platform: 25.5.0 arm64 arm
- Remote Codex CLI: codex-cli 0.142.2
- Remote connection: SSH managed devbox
Evidence:
- Local ~/.codex/state_5.sqlite still contains 628 threads.
- Remote devbox ~/.codex/state_5.sqlite still contains 832 threads.
- Remote devbox has 427 unarchived threads and 405 visible unarchived threads.
- I can query the missing remote conversations directly from the remote SQLite DB, so the history is not deleted.
Expected:
After update/restart, when the Remote SSH host reconnects, the sidebar should automatically show existing remote conversations again.
Actual:
The sidebar looks empty / history appears gone after update/restart.
Suspected cause:
The recent-conversations UI appears to filter refreshable hosts by connection state. If the remote host is disconnected during startup after an update, the sidebar can compute an empty list. When the host later becomes connected, the recent-conversations query does not appear to be invalidated/refetched reliably.
Suggested fix:
Invalidate/refetch recent conversations when a remote host transitions to connected/login-required/update-required, or subscribe the recent-conversations hook to remote connection state changes. Also show a reconnecting/loading state instead of an empty history state.
What steps can reproduce the bug?
- Configure Codex Desktop with a Remote SSH/devbox connection.
- Open several conversations on that remote SSH host so they appear in the left sidebar.
- Update Codex Desktop, or restart Codex Desktop immediately after an update.
- Reopen Codex Desktop while the remote SSH host is still reconnecting / not yet fully connected.
- Wait until the remote SSH host becomes connected again.
- Observe the left sidebar.
Expected:
The existing remote SSH conversations should reappear automatically after the remote host reconnects.
Actual:
The sidebar remains empty or appears to have lost all remote SSH conversation history.
This is not actual data loss. On my machine I can still query the history directly:
Local machine:
~/.codex/state_5.sqlitecontains 628 threads.- 356 local threads are unarchived and visible.
Remote SSH devbox:
~/.codex/state_5.sqlitecontains 832 threads.- 427 remote threads are unarchived.
- 405 remote threads are unarchived and visible.
~/.codex/session_index.jsonlhas 293 lines.
Verification commands I used:
sqlite3 ~/.codex/state_5.sqlite \
"select count(*) from threads; select count(*) from threads where archived=0 and preview<>'';"
ssh <remote-host> \
'sqlite3 ~/.codex/state_5.sqlite "select count(*) from threads; select count(*) from threads where archived=0; select count(*) from threads where archived=0 and preview<>'''';"'
### What is the expected behavior?
_No response_
### Additional information
_No response_This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗