Skip to content

feat(prompts): enqueue prompts from library to queue (#547) - #548

Open
mrpops2ko wants to merge 1 commit into
urzeye:mainfrom
mrpops2ko:feat/prompt-queue-inject-547
Open

feat(prompts): enqueue prompts from library to queue (#547)#548
mrpops2ko wants to merge 1 commit into
urzeye:mainfrom
mrpops2ko:feat/prompt-queue-inject-547

Conversation

@mrpops2ko

Copy link
Copy Markdown
Contributor

Summary

Closes #547.

Adds a one-click Add to queue action on Prompt Library cards so saved prompts go straight into the prompt queue overlay—no copy/paste. Includes an optional Split queue toggle: when enabled, each non-empty line in a prompt becomes a separate queued item; when disabled (default), the whole prompt is one queue item.

What changed

  • New injectContentToQueue() helper and ophel:queueItemsAdded event to start the dispatcher and send immediately when AI is idle
  • Prompt card action button (visible when Prompt Queue is enabled in settings)
  • Persisted setting features.prompts.queueInjectSplitByLine for split-by-line behavior
  • Shared queue-batch utilities (refactor from queue overlay batch import)
  • Variable prompts: resolve via existing dialog, then enqueue
  • i18n for all 10 locales

Test plan

  • pnpm typecheck and pnpm lint:check
  • Prompt Queue enabled: queue icon on cards; split toggle in toolbar
  • Single-line and multi-line prompts (split on/off)
  • Prompt with template variables
  • Prompt Queue disabled: UI hidden + sensible toast
  • AI idle: first queued item dispatches; AI generating: items stay pending
  • Smoke on one supported site (e.g. ChatGPT) with dev extension build

Made with Cursor

Add a queue action on prompt library cards with optional split-by-line
mode, shared queue batch helpers, and dispatcher kick when AI is idle.

Co-authored-by: Cursor <cursoragent@cursor.com>
@urzeye urzeye added the enhancement Feature request or functional improvement label May 25, 2026
@urzeye

urzeye commented May 25, 2026

Copy link
Copy Markdown
Owner

see #551

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

Labels

enhancement Feature request or functional improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Prompt inject to queue

2 participants