Skip to content

fix(tui): register debt compatibility aliases#4680

Open
nightt5879 wants to merge 3 commits into
Hmbown:mainfrom
nightt5879:nightt5879/issue-3914-command-aliases
Open

fix(tui): register debt compatibility aliases#4680
nightt5879 wants to merge 3 commits into
Hmbown:mainfrom
nightt5879:nightt5879/issue-3914-command-aliases

Conversation

@nightt5879

@nightt5879 nightt5879 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #3914

Summary

  • Register /slop and /canzha as /debt aliases in DEBT_INFO, so dispatch and discovery share one source of truth.
  • Remove the pre-registry special case while preserving user-command shadowing and canonical debt execution.
  • Make topic help, typo suggestions, slash-menu copy, and the searchable Help overlay filter names and aliases owned by workspace/global user commands, matching real dispatch precedence (including hidden commands).
  • Rename the localization key around /debt, update command-dispatch documentation, and add focused alias, shadowing, help, search, and completion coverage.

Testing

  • cargo fmt --all -- --check
  • cargo clippy -p codewhale-tui --bin codewhale-tui --locked --no-deps (no warnings from this patch; four pre-existing warnings remain in untouched code)
  • cargo test -p codewhale-tui --bin codewhale-tui --locked commands:: (582 passed)
  • cargo test -p codewhale-tui --bin codewhale-tui --locked tui::views::help::tests:: (24 passed)
  • cargo test -p codewhale-tui --bin codewhale-tui --locked slash_completion_hints (20 passed)
  • cargo test -p codewhale-tui --bin codewhale-tui --locked localization::tests:: (19 passed)
  • cargo test -p codewhale-tui --bin codewhale-tui --locked debt_ (3 passed)
  • cargo test --workspace --exclude codewhale-tui --exclude codewhale-lane --locked
  • cargo test --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features

The final full local TUI run reached 7,683 passed with three unrelated local/parallel failures and two ignored tests. Two stable environment failures reproduce outside this patch: PowerShell echo emits UTF-16 for operate_model_shell_uses_normal_approval_and_workspace_sandbox, and a real home-directory instructions file triggers system_prompt_prefix_never_leaks_private_content. The third, approval_required_awaits_external_decision_allow, passed immediately in isolation and is a parallel timing flake. The workspace run including codewhale-lane also hits its pre-existing Windows-only echo executable assumption.

Checklist

  • Updated docs or comments as needed
  • Added or updated tests where relevant
  • Self-reviewed and independently reviewed the final diff
  • Verified TUI behavior manually if UI changes
  • Harvested/co-authored credit uses a GitHub numeric noreply address (not applicable)

Move /slop and /canzha into DEBT_INFO so dispatch, help, slash completion, and typo suggestions share one registry source of truth.

Rename the description key around canonical /debt wording, update command-dispatch docs, and add focused registry/help/completion regression coverage.

Refs Hmbown#3914

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
@nightt5879
nightt5879 requested a review from Hmbown as a code owner July 22, 2026 03:26
@nightt5879

Copy link
Copy Markdown
Contributor Author

@codex review Please review final head 6968601, focusing on user-command shadowing and dispatch precedence; /slop and /canzha help, completion, typo-suggestion, and execution behavior; localization key parity and fallback; and regression-test coverage without changing canonical /debt semantics.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 696860150c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/tui/src/commands/groups/config/mod.rs
Filter built-in help topics, advertised aliases, and typo candidates against the current workspace user-command registry so discovery matches dispatch precedence.

Cover canonical and alias-based shadows for /slop and /canzha while keeping canonical /debt help and typo suggestions available.

Addresses Codex review on Hmbown#4680.

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
@nightt5879

Copy link
Copy Markdown
Contributor Author

@codex review Please review updated head 584dc18. The prior P2 is fixed by filtering built-in help topics, advertised aliases, and typo candidates against the workspace user-command registry; its thread is resolved with focused and full command-test evidence. Please check the final shadowing semantics and regression coverage.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 584dc181f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/tui/src/commands/groups/config/mod.rs
Comment thread crates/tui/src/commands/groups/config/mod.rs
Filter built-in alias copy and search metadata through the workspace user-command registry so Help and slash completion match dispatch.

Cover hidden, alias, and canonical shadows in focused regression tests.

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
@nightt5879

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: ccf4c218f6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

consistency(tui/dispatch): /slop and /canzha execute but are ghosts — no /help topic, no completion, no typo suggestions

1 participant