Skip to content

Chained prompts executing together instead of one after the other #3098

Closed

Description

@bma-d

Exactly as the title is,
huge fan of OpenCode but really miss chaining prompts,
it seems like when the agent reads files or does an action it ignores any other consecutive task and takes the next lined up prompt instead. I've seen this happen more frequently when the next lined up prompt is a command.

Activity

  1. github-actions commented on Oct 11, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Collaborator

    does this relate to queuing? I just wanna make sure I understand what you mean by chaining prompts

  3. bma-d commented on Oct 11, 2025

    @bma-d
    Author

    does this relate to queuing? I just wanna make sure I understand what you mean by chaining prompts

    Yes it's queuing, my bad.

  4. self-assigned this
    on Oct 11, 2025
  5. goniz commented on Oct 11, 2025

    @goniz
    Contributor

    I'm thinking about this as a feature.
    Some times I have multiple comments to steer the agent and I want it to see them all for the next turn without having to super engineer the prompt

  6. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Collaborator

    Some times I have multiple comments to steer the agent and I want it to see them all for the next turn without having to super engineer the prompt

    Wdym by next turn? Are you saying when you queue they queue too quickly?

  7. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Collaborator

    Right now we do the same thing that claude code does

  8. goniz commented on Oct 11, 2025

    @goniz
    Contributor

    Some times I have multiple comments to steer the agent and I want it to see them all for the next turn without having to super engineer the prompt

    Wdym by next turn? Are you saying when you queue they queue too quickly?

    I don't think anything needs changing.

    I like it that I'm able to send multiple queued messages while the agent is still working.
    When it's done it will receive all queued messages in a single request instead of going through them one by one.

    Attaching an "example" conversation: https://opencode.ai/docs/s/xvgdyOQZ/

  9. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Collaborator

    Ah sorry I think I misread your comment:

    I'm thinking about this as a feature.

    my bad

  10. bma-d commented on Oct 11, 2025

    @bma-d
    Author

    Some times I have multiple comments to steer the agent and I want it to see them all for the next turn without having to super engineer the prompt

    Wdym by next turn? Are you saying when you queue they queue too quickly?

    I don't think anything needs changing.

    I like it that I'm able to send multiple queued messages while the agent is still working. When it's done it will receive all queued messages in a single request instead of going through them one by one.

    Attaching an "example" conversation: https://opencode.ai/docs/s/xvgdyOQZ/

    I think Codex handles this the right way, as in you have the option to edit the previous message using alt + ↑ but also queue.

  11. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    Okay I played with codex, opencode intentionally has a different queueing strategy

    But I did see the alt + arrow, which allows you to edit queued message, we could add that

  12. bma-d commented on Oct 21, 2025

    @bma-d
    Author

    Okay I played with codex, opencode intentionally has a different queueing strategy

    But I did see the alt + arrow, which allows you to edit queued message, we could add that

    That would be fantastic, I would be primarily using OpenCode if this was added 👍

  13. rekram1-node commented on Oct 21, 2025

    @rekram1-node
    Collaborator

    Good to know!

    We are in the midst of a rewrite of the tui but after that is done (this week) we can readdress the ux around some of these things better

  14. sai-sy commented on Nov 24, 2025

    @sai-sy
    Contributor

    @rekram1-node I'll "chain" prompts and it will forget some of them. even if I just sent one then after a little bit send another, it might fully abandon the first task when it get's a break from it. gpt-5-codex haven't tested on gpt-5.1-codex

  15. 98caa9deab129460e181aae781d377 commented on Dec 1, 2025

    @98caa9deab129460e181aae781d377

    I've been running into this too — queued messages sometimes get lost or conflated. I know models can struggle to keep track of things in longer contexts anyway, but consecutive user messages currently serialize with nothing between them, which might not be helping.
    Also feels a bit off that hitting enter to send separate messages doesn't preserve any separation.
    Put up a one-liner PR (#4939) that just adds a newline between them. Perhaps a middle ground — keeps the batching but with clearer separation. Small tweak, not sure how much it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions