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
{{ message }}
Repository navigation
[Bug]: zsh completion for openclaw wiki ingest does not complete file paths #69293
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
The generated zsh completion for openclaw wiki ingest knows about the command, but omits the positional file argument, so path completion does not work.
Closing this as duplicate or superseded after Codex automated review.
The bug is still present on current main, but the same remaining work is already tracked by the open, focused PR #69305. That PR directly targets the generic zsh completion generator, adds positional argument emission from Commander metadata, and adds regression coverage for path/directory/variadic positionals. The other duplicate fix attempts, #69352 and #69509, are closed.
Best possible solution:
Close #69293 as superseded by the active canonical PR #69305. Keep the implementation review on the generic zsh completion generator there, with regression tests in src/cli/completion-cli.test.ts; do not add a memory-wiki-specific workaround.
What I checked:
Current main still omits leaf positional args: The zsh leaf-command template still emits _arguments -C with only generateZshArgs(cmd), which walks options and does not include Commander positional arguments. (src/cli/completion-cli.ts:257, 7e13f3f51401)
wiki ingest has the missing positional path argument: The memory-wiki plugin registers openclaw wiki ingest with .argument("<path>", "Local file path to ingest"), plus --title and --json, matching the reporter's missing zsh positional completion case. (extensions/memory-wiki/src/cli.ts:714, 7e13f3f51401)
Dependency contract supports the proposed generic fix path: The repo depends on Commander 14.0.3, and Commander 14's typings expose Command.registeredArguments and Argument fields such as description, required, and variadic, so the canonical PR's approach uses the available dependency surface rather than memory-wiki-specific hardcoding. (package.json:1644, 7e13f3f51401)
So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex Review notes: model gpt-5.5, reasoning high; reviewed against 7e13f3f51401.
Activity
fix: complete zsh positional wiki ingest paths
clawsweeper commentedon Apr 26, 2026
Closing this as duplicate or superseded after Codex automated review.
The bug is still present on current main, but the same remaining work is already tracked by the open, focused PR #69305. That PR directly targets the generic zsh completion generator, adds positional argument emission from Commander metadata, and adds regression coverage for path/directory/variadic positionals. The other duplicate fix attempts, #69352 and #69509, are closed.
Best possible solution:
Close #69293 as superseded by the active canonical PR #69305. Keep the implementation review on the generic zsh completion generator there, with regression tests in
src/cli/completion-cli.test.ts; do not add a memory-wiki-specific workaround.What I checked:
_arguments -Cwith onlygenerateZshArgs(cmd), which walks options and does not include Commander positional arguments. (src/cli/completion-cli.ts:257, 7e13f3f51401)wiki ingesthas the missing positional path argument: The memory-wiki plugin registersopenclaw wiki ingestwith.argument("<path>", "Local file path to ingest"), plus--titleand--json, matching the reporter's missing zsh positional completion case. (extensions/memory-wiki/src/cli.ts:714, 7e13f3f51401)src/cli/completion-cli.tsandsrc/cli/completion-cli.test.ts. Its diff adds zsh positional specs for leaf commands and tests_files,_files -/, optional, and variadic positionals. (a971ee3b3d50)Command.registeredArgumentsandArgumentfields such asdescription,required, andvariadic, so the canonical PR's approach uses the available dependency surface rather than memory-wiki-specific hardcoding. (package.json:1644, 7e13f3f51401)So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex Review notes: model gpt-5.5, reasoning high; reviewed against 7e13f3f51401.