codex/codex-rs/ext/git-attribution
pakrym-oai b44ca872b1 Persist world-state snapshots alongside rendered context (#49847)
## What changed

Return snapshots and model-visible fragments together from world-state rendering, and use those snapshots for history baselines, step updates, compaction, and new context windows.

Update `WorldStateSectionContribution` so its renderer returns an optional replacement snapshot and an optional fragment. A missing snapshot preserves stored section state, even when retained history requires a fresh render; a null snapshot removes the section. Derive step patches from the history baseline rather than a separately captured live world state.

Adapt skills and Git attribution contributors to the new contract.

## Testing

Add coverage for skipped snapshot updates, explicit section removal, changed-state patch replay, unchanged-state deduplication, and matching live and persisted checkpoints when starting a new context window.

GitOrigin-RevId: af71606a278358ae937853cb76e8a019a501408e
History 2026-10-01 03:38:50 +00:00
..
src Persist world-state snapshots alongside rendered context (#49847) 2026-10-01 03:38:50 +00:00
BUILD.bazel Add the git attribution extension (#34769) 2026-07-22 15:19:15 +00:00
Cargo.toml Enable git attribution across Codex entry points (#34819) 2026-07-22 20:23:35 +00:00