/usage-credits fires accidentally — autocomplete prefix-collision with /usage (relocated from the closed /extra-usage vs /exit issues)
Summary
Typing /usage (to open the read-only usage / rate-limit view) can accidentally
send a usage-credit-increase request to the org admin, because /usage and/usage-credits share a prefix and sit adjacent in the slash-command autocomplete
menu. Pressing Enter/Tab accepts whichever entry is highlighted, so the
admin-facing command is one keystroke away from a routine read-only one.
This is the old collision, relocated by a rename
There is a prior cluster of issues, all closed as not planned, about the old
name /extra-usage colliding with /exit:
- #36095 —
/exttypo triggers/extra-usageinstead of/exit - #37879 —
/extra-usageautocomplete collides with/exit - #47768 — add a confirmation prompt before
/extra-usagesends - #47111 — prompt before consuming extra usage credits on session limit
The command has since been renamed /extra-usage → /usage-credits. That rename
did not fix the collision class — it moved it onto /usage, a command users
invoke deliberately and frequently to check their limits. So the near-miss is now
against a routine read-only command rather than /exit.
Steps to reproduce
- At the prompt, type
/usage(intending to open the usage view). - Press Enter (or Tab) without carefully checking which entry is highlighted.
/usage-creditsfires instead of/usage, sending a credit-limit-increase
request to the org admin.
Expected
Accepting /usage runs /usage. A command with an outward-facing, non-cancellable
side effect (notifying an admin) should not be one keystroke away from a read-only
command that shares its prefix.
Actual
/usage-credits is selected and immediately dispatches the admin request. There is
no confirmation step, and no way to cancel or recall it once sent — re-running just
reports You've already sent a usage credit request.
Impact
- Silent, non-cancellable side effect (admin notification) triggered by a near-miss
on a common read-only command.
- No local way to disable or hide the command — it is built-in (not in
~/.claude/,
and no config / keybinding / hook governs it).
Suggested fixes (any one helps)
- Add a confirmation prompt before
/usage-creditssends (default No). This was
requested in #47768 and closed unaddressed.
- When the input exactly matches
/usage, don't rank/usage-creditsat/above
/usage in autocomplete.
- Provide a way to cancel/withdraw a pending credit request.
- Rename to remove the prefix collision entirely (e.g.
/request-credits).
Environment
- Claude Code 2.1.204
- Linux (WSL2)