Skip to content

[codex] Add synced session message queue#149

Merged
roackb2 merged 1 commit into
mainfrom
codex/session-message-queue
May 31, 2026
Merged

[codex] Add synced session message queue#149
roackb2 merged 1 commit into
mainfrom
codex/session-message-queue

Conversation

@roackb2
Copy link
Copy Markdown
Owner

@roackb2 roackb2 commented May 31, 2026

Summary

  • persist queued prompts as core session state and drain them FIFO after active runs finish
  • expose queue update/delete APIs and stream queue updates through control-plane session events
  • let web-v2 and cli-v2 submit follow-up prompts while a run is active, with web edit/delete queue controls and a compact vertical queue panel
  • document queue ownership and invariants in the session service README

Validation

  • yarn typecheck
  • yarn test
  • yarn build

Note: yarn build still reports the existing Vite large chunk warning.

@roackb2 roackb2 force-pushed the codex/session-message-queue branch 2 times, most recently from d40d253 to fa4aaaa Compare May 31, 2026 13:58
@roackb2 roackb2 force-pushed the codex/session-message-queue branch from fa4aaaa to 64312cf Compare May 31, 2026 14:02
@roackb2 roackb2 marked this pull request as ready for review May 31, 2026 14:04
@roackb2 roackb2 merged commit 504b35f into main May 31, 2026
5 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64312cf982

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +241 to +242
if (this.isRunning(args) || this.hasQueuedPrompts(args)) {
const queued = this.enqueuePrompt(args);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Drain queued prompts after every active run

When the active operation is /continue (sessionContinue calls continuePrompt) or compaction, this branch still accepts a new submit into queuedPrompts, but only submit runs install the onSettled handler that calls startNextQueuedPrompt. After a continue/compact run finishes there is no drain, so a prompt submitted during those operations remains persisted in the queue indefinitely until some later submit happens to kick it.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant