← Back to issue list

Hidden commands are suggested as alternatives for command not found

View original Github issue

Metadata

Project
craft-cli
Number
#297
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Hidden-command suggestions were fixed in merged PR #302 (commit 4be3f0c), filtering hidden commands out of command-not-found alternatives.

Resolution: closed resolved

Reason: Commit 4be3f0c, titled "fix: don't suggest hidden commands (#302)", adds filtering for hidden commands and corresponding unit-test coverage verifying they are omitted from suggestions.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description When a bad command is entered, hidden commands are included. ### To Reproduce ``` lengau@ratel:~$ mycraft release-status --release-id 9a2badfca9c442c19f29a3f134ed2838 Usage: mycraft [options] command [args]... Try 'mycraft -h' for help. Error: no such command 'release-status', maybe you meant 'buildset-status' or 'status' ``` Here 'buildset-status' is a hidden command ### part yaml _No response_ ### Relevant log output ```shell n/a ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Hidden-command suggestions were fixed in merged PR #302 (commit 4be3f0c), filtering hidden commands out of command-not-found alternatives.
stealth/space-bunny-alpha — closed stale Reported that command-not-found suggestions exposed the hidden buildset-status command. Closed with no code change or resolution documented; only a Jira-sync comment was added.
qwen/qwen3.6-35b-a3b — — Closed without a visible fix or resolution. The report was synced to internal Jira ticket CRAFT-3618 and appears abandoned or deferred, with no GitHub resolution or merge documented.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The bug reporting hidden commands in command-not-found suggestions was synced to an internal Jira ticket but abandoned without a fix.
qwen/qwen3.6-35b-a3b — — Closed without a public fix. The issue was abandoned and tracked internally via Jira ticket CRAFT-3618. Hidden commands continue to incorrectly appear in command-not-found suggestions.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-cli#302 (confidence 99%)

    PR #302 contains the documented fix for this issue and was recorded in the repository history.

Related issues

Issue Project State Summary Similarity
#72 Introduce the concept of hidden commands. craft-cli merged Merged PR #72 as commit 377ec17, introducing hidden commands that remain usable but are excluded from help and cannot also be common.
74%
#302 fix: don't suggest hidden commands craft-cli merged Merged in canonical/craft-cli#302 (commit 4be3f0c), preventing hidden commands from appearing in command-not-found suggestions and fixing #297.
72%
#449 Command help 'See also' should filter hidden commands craft-cli closed Fixed in merged PR #452 (commit 574d243): command help now excludes hidden commands from the "See also" list.
71%