You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix zsh completion recursion when prog_name matches a builtin helper
The generated zsh autoload entry was named `_<prog>`, which shadows zsh's
builtin `_files` / `_directories` / `_arguments` / ... helpers when
`<prog>` happens to match one. `_arguments`'s `:file:_files` action then
recurses back into our own function instead of the real builtin — on
macOS this surfaces as a "recursion limit exceeded" message that gets
scraped as a phantom completion (test silently passed); on aarch64 Linux
under Nix the pty closes and pexpect sees EOF (issue #821).
Namespace the autoloaded function and install path as `_cyclopts_<prog>`
so internal helper calls always resolve to the real zsh builtins.
Tighten `test_collection_option_repeats` to assert that `first.txt`
appears in the completion list — the previous `assert completions` was
satisfied by the recursion-error text and masked the bug.
Fixes#821.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>