Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

opencode-message-queue

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-message-queue

OpenCode plugin to queue user messages while a run is in progress

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

OpenCode Message Queue Plugin

queue-power.svg

Tiny plugin that controls how user messages behave while a session is running.

Why this is useful

  • Prevents mid-run interruptions: long tool runs or multi-step reasoning won't get derailed by accidental follow-ups.
  • Lets you batch thoughts: drop several messages while the model is working, then deliver them in order once it finishes.
  • Matches Codex-style flow: no surprise context shifts while a response is still in progress.

Modes

  • immediate (default): send messages right away.
  • hold: queue messages until the current run finishes, then send in order.

Visual behavior in hold

  • When you send a message mid-run, the UI shows a Queued (will send after current run; N pending) placeholder.
  • When the run finishes, your original message is sent once.
  • A toast shows pending messages and stays until you close it (TUI only).

Install (npm/bun)

bun add opencode-message-queue
# or: npm i opencode-message-queue

Add to opencode.json:

{
  "plugin": ["opencode-message-queue"]
}

Slash command (optional)

mkdir -p .opencode/command
cp node_modules/opencode-message-queue/command/queue.md .opencode/command/

Local (no install)

This repo already includes the plugin at .opencode/plugin/message-queue.ts and the command at .opencode/command/queue.md.

Usage

Environment variables:

OPENCODE_MESSAGE_QUEUE_MODE=hold opencode
OPENCODE_MESSAGE_QUEUE_MODE=immediate opencode
# Keep queue toasts open until dismissed (default)
OPENCODE_MESSAGE_QUEUE_TOAST_DURATION_MS=0 opencode

Slash command (if installed):

/queue status
/queue hold
/queue immediate

Limitations

  • Best-effort queueing: OpenCode cannot fully defer message creation yet.
  • Queue is in-memory and resets when OpenCode restarts.

Keywords

opencode

FAQs

Package last updated on 28 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts