@0xsero/open-queue
v1.0.11
Published
Message queue plugin for OpenCode - control message flow with hold/immediate modes
Maintainers
Readme
Open Queue
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.
Why?
When you send a message while OpenCode is running:
- Without this plugin: Your message interrupts the current run, causing context confusion
- With this plugin: Your message waits, then sends automatically when the model is ready
Install
bun x @0xsero/open-queue
# or: npx @0xsero/open-queueThis 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 modeOr just tell the model: "Turn on message queueing"
Environment Variable
Start in hold mode:
OPENCODE_MESSAGE_QUEUE_MODE=hold opencodeModes
| Mode | What happens |
|------|--------------|
| immediate | Messages send right away (default) |
| hold | Messages queue until the model finishes, then send in order |
Known Issue
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.
Links
License
MIT
