Skip to content

[CLI][Remote] “Close it there” is impossible from mobile and does not identify the writer-lock owner #46647

Open

Description

@nickname55

Codex versions

  • Standalone CLI: 0.155.0
  • Codex bundled with Desktop: 0.149.0-alpha.4
  • ChatGPT/Codex Desktop package: 26.818.31338

Operating system

Linux x86_64, kernel 6.17.0-35-generic

What happened?

A Codex conversation was being accessed from the ChatGPT mobile app through Remote. Running codex resume <session-id> on the connected computer displayed:

This conversation is open in another app
Close it there and press R to continue here.

The mobile app has no action to close or release that conversation. Leaving the chat, terminating the mobile app, and even powering off the phone do not release the writer lock. The lock is apparently retained by the Desktop/App Server on the connected host, but the CLI does not identify that owner.

The user is therefore sent to the wrong device and asked to perform an action that does not exist in the mobile UI. The practical recovery is to terminate the Desktop app or exit the blocked TUI and run codex fork <session-id>.

Steps to reproduce

  1. Enable Remote on a computer running the Desktop app.
  2. Open or continue a Codex conversation from ChatGPT mobile through Remote.
  3. On the host, run codex resume <session-id> for that conversation.
  4. Observe the “open in another app” screen.
  5. Close/force-stop the mobile app or power off the phone.
  6. Press R in the CLI.

Actual result

The conversation remains blocked. The CLI neither identifies the Desktop/App Server as the writer-lock owner nor provides a way to release, hand off, or fork the conversation.

Expected result

At least one of the following:

  • Identify the actual writer-lock owner and host, for example Codex Desktop on <host>.
  • Provide an explicit handoff/release action in Remote/Desktop.
  • Offer Fork conversation directly from the blocked TUI.
  • Replace Close it there with instructions that are possible in the relevant client.

Related issue

Related UX request: #44764. This report is specifically about incorrect/unactionable lock-owner guidance in a Remote/mobile workflow.

Activity

  1. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    on Sep 19, 2026
  2. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. peixotorms commented on Sep 22, 2026

    @peixotorms

    This is an example of something unnecessary. It should just takeover and thats it.

  4. jatmn commented on Sep 24, 2026

    @jatmn

    Same issue here
    Codex 26.917.62051

  5. niffnuff commented on Oct 3, 2026

    @niffnuff

    I can reproduce this in both directions on the current Work Desktop/Codex build, which makes this look like a session handoff regression rather than a stale-lock edge case.

    Direction 1: Desktop -> Remote/mobile

    1. Start or continue a Codex session in Work Desktop.
    2. Open the same session through Remote on mobile.
    3. Remote cannot take over because the Desktop Codex process still owns the exclusive writer lock.

    Direction 2: Remote/mobile -> Desktop

    1. Start or continue the Codex session from Remote/mobile.
    2. Open the same session in Work Desktop.
    3. Desktop shows:
      This is open in another app. Close it there to continue here.

    Closing/leaving the Remote UI does not provide a usable handoff. The underlying Codex process on the host remains the writer owner.

    This breaks the core Remote workflow: starting, monitoring, or continuing work from one device and then moving back to the other.

    In one reproduced case I inspected the running session directly:

    • Work Desktop Codex engine: 0.153.4
    • The previous run had ended normally at 15:59:42 local time while working on EP06-EP07.
    • Process 427105, /usr/lib/chatgpt/resources/codex, still held the session's exclusive writer lock.
    • This was therefore not just an abandoned lock file. A live Codex process retained ownership.

    Expected behavior would be either:

    • Remote/Desktop clients attach to the existing session runtime while writes are serialized, or
    • there is an explicit atomic Take over here / writer-handoff action that transfers ownership safely.

    The current behavior makes Remote effectively unusable for device handoff because whichever client/runtime owns the writer blocks the other direction as well.

    I have a screenshot showing the live Codex process retaining the exclusive writer lock while Desktop reports that the conversation is open in another app.

  6. forangel2014 commented on Oct 16, 2026

    @forangel2014

    just rename/delete .codex/thread-writer-locks can solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLILinuxTUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingremotesessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions