Skip to content

Add workspace thread combine support #15133

Closed as not planned
Closed as not planned

Description

@vishaltandale00

Summary

Implement combine function for codex to be able create a new conversation from the merged history of multiple threads.

Related PR: vishaltandale00#1

Motivation

When working on the same worktree I often usually fork multiple threads and after a certain point I want to merge those threads back into the base thread. This is a feature that I come across as needing frequently and I want to propose to add it to codex as well.

What the feature does

Given a source thread and K additional threads create a new thread with merged histories of all those threads.

User-facing behavior

In the implementation from the PR, the feature is exposed in the TUI via /combine.

The flow is:

  1. choose a base thread
  2. load candidate threads from the same workspace
  3. select source threads in order
  4. review the selection
  5. create a new combined thread

The resulting thread shows provenance in history and metadata so the user can see which threads were combined.

Why this is needed

Forking is already a strong workflow for branching exploration, but there is currently no clean way to bring useful branches back together.

Creating a merge function gets complex quickly with trying to derive ancestors and maintaining thread history post compaction. Thus we decide to open this feature up to combine any N threads and leave it up to the user to decide if threads should be merged.

Below are screen shots of the feature working

Image Image Image Image Image Image

Activity

  1. added
    enhancement
    CLI
    TUI
    on Mar 19, 2026
  2. added
    agent
    and removed
    TUI
    CLI
    on Mar 19, 2026
  3. added
    session
    and removed
    agent
    on Apr 11, 2026
  4. etraut-openai commented on May 2, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so I'm closing it.

  5. vishaltandale00 commented on May 2, 2026

    @vishaltandale00
    Author

    🫥

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

    enhancementsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions