Skip to content

Reuse background results for remote V2 compaction - #53620

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/798963f2fc603c3febba2c21eafa1bcb094b3ebf
Oct 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/798963f2fc603c3febba2c21eafa1bcb094b3ebf

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Reuse background results for remote V2 compaction

What changed

  • Await a compatible pending background request when foreground compaction is needed, and share the result installation path with foreground requests.
  • Validate the captured history generation, prefix length, model, and authentication owner before installing a prepared result. Fall back to foreground compaction when required if the result is rejected.
  • Replace only the captured history prefix, preserving later messages, retained tool outputs, goal edits, and the current world-state baseline. Record installation analytics and completion events only after a result is installed.

## What changed

- Await a compatible pending background request when foreground compaction is needed, and share the result installation path with foreground requests.
- Validate the captured history generation, prefix length, model, and authentication owner before installing a prepared result. Fall back to foreground compaction when required if the result is rejected.
- Replace only the captured history prefix, preserving later messages, retained tool outputs, goal edits, and the current world-state baseline. Record installation analytics and completion events only after a result is installed.

GitOrigin-RevId: 798963f2fc603c3febba2c21eafa1bcb094b3ebf
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/798963f2fc603c3febba2c21eafa1bcb094b3ebf branch from eb5d947 to 9167a0b Compare October 13, 2026 09:18
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-13T09:18:56.824664Z eb5d947 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 merged commit 9167a0b into main Oct 13, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/798963f2fc603c3febba2c21eafa1bcb094b3ebf branch October 13, 2026 09:19
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 13, 2026
@AI0867
AI0867 deployed to issue-triage October 13, 2026 09:32 — with Image GitHub Actions Active
@AI0867
AI0867 deployed to issue-triage October 13, 2026 09:32 — with Image GitHub Actions Active
@AI0867
AI0867 deployed to issue-triage October 13, 2026 09:32 — with Image GitHub Actions Active
@AI0867
AI0867 deployed to issue-triage October 13, 2026 09:33 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 9167a0b2 Deployed Oct 13, 2026 by AI0867 via Identify potential duplicates (open issues fallback) #55031
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