[BUG] Slash commands are ignored while tasks/todos are in progress
Resolved 💬 5 comments Opened Oct 21, 2025 by ashrobertsdragon Closed Jan 8, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Slash commands are ignored while tasks are in progress. The application continues through working on the todo list until it needs to ask permission or the todo queue is completed. In the case of the /compact command, tasks are adding context while the context limit is being reached and then exceeded, and by the time the command is run, it fails because of the context length limit.
What Should Happen?
Slash commands should take priority over current tasks or at least over future tasks
Error Messages/Logs
Steps to Reproduce
- Give Claude a large task list or complex problem that requires multiple tool calls and large context.
- Type /compact
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.24
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗