Skip to content

Add durable user-message queue dispatch - #37204

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/14f39d7c8cbaccb767a6da84b82cced0edfcb4b9
Aug 6, 2026
Merged

Add durable user-message queue dispatch#37204
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/14f39d7c8cbaccb767a6da84b82cced0edfcb4b9

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 6, 2026

Copy link
Copy Markdown

Add durable user-message queue dispatch

What changed

  • Add a storage-neutral queue extension for listing, adding, editing, reordering, deleting, and explicitly starting queued user messages.
  • Dispatch queued messages in FIFO order when a thread becomes idle after a completed turn, while leaving them queued after interruptions or failures.
  • Wait for user input to be persisted before removing its queue item, and report hook rejection, task termination, and persistence failures distinctly.
  • Snapshot local image and audio attachments into validated data URLs before storing them, enforce input limits, and emit ThreadQueueChanged events after mutations.

Testing

  • Cover queue mutations, automatic and explicit dispatch, interruption and failure behavior, hook rejection, invalid records, input limits, and local attachment snapshotting.

## What changed

- Add a storage-neutral queue extension for listing, adding, editing, reordering, deleting, and explicitly starting queued user messages.
- Dispatch queued messages in FIFO order when a thread becomes idle after a completed turn, while leaving them queued after interruptions or failures.
- Wait for user input to be persisted before removing its queue item, and report hook rejection, task termination, and persistence failures distinctly.
- Snapshot local image and audio attachments into validated data URLs before storing them, enforce input limits, and emit `ThreadQueueChanged` events after mutations.

## Testing

- Cover queue mutations, automatic and explicit dispatch, interruption and failure behavior, hook rejection, invalid records, input limits, and local attachment snapshotting.

GitOrigin-RevId: 14f39d7c8cbaccb767a6da84b82cced0edfcb4b9
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/14f39d7c8cbaccb767a6da84b82cced0edfcb4b9 branch from 7fcdaca to bc8b25e Compare August 6, 2026 03:12
@copyberry
copyberry Bot merged commit bc8b25e into main Aug 6, 2026
27 of 29 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/14f39d7c8cbaccb767a6da84b82cced0edfcb4b9 branch August 6, 2026 03:14
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 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