Skip to content

Fix fork parent metadata in reconstructed TUI sessions - #61183

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/860779b40dc21fb4cc2ec1ac392523da5e439a94
Nov 12, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/860779b40dc21fb4cc2ec1ac392523da5e439a94

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Fix fork parent metadata in reconstructed TUI sessions

Why

Reconstructing a thread session from the primary session could carry over another thread's fork parent and cached parent title.

What changed

Use the target thread's forked_from_id when reconstructing sessions from thread/read responses and ThreadStarted notifications. Clear the cached parent title when the parent changes, and treat absent or invalid parent IDs as no parent.

Testing

Extend the session reconstruction test to cover replacing an inherited fork parent and clearing inherited fork metadata for a thread with no parent, while retaining coverage of active permission settings.

## Why

Reconstructing a thread session from the primary session could carry over another thread's fork parent and cached parent title.

## What changed

Use the target thread's `forked_from_id` when reconstructing sessions from `thread/read` responses and `ThreadStarted` notifications. Clear the cached parent title when the parent changes, and treat absent or invalid parent IDs as no parent.

## Testing

Extend the session reconstruction test to cover replacing an inherited fork parent and clearing inherited fork metadata for a thread with no parent, while retaining coverage of active permission settings.

GitOrigin-RevId: 860779b40dc21fb4cc2ec1ac392523da5e439a94
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-12T21:38:53.910959Z b2076e4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/860779b40dc21fb4cc2ec1ac392523da5e439a94 branch from b2076e4 to 2bb2e20 Compare November 12, 2026 21:38
@copyberry
copyberry Bot merged commit 2bb2e20 into main Nov 12, 2026
7 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/860779b40dc21fb4cc2ec1ac392523da5e439a94 branch November 12, 2026 21:39
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 2bb2e20d Deployed Nov 12, 2026 by maxoptical via Translate non-English issue #25828
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants