Skip to content

Preserve approvals reviewer when forking threads - #34664

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

Preserve approvals reviewer when forking threads#34664
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/41c515755de7de600f71c1259f96908f2d169ca7

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026

Copy link
Copy Markdown

Preserve approvals reviewer when forking threads

Why

Forking a persisted thread could lose its approvals reviewer and fall back to
configuration defaults.

What changed

  • Restore the latest persisted approvals reviewer from the full source history
    when creating a fork, while continuing to honor explicit overrides.
  • Keep boundary-based history truncation independent from reviewer restoration,
    so a fork at an earlier turn retains the source thread's latest setting.

Testing

  • Add an app-server test that sets auto-review, forks at an earlier turn, and
    verifies the fork reports auto-review.
## Why

Forking a persisted thread could lose its approvals reviewer and fall back to
configuration defaults.

## What changed

- Restore the latest persisted approvals reviewer from the full source history
  when creating a fork, while continuing to honor explicit overrides.
- Keep boundary-based history truncation independent from reviewer restoration,
  so a fork at an earlier turn retains the source thread's latest setting.

## Testing

- Add an app-server test that sets auto-review, forks at an earlier turn, and
  verifies the fork reports auto-review.

GitOrigin-RevId: 41c515755de7de600f71c1259f96908f2d169ca7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/41c515755de7de600f71c1259f96908f2d169ca7 branch from 880795e to cefcffd Compare July 22, 2026 02:48
@copyberry
copyberry Bot merged commit cefcffd into main Jul 22, 2026
27 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/41c515755de7de600f71c1259f96908f2d169ca7 branch July 22, 2026 02: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

2 participants