Install
bun x @0xsero/open-queue
This adds the plugin to your opencode.json and sets up the /queue command.
Usage
/queue hold # Queue messages until model is done /queue immediate # Back to normal (sends any queued messages) /queue status # Check current mode Or just tell the model: "Turn on message queueing"
Environment Variable
Start in hold mode:
OPENCODE_MESSAGE_QUEUE_MODE=hold opencode Modes
Mode What happens immediate Messages send right away (default) hold Messages queue until the model finishes, then send in order
Queue messages while OpenCode is thinking. Instead of interrupting the model mid-response, your follow-up messages wait in line and get sent automatically when it's done.
When you send a message while OpenCode is running:
bun x @0xsero/open-queue
# or: npx @0xsero/open-queue
This adds the plugin to your opencode.json and sets up the /queue command.
/queue hold # Queue messages until model is done
/queue immediate # Back to normal (sends any queued messages)
/queue status # Check current mode
Or just tell the model: "Turn on message queueing"
Start in hold mode:
OPENCODE_MESSAGE_QUEUE_MODE=hold opencode
| Mode | What happens |
|---|---|
immediate |
Messages send right away (default) |
hold |
Messages queue until the model finishes, then send in order |
When you send a message in hold mode, it briefly appears sent in the UI, then gets sent again when the model finishes. The model only sees it once (after it's done), but the visual glitch exists. This is an OpenCode limitation.
MIT
Sign in to leave a comment.