[Bug] Custom Slash Command: permission-mode Not Activating Plan Mode

Resolved 💬 3 comments Opened Oct 20, 2025 by grmkris Closed Jan 10, 2026

Bug Description
Title:
permission-mode: plan in custom slash command frontmatter doesn't activate plan mode

Description:
### Issue
When defining custom slash commands with permission-mode: plan in the frontmatter, the plan mode indicator doesn't activate in the bottom left when executing the command.

### Example Command
.claude/commands/typecheck.md:
```yaml
---
description: Run typecheck and ultrathink a fix plan
allowed-tools: Bash(bun run typecheck), Bash(turbo), Read, Grep, Glob
permission-mode: plan
---

Expected Behavior

When running /typecheck, the plan mode indicator should appear in the bottom left corner.

Actual Behavior

Plan mode doesn't activate. The command runs in normal mode.

Questions

  1. Is permission-mode a supported frontmatter option for custom slash commands?
  2. If not, could this feature be added to allow commands to auto-activate plan mode?
  3. If it is supported, why isn't it working?

Current Workaround

Manually pressing Shift+Tab before running the command.
```

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.0
  • Feedback ID: 30d3dd73-e9fe-4458-aa60-1fac55b79e50

Errors

[{"error":"AxiosError: Request failed with status code 404\n    at fN (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:715:1077)\n    at IncomingMessage.z0 (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:716:9955)\n    at IncomingMessage.emit (node:events:520:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at vQ1.request (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:718:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V5B (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:9289)\n    at async K5B (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:10290)\n    at async Object.call (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:15924)\n    at async Eh6 (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3162:21927)\n    at async TFB (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3162:18069)\n    at async U2B (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1120:31030)\n    at async Z8B (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1907:1967)\n    at async qh6 (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3162:17262)","timestamp":"2025-10-20T08:09:43.914Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at ZK (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1741:1183)\n    at file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1741:911\n    at Array.map (<anonymous>)\n    at vX (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1741:902)\n    at rJB (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2847:9380)\n    at CC (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Xp (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at I9 (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Dh (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at TC (file:///Users/kristjangrm/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-20T08:11:01.359Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗