Codex desktop app default thread list does not include remote-ssh-codex-managed host after restart
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
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
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?
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/sessionscontains historical rollout files./home/codexu/.codex/session_index.jsonlcontains the expected thread IDs./home/codexu/.codex/state_5.sqlitehas 7 threads for/home/codexu/workdir.- Threads are not archived and have non-empty previews.
Codex App behavior:
list_projectsincludes project/home/codexu/workdirwith hostIdremote-ssh-codex-managed:codexu.read_threadworks when passinghostId=remote-ssh-codex-managed:codexu.list_threads(query="workdir")returns the missing remote threads.- But default
list_threads(limit=50)only returnslocalandremote-ssh-discovered:codex_50, notremote-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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·