Skip to content

Refresh step world state for all sessions - #33665

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ea5dbe590cc049170259e7eccb6a3346fb2ed8e6
Jul 16, 2026
Merged

Refresh step world state for all sessions#33665
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ea5dbe590cc049170259e7eccb6a3346fb2ed8e6

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 16, 2026

Copy link
Copy Markdown

Refresh step world state for all sessions

Why

Changes to the selected working directory can select different AGENTS.md
instructions. These updates need to reach the model even when the deferred
executor feature is disabled.

What changed

  • Refresh environment readiness and AGENTS.md before capturing each step.
  • Record model-visible world-state changes for every session instead of gating
    them on the deferred executor feature.
  • Preserve the initial environment context without duplicating it.

Testing

  • Cover AGENTS.md replacement after a working-directory change.
  • Verify that initial environment context remains unique with the deferred
    executor both enabled and disabled.
## Why

Changes to the selected working directory can select different `AGENTS.md`
instructions. These updates need to reach the model even when the deferred
executor feature is disabled.

## What changed

- Refresh environment readiness and `AGENTS.md` before capturing each step.
- Record model-visible world-state changes for every session instead of gating
  them on the deferred executor feature.
- Preserve the initial environment context without duplicating it.

## Testing

- Cover `AGENTS.md` replacement after a working-directory change.
- Verify that initial environment context remains unique with the deferred
  executor both enabled and disabled.

GitOrigin-RevId: ea5dbe590cc049170259e7eccb6a3346fb2ed8e6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ea5dbe590cc049170259e7eccb6a3346fb2ed8e6 branch from 73e0e52 to 71448a2 Compare July 16, 2026 18:46
@copyberry
copyberry Bot merged commit 71448a2 into main Jul 16, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ea5dbe590cc049170259e7eccb6a3346fb2ed8e6 branch July 16, 2026 18:48
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet