Queue messages for sending after the current turn
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.
Interesting, I will think how to approach this, meanwhile do you have examples of that? @zikajk may be interested too
meanwhile do you have examples of that?
Do you mean example use cases? Or examples from other tools?
@Ramblurr Examples from other tools
@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:
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.
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
I think that the Claude behavior makes more sense.
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"
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