Skip to content

fix: preserve nested handoff record boundaries - #5430

Merged
seratch merged 1 commit into
mainfrom
fix/nested-handoff-record-boundaries
Oct 27, 2026
Merged

seratch merged 1 commit into
mainfrom
fix/nested-handoff-record-boundaries

Conversation

@seratch

@seratch seratch commented Oct 27, 2026

Copy link
Copy Markdown
Member

This pull request fixes nested handoff history parsing so embedded Unicode and control-character line separators remain part of their original message instead of becoming additional transcript records.

The parser now splits only on the LF delimiter emitted by the writer, preserving message roles and structured JSON content across repeated handoffs. Public APIs and the summary format remain unchanged, including support for previously generated summaries and legacy LF/CRLF records.

@seratch
seratch requested a review from rm-openai as a code owner October 27, 2026 02:53
@seratch
seratch requested a review from a team as a code owner October 27, 2026 02:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T02:54:58.686360Z 108018b PR opened
🔒 Security Review ✅ Completed 2026-10-27T02:55:42.686289Z 108018b 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.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the parser/writer and regression coverage. LF-only splitting preserves embedded separators and structured JSON without fabricating transcript roles; legacy LF/CRLF records remain supported. No actionable findings.

Hosted CI at review: 2 skipped, 23 success. Static review only; no local code or tests run.

@marcuswood-oai marcuswood-oai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 No changes requested.


Reviewed: 108018b · Base: 9de261b · sdk-pr-review

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 108018b560b22916c232bfe8ef1372ddd98b80e1. No actionable findings. Splitting only on the writer's LF delimiter preserves embedded separators, message roles and structured JSON through repeated handoffs. Existing stripping retains legacy CRLF record handling. The added runner regression checks the final model input in both run modes.

Source-only review, including an independent pass; no candidate tests or builds ran here. Hosted CI and the required human reviews remain separate gates.

@seratch
seratch added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit b040da5 Oct 27, 2026
31 checks passed
@seratch
seratch deleted the fix/nested-handoff-record-boundaries branch October 27, 2026 05:39
@openai-sdks openai-sdks Bot mentioned this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants