Description
After upgrading from usage-cli v2.18.2 to v3.1.0, zsh tab completion for mise run fails with errors when task descriptions contain parentheses.
Environment
- usage-cli: 3.1.0
- mise: 2026.3.12
- shell: zsh 5.9 (macOS)
- Worked on: usage-cli 2.18.2
Reproduction
- Define a mise task with parentheses in description:
[tasks."connect:server"]
description = "Connect server (Hot Reload)"
-
Run mise run<TAB> in zsh
-
Observe errors:
(eval):1: unknown file attribute: ^,
(eval):1: unknown sort specifier
Root Cause
usage complete-word --shell zsh outputs completion entries like:
connect\:server:Connect server (Hot Reload)
When zsh's _describe processes these, the ( and ) characters in the description are interpreted as glob qualifiers, causing parse errors.
In v2.x, this was either escaped or handled differently.
Expected Behavior
Parentheses in task descriptions should be escaped (e.g., \(, \)) or quoted before being passed to _describe so zsh does not interpret them as glob qualifiers.
Workaround
Remove parentheses from task descriptions (replace with dashes):
description = "Connect server - Hot Reload"
Description
After upgrading from
usage-cliv2.18.2 to v3.1.0, zsh tab completion formise runfails with errors when task descriptions contain parentheses.Environment
Reproduction
Run
mise run<TAB>in zshObserve errors:
Root Cause
usage complete-word --shell zshoutputs completion entries like:When zsh's
_describeprocesses these, the(and)characters in the description are interpreted as glob qualifiers, causing parse errors.In v2.x, this was either escaped or handled differently.
Expected Behavior
Parentheses in task descriptions should be escaped (e.g.,
\(,\)) or quoted before being passed to_describeso zsh does not interpret them as glob qualifiers.Workaround
Remove parentheses from task descriptions (replace with dashes):