Feature Request: Message Queue/Do Not Disturb Mode During Task Execution
Resolved 💬 3 comments Opened Nov 19, 2025 by corrius Closed Nov 19, 2025
Feature Request: Message Queue/Do Not Disturb Mode
Problem Statement
Currently, Claude Code processes incoming messages immediately, which can interrupt ongoing complex tasks. This interruption breaks the workflow and context, especially during multi-step operations like refactoring, debugging, or complex code generation.
Proposed Solution
Implement a message queuing system similar to Cursor IDE that:
- Queue incoming messages when Claude Code is actively working on a task
- Prevent interruptions during task execution
- Process queued messages automatically after completing the current task
- Provide visual feedback to users that their message is queued
User Experience Flow
Current behavior:
- User sends message: "Refactor authentication module"
- Claude Code starts working on refactoring
- User sends another message: "Also update the documentation"
- ❌ Claude Code interrupts current refactoring to process new message
- Context is lost, work may be incomplete
Desired behavior:
- User sends message: "Refactor authentication module"
- Claude Code starts working on refactoring
- User sends another message: "Also update the documentation"
- ✅ Message is queued with visual indicator: "Message queued (1 pending)"
- Claude Code completes refactoring without interruption
- Claude Code automatically processes queued message: "Also update the documentation"
Configuration Options
Provide user control through settings:
{
"messageQueue": {
"enabled": true,
"autoProcessQueue": true,
"showQueueIndicator": true,
"queueBehavior": "smart" // "always" | "smart" | "manual"
}
}
Queue behavior modes:
always: Always queue messages during task executionsmart: Queue only during complex/multi-step tasks (AI determines)manual: User controls when to enable/disable queuing (e.g.,/queue on)
Use Cases
- Complex refactoring: User realizes additional requirements while Claude is refactoring
- Multi-file changes: User wants to add more files to update without stopping current work
- Iterative development: User has follow-up thoughts while Claude is implementing
- Exploratory coding: User discovers related issues while Claude is working on the primary task
Benefits
- Improved workflow continuity: Tasks complete without interruption
- Better context preservation: Claude maintains focus on current task
- Enhanced user experience: Users can share thoughts without breaking flow
- Increased productivity: Reduces need to wait or carefully time messages
Reference Implementation
Cursor IDE implements this successfully by:
- Showing a queue indicator when messages are pending
- Completing current task before processing queued messages
- Maintaining context across queued message processing
Additional Considerations
- Cancel mechanism: Allow users to cancel queued messages if needed
- Priority queue: Option to mark urgent messages that should interrupt
- Queue limit: Prevent unbounded queue growth with configurable limits
- Queue persistence: Optionally persist queue across session restarts
Alternative Approaches
If full queuing is complex, consider:
- Simple toggle:
/pauseand/resumecommands to control message processing - Confirmation prompt: Ask user "Claude is working, queue this message? (y/n)"
- Smart detection: Auto-detect when message is related and append to current task
Community Interest
This feature would benefit:
- Developers working on complex, multi-step tasks
- Teams using Claude Code for large refactoring projects
- Users who think iteratively and want to add context without disrupting work
- Anyone who values uninterrupted AI workflow execution
---
Environment:
- Claude Code: Latest version
- OS: Linux/macOS/Windows (affects all platforms)
Thank you for considering this feature request!
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗