Skip to content

Fix unknown command suggestions#28

Open
Wenjunyun123 wants to merge 1 commit into
openai:mainfrom
Wenjunyun123:codex/fix-unknown-command-suggestions
Open

Fix unknown command suggestions#28
Wenjunyun123 wants to merge 1 commit into
openai:mainfrom
Wenjunyun123:codex/fix-unknown-command-suggestions

Conversation

@Wenjunyun123

Copy link
Copy Markdown

Summary:

  • Adds a maximum edit-distance threshold before suggesting a command for unknown input.
  • Keeps close typo suggestions while avoiding unrelated suggestions.
  • Adds regression coverage for close and distant unknown commands.

Testing:

  • git diff --check
  • Not run: go test ./pkg/cmd -run TestSuggestCommand because go is not installed in this local environment.

Fixes #16

AI assistance: This bug fix was prepared with AI assistance and reviewed before submission.

@Wenjunyun123 Wenjunyun123 requested a review from a team as a code owner June 26, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unknown-command suggestions are empty or misleading

1 participant