claude-code - 💡(How to fix) Fix Add ability to reorder, edit, or remove queued prompts [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48802Fetched 2026-04-16 06:50:34
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Fix Action

Fix / Workaround

Current Workaround: Press Ctrl+C to cancel the current generation and clear the queue, then re-submit prompts in the desired order.

RAW_BUFFERClick to expand / collapse

Feature Request

Problem: When submitting multiple prompts while Claude is processing, they get queued in submission order. Currently there is no way to reorder, edit, or remove individual queued prompts — the only option is to cancel everything with Ctrl+C and re-submit.

Proposed Solution: Add queue management controls that allow users to:

  • Reorder queued prompts (e.g., drag-and-drop or keyboard shortcuts to move items up/down)
  • Remove individual queued prompts without canceling the current generation
  • Edit a queued prompt before it gets processed

Use Case: When working on complex, multi-step tasks, it's common to queue several follow-up prompts. If priorities change mid-stream or you realize a prompt should run earlier/later, you currently have to cancel everything and start over. This is disruptive, especially if the current generation is nearly complete.

Current Workaround: Press Ctrl+C to cancel the current generation and clear the queue, then re-submit prompts in the desired order.

extent analysis

TL;DR

Implementing queue management controls to reorder, remove, and edit individual queued prompts would address the current limitation.

Guidance

  • To implement reordering, consider using a data structure that allows for efficient insertion and removal of elements, such as a linked list or a priority queue.
  • For removing individual prompts, add a unique identifier to each prompt and provide a way to reference and delete specific prompts from the queue.
  • To enable editing of queued prompts, store the prompts in a mutable data structure and provide an interface to update the prompt text before it is processed.
  • Consider adding a confirmation step before canceling the current generation to prevent accidental loss of work.

Example

class PromptQueue:
    def __init__(self):
        self.prompts = []

    def add_prompt(self, prompt):
        self.prompts.append(prompt)

    def remove_prompt(self, prompt_id):
        self.prompts = [p for p in self.prompts if p['id'] != prompt_id]

    def edit_prompt(self, prompt_id, new_text):
        for p in self.prompts:
            if p['id'] == prompt_id:
                p['text'] = new_text
                break

Notes

The proposed solution requires significant changes to the current implementation, and the exact details will depend on the underlying architecture and technology stack.

Recommendation

Apply a workaround by implementing a basic queue management system that allows for reordering and removal of individual prompts, as this will provide the most immediate relief to users.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Add ability to reorder, edit, or remove queued prompts [1 participants]