Preserve paginated history for spawned subagents - #33432
Merged
copyberry[bot] merged 1 commit intoJul 15, 2026
Merged
Conversation
## What changed - Inherit paginated history mode when spawning or forking a subagent from a paginated parent. - Load the parent's model context when forking and persist it as an inherited rollout prefix, while excluding that prefix from the child's projected turns, items, and metadata. - Record the boundary between inherited context and child history, and reject partially initialized paginated subagent rollouts on resume. - Resume paginated subagents from their stored model context instead of legacy rollout history. ## Testing Added coverage for fresh and forked paginated subagents, compacted-history forks, model-context resume, inherited-prefix projection, metadata isolation, and incomplete-prefix detection. GitOrigin-RevId: e57dc37c29aa4aaaf57b052b991be591d730e5ba
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/e57dc37c29aa4aaaf57b052b991be591d730e5ba
branch
2 times, most recently
from
July 15, 2026 21:25
9ebfc6b to
2be648b
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/e57dc37c29aa4aaaf57b052b991be591d730e5ba
branch
July 15, 2026 21:26
brayden-partcl
temporarily deployed
to
issue-triage
July 15, 2026 21:30 — with
GitHub Actions
Inactive
brayden-partcl
temporarily deployed
to
issue-triage
July 15, 2026 21:30 — with
GitHub Actions
Inactive
brayden-partcl
temporarily deployed
to
issue-triage
July 15, 2026 21:30 — with
GitHub Actions
Inactive
brayden-partcl
temporarily deployed
to
issue-triage
July 15, 2026 21:31 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve paginated history for spawned subagents
What changed
Testing
Added coverage for fresh and forked paginated subagents, compacted-history forks, model-context resume, inherited-prefix projection, metadata isolation, and incomplete-prefix detection.