Skip to content

Drop startup context when truncating forked rollouts#24751

Merged
jif-oai merged 2 commits into
mainfrom
jif/dedup-again
May 27, 2026
Merged

Drop startup context when truncating forked rollouts#24751
jif-oai merged 2 commits into
mainfrom
jif/dedup-again

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 27, 2026

Summary

  • Change last-n fork truncation to start at the first fork-turn boundary instead of returning the full rollout when the fork history is shorter than the requested window.
  • Add coverage for the startup-prefix case in both rollout truncation tests and agent control spawn behavior.
  • Ensure bounded forked children still rebuild context after the cached prefix is truncated.

Testing

  • Added unit coverage for truncation behavior when the parent history is under the requested fork-turn limit.
  • Added an agent control test covering bounded fork spawn behavior with startup context present.
  • Not run (not requested).

@jif-oai jif-oai requested a review from a team as a code owner May 27, 2026 13:24
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 27, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jif-oai jif-oai merged commit 61cbf35 into main May 27, 2026
30 checks passed
@jif-oai jif-oai deleted the jif/dedup-again branch May 27, 2026 13:49
@github-actions github-actions Bot locked and limited conversation to collaborators May 27, 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