Skip to content

zsh completion breaks when task description contains parentheses (v3.x regression) #558

@silee9019

Description

@silee9019

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

  1. Define a mise task with parentheses in description:
[tasks."connect:server"]
description = "Connect server (Hot Reload)"
  1. Run mise run<TAB> in zsh

  2. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions