Skip to content

Skip Git enrichment for prewarm and Guardian turns - #34728

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4a68615288bb568c75f2e487d9c0776e3e80f191
Jul 22, 2026
Merged

Skip Git enrichment for prewarm and Guardian turns#34728
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4a68615288bb568c75f2e487d9c0776e3e80f191

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026

Copy link
Copy Markdown

Skip Git enrichment for prewarm and Guardian turns

Why

Startup prewarms and Guardian review sessions do not need workspace Git metadata. Collecting it for those requests performs redundant work, while user turns still need a fresh view of the repository.

What changed

  • Add a per-session Git enrichment policy.
  • Skip enrichment for startup prewarm, preview, and Guardian review turns.
  • Keep fresh enrichment enabled for regular sessions and one-shot delegated turns.

Testing

  • Cover prewarm and Guardian requests omitting workspace metadata while subsequent user turns observe repository changes.
  • Cover concurrent repositories and worktrees retaining distinct metadata.
  • Verify concurrent enrichment is coalesced and canceled enrichment can be retried.

## Why

Startup prewarms and Guardian review sessions do not need workspace Git metadata. Collecting it for those requests performs redundant work, while user turns still need a fresh view of the repository.

## What changed

- Add a per-session Git enrichment policy.
- Skip enrichment for startup prewarm, preview, and Guardian review turns.
- Keep fresh enrichment enabled for regular sessions and one-shot delegated turns.

## Testing

- Cover prewarm and Guardian requests omitting workspace metadata while subsequent user turns observe repository changes.
- Cover concurrent repositories and worktrees retaining distinct metadata.
- Verify concurrent enrichment is coalesced and canceled enrichment can be retried.

GitOrigin-RevId: 4a68615288bb568c75f2e487d9c0776e3e80f191
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4a68615288bb568c75f2e487d9c0776e3e80f191 branch from 7874a27 to 33d394c Compare July 22, 2026 10:48
@copyberry
copyberry Bot merged commit 33d394c into main Jul 22, 2026
24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4a68615288bb568c75f2e487d9c0776e3e80f191 branch July 22, 2026 10:49
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 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