Repository navigation
Description
What problem would this solve?
Side chats are currently one of the best interaction patterns in Codex for long-running work, but they are intentionally ephemeral. That means useful side-chat context disappears when the session/app is closed or the app is updated.
This is painful because side chats are not just a less-visible form of fork. They are tightly tied to the main thread and are especially useful while the main thread is still actively running. In a long-running turn that may take hours, a user can open a side chat immediately to inspect or ask about the current state without interrupting the main task. By contrast, ordinary forking/new-thread workflows feel heavier and do not preserve the same anchored “side of this main thread” interaction model.
The result is that users who rely on side chats have to choose between:
- keeping the current app/session alive indefinitely to avoid losing side chats, or
- upgrading/restarting and permanently losing side-chat context, or
- using full forks/new threads even when the desired workflow is explicitly a side conversation attached to the main thread.
Current behavior / source-backed understanding
From the current source, /side is explicitly implemented as ephemeral:
/sideis described as “start a side conversation in an ephemeral fork”:codex-rs/tui/src/slash_command.rs.codex-rs/tui/src/app/side.rsdescribes side conversations as ephemeral forks used for quick side questions.side_fork_config()setsfork_config.ephemeral = true.- Side threads are discarded from local app state when switching away/closing.
- The app-server README documents
ephemeral: trueas an in-memory temporary thread/fork whosethread.pathisnull.
Relevant references at the inspected HEAD (10b4080):
- https://github.com/openai/codex/blob/10b4080/codex-rs/tui/src/slash_command.rs#L121
- https://github.com/openai/codex/blob/10b4080/codex-rs/tui/src/app/side.rs#L3-L8
- https://github.com/openai/codex/blob/10b4080/codex-rs/tui/src/app/side.rs#L467
- https://github.com/openai/codex/blob/10b4080/codex-rs/app-server/README.md#L77-L78
- https://github.com/openai/codex/blob/10b4080/codex-rs/app-server/README.md#L135
I also saw related prior discussion where /side being intentionally ephemeral was treated as the current product stance. This issue is therefore a feature request to add a durable side-chat mode/model, not a claim that the current implementation is accidentally ephemeral.
Suggested behavior
Please support persisted side chats as first-class child conversations attached to the main thread.
Ideally:
- Side chats survive app updates, app restarts, and session reloads.
- A main thread shows its associated side chats in context, rather than side chats only existing as temporary renderer/app-server state.
- Side chats preserve the same lightweight UX and parent-thread anchoring that makes
/sideuseful today. - Creating a side chat during an active main-thread turn remains possible.
- Persisted side chats should be distinguishable from full independent forks: they are side branches of a main thread, not separate top-level conversations unless explicitly promoted.
- Users should be able to resume/reopen a side chat from the main thread after a restart/update.
Possible implementation shapes:
- Persist side chats as child threads with
parentThreadId/forkedFromIdmetadata and a rollout path, but keep them grouped under the parent in the UI. - Add a “promote side chat to full fork” affordance for users who want to detach one.
- If full persistence is too heavy by default, offer a setting or per-side-chat action such as “Keep this side chat.”
Why full forks/new threads are not an equivalent replacement
Forks/new threads are useful, but they do not replace side chats ergonomically:
- Side chats are explicitly tied to the main thread, so they preserve mental locality.
- Side chats can be opened while the main task is running, without steering or interrupting the main turn.
- A user may want a lightweight explanation, inspection, or alternate thought path without polluting the main thread.
- For long-running turns, waiting for the main turn to finish before organizing or forking context can be impractical.
Expected outcome
Users should be able to use side chats as durable context attached to a main thread, without losing them on update/restart and without being forced into heavier full-fork workflows.
Activity
github-actions commentedon Jun 3, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
/sidechats are expiring too quickly; expiration behavior is opaque #25233Powered by Codex Action
alik-git commentedon Jun 5, 2026
Agree! +1
GabCores commentedon Jun 13, 2026
My required workflow is not only persisting a single side chat. A parent
thread should be able to own multiple durable side threads.
Each side thread should:
The persistence model should support multiple child side threads even if
the first UI implementation only exposes one at a time. A later MVP could
add
/side new,/side list,/side switch, and/side promote, similarto the proposal in #22307.
When the main thread is forked, its side threads should not be silently
merged into or copied into the new fork. They should remain explicit child
branches unless the user chooses to copy or promote them.
This would also fit naturally into the conversation-tree model discussed
in #12450.
justinTM commentedon Jul 9, 2026
threads also seem confused when you ask about side chats:
the result is usually just copy-pasting the side chat, its session ID, and asking a new thread to mine JSONLs. but very inefficient. lots of "Hello" messages to side chats to test if they're expired or active -- few/zero config TOML settings for controlling side chats:
anyone have advice? i know i'm doing it wrong, but these two constraints have me gravitating towards the dangerous side chats:
so messaging thread for dossier/handoff causes loss of focus, and mining its session logs to reconstruct context in new session is more lossy than side chats.
sh3nz1h3ng-hash commentedon Jul 16, 2026
Adding a real-world Codex Desktop workflow where durable side chats are especially important:
In this workflow, the side chat is not just a disposable question. It is the planning and decision-making context, while the main task is the execution context. Reconstructing that context in a new side chat requires repeating the project state, constraints, and prior decisions, and can cause important constraints to be omitted or later actions to contradict earlier conclusions.
The most important requirement is therefore not only transcript retention, but preservation of the parent/child relationship:
This would make the "side chat for planning, main task for execution" workflow reliable for long-running, complex, multi-stage work.
atIOCrON commentedon Jul 20, 2026
+1 100%, very well written argument and 100% needed.
alexanderxcmo commentedon Jul 22, 2026
I use side chats a bit differently, and it has become one of the most useful parts of Codex for me.
While an agent is working in the main task, I keep the side chat open as a repo-aware project manager and thinking partner. I use it to discuss progress, decide next steps, prepare prompts for other agents, and delegate work without interrupting the main task.
Because it already understands the repository and the surrounding task context, it works extremely well for this. The only real problem is that the conversation is temporary and eventually disappears.
A way to pin or save a side chat, reopen it later from the project, and optionally promote it to a normal task would make this workflow much more reliable. Keeping a reference to the parent task would also be valuable.
Side chats are already very close to being a lightweight supervisor or orchestration layer for people running several agents in parallel. Persistence would make that use case much more practical.
sh3nz1h3ng-hash commentedon Jul 28, 2026
@alexanderxcmo Yeah, this is pretty much how I use it too.
While the main task is working, I use the side chat to talk through what to do next. Once we've worked out the plan, I ask it to turn the discussion into a better prompt for the main task. That way I don't have to keep going back to the main task to discuss things, and its context stays cleaner.
I also remember that side chats used to be able to send the prompt directly to the main task, so I didn't even have to copy and paste it. At some point that stopped working for me, and now I have to move it over manually, which is a shame.
So for me, a side chat isn't just a temporary chat window. It's more like a project-aware planning assistant. Being able to save it, reopen it later, and send messages directly to the main task again would make this workflow much nicer.
elegansn2 commentedon Aug 5, 2026
Additional product gap: implementation intent should route back to the parent task
I am seeing a related workflow failure in the macOS Codex app.
Workflow
Why this is a problem
The side chat is useful for lightweight planning, clarification, and choosing an approach. But once implementation is requested, the work needs the original task's context, history, workspace, and ownership.
Starting implementation in the side chat unexpectedly splits one intended task into two threads. The result is duplicated or fragmented context, and I have to manually transfer the decision back to the original task. It is especially confusing because the fork was not an explicit user choice.
This is an unintended thread fork. It is not necessarily a Git worktree or a repository clone; those are separate concepts and should only be created when explicitly selected.
Expected behavior
Please add an explicit parent-task dispatch path:
The current behavior makes a planning conversation behave like an accidental implementation branch, which defeats the purpose of using side chat to keep planning separate from the main execution thread.
Environment
HenryQuillin commentedon Aug 6, 2026
+1 from me. I have the exact same workflow.
leadingproblemsolver commentedon Aug 6, 2026
The persistence request would be stronger if side chats were modeled as durable branches with explicit state inheritance, rather than only persisted transcripts.
A child-thread record needs at least:
The important field is
fork_event_id: it defines exactly which parent state the side chat inherited. Without that boundary, a restored side chat can appear attached to the current parent while actually reasoning from an older snapshot, and neither side can explain the divergence.I would keep three artifacts separate:
That avoids silently merging side-chat conclusions into the main thread. Promotion to a top-level fork changes the manifest; it should not rewrite transcript lineage.
A compact restore flow could then be:
load branch manifest → verify parent/fork event exists → load child delta → mark parent divergence since fork → resumeThis also gives thread tools a reliable lookup surface instead of forcing models to mine JSONL files or send probe messages to discover whether a side chat still exists.
I maintain a small local-first project implementing related provenance primitives—stable project identity, source path/line, content hashes, SQLite state and source-linked context packs: https://github.com/leadingproblemsolver/living-context-engine
It is not a conversation-tree implementation, but the separation between durable records and generated retrieval artifacts may be useful here.
TyceHerrman commentedon Aug 11, 2026
Related: #22707
That request was closed, but if this issue changes side chats into durable child threads with stable IDs and parent relationships, it would remove much of the architectural limitation cited in #22707.
It would be worth considering cross-client visibility as part of the persisted-child-thread model, so an attached side chat could eventually be reopened not only after a Desktop restart but also from Remote Control clients such as ChatGPT on iOS
dempstert commentedon Aug 17, 2026
I hit this as real data loss in Codex Desktop: a substantial side-chat investigation tied to ongoing implementation work disappeared, and there was no persisted thread/session record available to resume or reconstruct it reliably.
Side chats should be treated as normal durable threads with additional lineage metadata—not as disposable UI state. At minimum, each side chat should have:
The parent link is essential: the value of a side chat is that it inherits the parent context while keeping an investigation or planning path separate. Persistence without that relationship would still lose the workflow.
JERRIYHAN commentedon Aug 25, 2026
Totally agree!
Ideally, I hope in the Codex APP (GUI), side chats could be shown as notes waiting to be unfolded, inserted to the main thread when they start.
Kizuno18 commentedon Aug 26, 2026
I opened a separate feature request focused on the missing creation flow:
#40941 — Allow users to create subagents directly from the Subagents panel
#40941
The distinction is that #26227 focuses on persisting side chats as child threads, while #40941 proposes a visible
+button that lets users start a subagent side chat directly, without first asking the main session to create it.The key workflow is to keep the subagent prompt and intermediate work isolated from the main context, send only a lightweight existence/status notification to the main session, and hand the completed output back for the main session to review or continue with. This avoids bloating or delaying a large primary task while still keeping the work linked.
kirillsaven commentedon Aug 30, 2026
Extend durable side chats into opt-in first-class task threads
I hit a concrete workflow gap that persistence alone would not solve.
A side conversation began as lightweight research while the parent task stayed focused. The research then became implementation-ready, and the user explicitly wanted the side conversation to:
The side conversation could not do that. The safe fallback was to stop, manually reconstruct a long prompt, and ask the user to paste it into a new top-level task. That loses conversational continuity, makes omissions more likely, and turns an otherwise useful child-thread workflow into manual context transport.
I suggest that persisted side chats support an explicit Promote to task (or Enable task capabilities) transition. After opt-in, the child thread should behave like a normal Codex task while retaining its lineage to the parent.
Requested capabilities after promotion
Own Goal
Subagents
Full task lifecycle
Isolation
Structured return to parent
Safe default
Side conversations can remain lightweight and ephemeral/read-only by default. The important part is a discoverable transition at the moment a tangent becomes real work:
ephemeral side chat -> persisted child thread -> task capabilities enabled -> optional top-level promotion
The UI should clearly distinguish these states. Mutating tools and subagents should require explicit opt-in, so this proposal does not weaken existing permission or isolation boundaries.
Acceptance criteria
A user can start from an existing side conversation and, without copy/pasting its transcript:
This extends the persistence model proposed here rather than replacing it. It also connects the minimal promotion affordance in #36650 and direct subagent creation in #40941. The distinct requirement is the complete post-promotion capability set: own Goal + bounded subagents + isolated execution + explicit return to parent.
zaozhiyi commentedon Sep 26, 2026
Adding one angle that I think fits the "return artifact" idea mentioned above.
Besides persistence, the other half of the problem is getting a side chat's output back out. Today the only path is copy → paste into the parent thread, which puts the whole text into the parent's context even when the parent only needs it saved, and has to wait if the parent is mid-turn.
A small, safe primitive would cover most of it even before full child-thread persistence lands: a write-only "save to inbox" action on side-chat messages — it can only create new files in one folder, can't read or modify the workspace, and is user-triggered. The parent thread reads an item only when the user asks. That keeps the current "side chats don't mutate the workspace" stance intact.
For anyone who needs something today: I use a clipboard-based workaround (copy in the side chat, a macOS hotkey writes it verbatim to
~/inbox/, and a skill in the main thread lists/reads/files items). It works the same with Codex/sideand Claude Code's side chat: https://github.com/zaozhiyi/side-inboxredwangwangwang commentedon Oct 19, 2026
A concrete UX request for this feature: add a one-click “Keep this side chat” / “Make permanent” action to the currently open side-chat menu.
When selected, Codex should:
This opt-in conversion would keep the current lightweight ephemeral behavior by default, while giving users a safe way to preserve a side chat once it becomes valuable. It is the specific workflow I need: convert the side chat that is already open, without having to copy/paste its contents into a new chat. Related request: #45866.
toby1123yjh commentedon Oct 20, 2026
This feature is much needed. During conversations, side chat gradually becomes more important, and its ability to be persistent is also crucial
joshka commentedon Oct 30, 2026
x poll:
https://x.com/ajambrosino/status/2115924141853512144
OOOHS commentedon Oct 30, 2026
A desktop workflow: one topic, a persistent tree of side discussions
Adding a concrete interaction model for the durable child threads proposed here, connected to the conversation-tree request in #12450.
For example, a product-planning conversation can grow like this:
The useful rule is: a branch remains part of its parent topic at every depth, until the user explicitly promotes it to an independent conversation. A discussion can grow longer, acquire its own children, and be reopened later while keeping that subordinate position.
For the desktop UI, I would like these behaviors together:
A useful acceptance flow would be: create main → child → grandchild, close/reopen the conversation and recover the whole path, then promote the child and continue managing it with its grandchild under the new root.
I built a working reference for this interaction in DeepSeek Harness: TreeChat. Its README explains the topic/branch/promotion model and links related projects. Text selection is a convenient way to start a branch; the central proposal is the lasting hierarchy and the user's control over when a discussion becomes independent.
Would this recursive model and tree navigation fit the intended direction for durable side chats in Codex Desktop?
Dolevgit commentedon Nov 3, 2026
https://github.com/Dolevgit/ChatGPT-UI-Patcher
I will try to add more features to it :)
etraut-openai commentedon Nov 21, 2026
Thanks for describing this workflow. New side chats are now saved with their parent conversation on desktop and in the local full-screen Codex CLI. You can start one while the main task is running, close its tab, and pick up where you left off after restarting Codex. A parent can have multiple saved side chats.
/side <prompt>to start a side chat. After restarting, usecodex resumeto reopen the parent, then pressCtrl+Xfollowed byTand select the conversation under Side chats. This is enabled by default in CLI 0.171.0 for local full-screen sessions with saved history.