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

Open
#34,560 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust, sqlite
Domain
backend, desktop

Research direction

Start at the app-server list_threads entry point and compare default list_threads(limit=50) with the query and hostId behavior described in the issue. Use the remote session_index.jsonl, state_5.sqlite, and app-server.log evidence to reproduce the omission; done means recent threads from remote-ssh-codex-managed hosts appear in the default list, merged and sorted by recency, with regression coverage.

Written by the indexing model from the issue text.

Description

app app-server bug remote
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?
Image Image 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_
Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.