Skip to content

[Bug]: zsh completion for openclaw wiki ingest does not complete file paths #69293

Closed as not planned

Description

@hombrevago

Bug type

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.

Steps to reproduce

Environment

  • OpenClaw version: 2026.4.15
  • Shell: zsh
  • Platform: macOS

Repro

  1. Generate/install zsh completions
    openclaw completion --shell zsh --write-state
    source ~/.openclaw/completions/openclaw.zsh
    

openclaw wiki ingest T

Expected behavior

should complete matching file paths, similar to normal shell filename completion.

Actual behavior

No path completion occurs, terminal beeps/flashes.

OpenClaw version

2026.4.15

Operating system

macOS

Install method

npm

Model

openai 5.4

Provider / routing chain

terminal

Additional provider/model setup details

_openclaw_wiki_ingest() {
_arguments -C
"--title[Override the source title]"
"--json[Print JSON]"
"1:markdown file:_files"
}

Logs, screenshots, and evidence

Impact and severity

nuisance

Additional information

No response

Activity

  1. added
    bug
    on Apr 20, 2026
  2. added
    bug:behavior
    on Apr 20, 2026
  3. added a commit that references this issue on Apr 20, 2026
    534af48
  4. clawsweeper commented on Apr 26, 2026

    @clawsweeper
    Contributor

    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:

    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.

  5. locked as resolved and limited conversation to collaborators on Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbug:behavior

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions