Allow for continuing sessions from the CLI in the App Vice/Versa

Resolved 💬 6 comments Opened Feb 22, 2026 by jrsperry Closed Aug 5, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

app, cli

What feature would you like to see?

It'd be really nice to switch between the cli and the app for a single session. Right now (to my current understanding) you technically could continue a session created in the app in the cli if you dig around hard enough to find the session id, but you can't create a session in the cli and then continue in the app.

Even if it required using the bundled codex exec that comes bundled with the app, that'd be very convenient from a user perspective, and for some use cases of mine allow for different kinds of scripting/kicking off codex sessions programmatically, and continuing them in the app. Even better if you could do so in a worktree and have it associated with the proper project.

Additional information

_No response_

View original on GitHub ↗

6 Comments

github-actions[bot] contributor · 6 months ago

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

  • #11183
  • #11166
  • #11907

Powered by Codex Action

etraut-openai contributor · 6 months ago

Sessions are shared across all client surfaces, so you can resume a session created in the CLI in the IDE extension or app, or any combination thereof. What tends to break this (and what I suspect you're hitting) is if you use worktrees in the app. If you request a new local worktree in the app, it creates a new directory for that worktree and associates the session with that directory. If you then start the CLI from the original directory and attempt to resume the session, it won't appear. Does that explain the behavior you're seeing?

jrsperry · 6 months ago

Ya I noticed that cli sessions are now appearing in the app. Must not have been looking close enough. And yes worktrees not made in the app do not appear.

parallax1s · 6 months ago

but how? we can resume in terminal inside codex app, but codex app session (top window) doesn't have /resume slash command availabe

lc0rp · 5 months ago
but how? we can resume in terminal inside codex app, but codex app session (top window) doesn't have /resume slash command availabe

@parallax1s - click on the threads filter button, and select Organize > Chronological list and Show > All threads

<img width="488" height="938" alt="Image" src="https://github.com/user-attachments/assets/d0b1b47a-3578-41a1-a6d0-00a7ab6a270e" />

etraut-openai contributor · 23 days ago

Sessions are shared across CLI, IDE, and Desktop.