Skip to content

Allow background persistence for steered user input - #45506

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c60b7b6c9b483245fd3169306bcf0de248ccdf35
Sep 14, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Allow background persistence for steered user input

Why

Persisting user input received during an active turn currently blocks the next model request. Stores that support background persistence can overlap this checkpoint with inference.

What changed

  • Add PersistContext::SteeredUserInput and allows_background_persistence() so stores may enqueue these checkpoints, with durability and error reporting enforced by later flush or shutdown operations.
  • Use the new context for accepted steered user input and apply the same metadata handling as turn-start persistence.
  • Keep tool outputs synchronous, including in mixed input batches, and allow stores to retain synchronous persistence for all contexts.

Testing

Add gated-store integration tests covering background user-input persistence, synchronous stores, and synchronous tool-output checkpoints. Verify that the next request includes the steered input and waits for persistence when required.

## Why

Persisting user input received during an active turn currently blocks the next model request. Stores that support background persistence can overlap this checkpoint with inference.

## What changed

- Add `PersistContext::SteeredUserInput` and `allows_background_persistence()` so stores may enqueue these checkpoints, with durability and error reporting enforced by later flush or shutdown operations.
- Use the new context for accepted steered user input and apply the same metadata handling as turn-start persistence.
- Keep tool outputs synchronous, including in mixed input batches, and allow stores to retain synchronous persistence for all contexts.

## Testing

Add gated-store integration tests covering background user-input persistence, synchronous stores, and synchronous tool-output checkpoints. Verify that the next request includes the steered input and waits for persistence when required.

GitOrigin-RevId: c60b7b6c9b483245fd3169306bcf0de248ccdf35
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c60b7b6c9b483245fd3169306bcf0de248ccdf35 branch from e072e64 to b9bfc0a Compare September 14, 2026 19:39
@copyberry
copyberry Bot merged commit b9bfc0a into main Sep 14, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c60b7b6c9b483245fd3169306bcf0de248ccdf35 branch September 14, 2026 19:39
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 14, 2026

This branch was previously deployed

1 inactive deployment
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.

3 participants