Skip to content

fix(codex): one card per Codex Desktop conversation - #1

Merged
RooobinYe merged 3 commits into
slim-forkfrom
fix/codex-duplicate-session
Oct 14, 2026
Merged

RooobinYe merged 3 commits into
slim-forkfrom
fix/codex-duplicate-session

Conversation

@RooobinYe

Copy link
Copy Markdown
Owner

Requested by Robin · project thread

Before: starting a new conversation in Codex Desktop (ChatGPT app) showed two identical cards in the notch, same title, same short id.

After: one card per Codex Desktop conversation.

Newer ChatGPT builds start Codex's app-server from ChatGPT.app/Contents/Resources/codex-cli/ without __CFBundleIdentifier, so the thread's hooks were keyed as a CLI session next to the codexapp: card discovery makes for the same thread. Upstream fixed this in v1.0.37/v1.0.38.

How: cherry-picked (-x) the three upstream Codex fixes that are not yet on slim-fork:

The guardian fix (3aad25a) is already on slim-fork. slim-fork's CHANGELOG was kept as is; the upstream release commits were not taken. All picks applied without code conflicts. Not built or tested here (no macOS in this environment); please swift build && swift test locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DfJWbdvTDiGPUHRFJZGoBq


Generated by Claude Code

Junyu06 and others added 3 commits October 14, 2026 07:11
ChatGPT moved Codex from Contents/Resources/codex to
Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex. The
process scan never found Desktop's app-server there, so Desktop threads
were never read from state_5.sqlite, and the app-server client could not
start at all.

The same binary also runs Codex CLI, ChatGPT's cloud exec-server and
CodeIsland's own app-server client, so the process is classified by argv
and parent: the app-server ChatGPT starts is the Desktop host, helpers
and our own child are skipped, anything else is a CLI session process.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 9905070)
@RooobinYe RooobinYe self-assigned this Oct 14, 2026
@RooobinYe
RooobinYe requested a balanced review from Copilot October 14, 2026 07:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RooobinYe
RooobinYe marked this pull request as ready for review October 14, 2026 07:20
@RooobinYe
RooobinYe merged commit 8f74ef5 into slim-fork Oct 14, 2026
@RooobinYe
RooobinYe deleted the fix/codex-duplicate-session branch October 14, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants