Skip to content

Avoid cloning deferred TUI lifecycle payloads - #34347

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/84ed34f6ff173463a1da016dc140405392c0ba45
Jul 20, 2026
Merged

Avoid cloning deferred TUI lifecycle payloads#34347
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/84ed34f6ff173463a1da016dc140405392c0ba45

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Avoid cloning deferred TUI lifecycle payloads

What changed

  • Move lifecycle and approval payloads into either the interrupt queue or the
    immediate handler instead of cloning them for both branches.
  • Borrow MCP elicitation request metadata while constructing the corresponding
    form, and consume apply-patch changes after collecting notification paths.

Testing

  • Add a history replay test confirming deferred MCP start and completion events
    remain FIFO after streaming finishes.

## What changed

- Move lifecycle and approval payloads into either the interrupt queue or the
  immediate handler instead of cloning them for both branches.
- Borrow MCP elicitation request metadata while constructing the corresponding
  form, and consume apply-patch changes after collecting notification paths.

## Testing

- Add a history replay test confirming deferred MCP start and completion events
  remain FIFO after streaming finishes.

GitOrigin-RevId: 84ed34f6ff173463a1da016dc140405392c0ba45
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/84ed34f6ff173463a1da016dc140405392c0ba45 branch from aece773 to ada5a79 Compare July 20, 2026 13:55
@copyberry
copyberry Bot merged commit ada5a79 into main Jul 20, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/84ed34f6ff173463a1da016dc140405392c0ba45 branch July 20, 2026 13:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
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.

1 participant