Merge Queue
Question: Merge consecutive user messages queued during generation?
Context
When the agent is generating a response, I sometimes send multiple follow-up user messages in quick succession (to provide the full context / additional constraints).
These messages end up as pending and are later dispatched to the model as separate turns.
Question / Proposal
Should we merge consecutive user messages that were queued while generation is in progress into a single message before dispatching to the model?
Could this be gated behind a config flag (disabled by default) to avoid changing behavior unless explicitly enabled?
Motivation
- Treat multi-enter follow-ups as a single addendum
- Reduce unnecessary extra turns / invocations
- Improve coherence by delivering the full context in one payload
It might also be possible to incorporate pending messages at the earliest feasible point before the current turn finishes.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #4149
Powered by Codex Action
I think what you're describing is already captured in #6980. I'm going to close as a duplicate, but if you think that your idea isn't quite captured in #6980, feel free to expand upon it there.