Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Fixes the issue where follow-up messages sent during active streaming (e.g., during compaction) weren't properly displayed in the queue.

Changes

  • Track per-message display text: Each message in the queue now has its own display text, allowing compaction commands to show their /compact rawCommand while normal messages show their actual text
  • All messages visible: Multiple queued messages are now shown newline-separated, so you can see what's pending
  • Combined on send: All queued messages are still sent together in a single turn (joined with newlines)

Example

If you have a compaction running and send a follow-up message, you'll see:

/compact
And then do this follow-up task

Both messages will be sent together when the current operation completes.

Generated with mux

Copy link

@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.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

- Show /compact rawCommand only for single compaction request
- Show actual message texts when multiple messages are queued
  (since compaction metadata is lost when options are overwritten)
- Display now matches what will actually be sent
- Multiple queued messages still sent together in single turn

_Generated with `mux`_
@ammar-agent ammar-agent force-pushed the queued-message-batching branch from f3b6e4f to fa1dfbd Compare December 3, 2025 16:47
@ammario ammario merged commit 3b530f7 into main Dec 3, 2025
15 checks passed
@ammario ammario deleted the queued-message-batching branch December 3, 2025 16:59
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.

2 participants