fix(cli): /whoami no longer reports Unknown command in the classic CLI (salvage #26047) - #90381
Merged
Merged
Conversation
Contributor
૮ >ﻌ< ა ci reviewran on 1de5414 — fix(cli): wire /whoami slash command in classic CLI
|
This was referenced Aug 20, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/whoaminow dispatches in the classic CLI instead of printingUnknown command: /whoami.Salvage of #26047 by @kronexoi (earliest of 4 independent fixes for this bug), cherry-picked onto current main with authorship preserved.
Root cause: the command exists in the shared
COMMAND_REGISTRY(so it appears in/helpand autocomplete on every surface), butcli.py'sprocess_command()never had a dispatch branch for it. Refs #74594, #35892.Changes
cli.py:_handle_whoami_command()+ dispatch branch inprocess_command()tests/cli/test_cli_init.py: regression test —/whoamimust not fall through to Unknown commandValidation
/whoamiinhermeschatUnknown command: /whoamitests/cli/test_cli_init.py -k whoami→ 1 passedDuplicate cluster to close on merge: #26047 (salvaged, credit), #52170 (also fixed
/indicator— already fixed on main), #61416, #77920.Infographic