openai / openai/codex

Fork won't release the lock on the original conversation

Open
#46,355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI session
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

0.155.0

What subscription do you have?

API user

Which model were you using?

5.6 sol

What platform is your computer?

linux

What terminal emulator and version are you using (if applicable)?

Terminal

Codex doctor report

What issue are you seeing?

When forking a conversation, the session would lock both new and old conversation. so if I create a new terminal and resume the old conversation, it would suggest the old conversation is locked.
If I exit the codex from the terminal that runs the forked conversation, the new terminal that try to resume old conversation would also unblocked.

What steps can reproduce the bug?

start a conversation in terminal A, talk something, and try to fork the conversation. keep this terminal open then start a new terminal and do codex resume and pick the original conversion. it would not allow you continue and suggest this conversation is locked.

What is the expected behavior?

Fork should release the conversation so that I can have another terminal keeps the original conversion.
Otherwise, now I have to kill the forked session and resume both terminal. It's very painful and make fork not usable.
Another work around maybe allow it to create a new terminal with new conversion when triggering fork.

Additional information

No response

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.

Research direction

Reproduce the fork and resume flow described: keep the forked session open in terminal A, then try to resume the original conversation in terminal B. Start by tracing the conversation-lock handling around fork and resume. Done means the original conversation can be resumed while the forked session remains open, without requiring the forked session to exit.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.