[BUG] `/voice on` is rejected with "Unknown mode" while `/voice off` works

Open Beginner friendly
#113,361 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Find the /voice command handler and the tests covering its on, off, and mode arguments. Read how the handler chooses a mode when enabling voice, then check how /voice off and bare /voice behave. Done means /voice on enables the saved mode and a regression test covers the behavior.

Written by the indexing model from the issue text.

Description

area:cli bug has repro platform:linux

Environment

  • Claude Code v2.1.333
  • Linux (Arch-based)

What happened
/voice on returns:

Unknown mode: "on". Use hold, tap, or off.

/voice off works, so on reads as its natural opposite. In one session the user typed /voice on four times before finding the accepted form.

Expected
/voice on turns voice mode on with the saved mode (voice.mode in settings, e.g. hold), mirroring /voice off. At minimum, the error could point to /voice or /voice hold.

Repro

  1. ~/.claude/settings.json contains "voice": { "enabled": true, "mode": "hold" }
  2. Run /voice off
  3. Run /voice on

Workaround
Bare /voice toggles, and /voice hold / /voice tap work.

Dominant language
TypeScript
Stars
158k
Forks
25.1k
Avg merge
1d 8h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.