Skip to content

Instead of interrupting OpenCode mid-response, your follow-up messages wait in a priority based queue and get sent automatically when it's done.

Notifications You must be signed in to change notification settings

Agney-gt/open-queue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Queue

queue-power.svg

npm version

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-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

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

About

Instead of interrupting OpenCode mid-response, your follow-up messages wait in a priority based queue and get sent automatically when it's done.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.7%
  • JavaScript 37.3%