Codex desktop app default thread list does not include remote-ssh-codex-managed host after restart

Open 💬 1 comment Opened Jul 21, 2026 by xiuxiuing
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

Codex CLI version: 0.142.3

What subscription do you have?

Pro

What platform is your computer?

x86

What issue are you seeing?

<img width="349" height="106" alt="Image" src="https://github.com/user-attachments/assets/5e124ff9-192d-4d29-9830-34bf0e3593ef" />

<img width="343" height="70" alt="Image" src="https://github.com/user-attachments/assets/827cef3f-c93a-4bf3-bb55-cc479753eddc" />
Codex desktop app default thread list does not include remote-ssh-codex-managed host after restart

What steps can reproduce the bug?

Environment

  • Codex CLI version: 0.142.3
  • Codex App / Desktop remote SSH workflow
  • Remote host: remote-ssh-codex-managed:codexu
  • Remote cwd: /home/codexu/workdir
  • Remote user: codexu
  • Shell: bash
  • Date observed: 2026-07-21
  • Config: disable_response_storage = false

Issue

After restarting Codex, history for the current remote directory appears missing in the default thread/history list.

The records are not actually deleted. They exist locally on the remote host and can be found by search, but the default list_threads / recent history list does not include the remote-ssh-codex-managed:codexu host.

Evidence

On the remote host:

  • /home/codexu/.codex/sessions contains historical rollout files.
  • /home/codexu/.codex/session_index.jsonl contains the expected thread IDs.
  • /home/codexu/.codex/state_5.sqlite has 7 threads for /home/codexu/workdir.
  • Threads are not archived and have non-empty previews.

Codex App behavior:

  • list_projects includes project /home/codexu/workdir with hostId remote-ssh-codex-managed:codexu.
  • read_thread works when passing hostId=remote-ssh-codex-managed:codexu.
  • list_threads(query="workdir") returns the missing remote threads.
  • But default list_threads(limit=50) only returns local and remote-ssh-discovered:codex_50, not remote-ssh-codex-managed:codexu.

Expected behavior

Default recent thread list should include threads from all available hosts, including remote-ssh-codex-managed:*, merged and sorted by recency.

Actual behavior

Default recent thread list silently omits the remote-ssh-codex-managed:codexu host, making it look like history was lost after restart.

Additional suspicious log

/home/codexu/.codex/app-server-control/app-server.log contains:

Error: app-server control socket is already in use at /home/codexu/.codex/app-server-control/app-server-control.sock

### What is the expected behavior?

_No response_

### Additional information

_No response_

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #33359

Powered by Codex Action