eca icon indicating copy to clipboard operation
eca copied to clipboard

Queue messages for sending after the current turn

Open Ramblurr opened this issue 1 year ago • 8 comments

I would like to be able to give ECA a task, then while it is running, before it returns control to me, queue up more messages for it.

I'm not sure if this is a client or server feature to be honest.

When ECA finishes its turn and there are pending queued messages, the head of the queue should be popped and fed into the model again. This could potentially kick off another long turn which repeats the process again.

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Ramblurr avatar Oct 16 '25 10:10 Ramblurr

Interesting, I will think how to approach this, meanwhile do you have examples of that? @zikajk may be interested too

ericdallo avatar Oct 16 '25 12:10 ericdallo

meanwhile do you have examples of that?

Do you mean example use cases? Or examples from other tools?

Ramblurr avatar Dec 22 '25 21:12 Ramblurr

@Ramblurr Examples from other tools

ericdallo avatar Dec 29 '25 16:12 ericdallo

@ericdallo Codex and Claude Code does this. You can send any number of messages while LLM is responding (and edit tthem).

When it is your TURN then: Claude Code: all queued messages will be connected to one (multi-line) string. Codex: the first queued message will be sent, then the second and so on...

Example: Once LLM responds to "Say helo", then "q1" "q" "2" will be: Claude Code: connected to one block and send to LLM. Codex: "q1" will be send first, after LLM responds then "q" will be send and so on...

Claude Code screenshot: Image

Personally - I don't use this feature but what I miss a little is being able to construct a message before LLM answers (then i can send it right away or update it). For now, I am just using some other buffer and then copy it to ECA buffer.

zikajk avatar Dec 30 '25 18:12 zikajk

I see, makes sense, I believe the claude code behavior would be easier to achieve, but we can see how hard is to queue the messages in client or server side maybe

ericdallo avatar Jan 05 '26 12:01 ericdallo

I think that the Claude behavior makes more sense.

zikajk avatar Jan 05 '26 12:01 zikajk

Another related aspect to this feature:

When using claude-code, I like to be able to start composing my next prompt in the editor before the turn is finished. With ECA, you cannot edit the prompt while it's running, it just shows "Stop"

Ramblurr avatar Jan 11 '26 10:01 Ramblurr

I added that for eca-emacs only for now, it's working but we do not show yet the queued prompt, but it's more a visual issue, I'm not sure the best way to pin a text above prompt in a reliable way yet, will give some thought, LMK if the feature is working for you

ericdallo avatar Jan 20 '26 15:01 ericdallo