codex icon indicating copy to clipboard operation
codex copied to clipboard

Merge Queue

Open adsqx opened this issue 11 months ago • 2 comments

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.

adsqx avatar Dec 22 '25 06:12 adsqx

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4149

Powered by Codex Action

github-actions[bot] avatar Dec 22 '25 06:12 github-actions[bot]

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.

etraut-openai avatar Dec 22 '25 07:12 etraut-openai