Repository navigation
feat(tui): add /login and /auth as aliases for /connect - #65265
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
This works as described. I ran the TUI from source on both branches. On the base, /login only matches /reload, so Enter reloads the configuration. With this change, /login and /auth both list "Connect an integration", and Enter opens the dialog. The autocomplete tests and tsc -b pass in packages/tui.
The public API is unchanged: these are aliases that exist only in the TUI.
The change uses the same slash.aliases mechanism as /sessions and /exit, and no other slash command uses login or auth. I have no concerns.
1 task
4 tasks
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.


Issue for this PR
Closes #
Type of change
What does this PR do?
People reach for
/loginor/authto connect a provider and get nothing, because the command is/connect. This adds both as slash aliases on the existingprovider.connectcommand, using the sameslash.aliasesmechanism as/sessions(/resume,/continue) and/exit(/quit,/q). No other command uses either name.How did you verify your code works?
/loginor/authshows the "Connect an integration" entry, and/login+ Enter opens the Connect an integration dialog (screenshots in the Slack thread)bun run typecheckinpackages/tui,bun test packages/tui/test/prompt/autocomplete.test.tsScreenshots / recordings
Shared in the requesting Slack thread.
Checklist
Requested by: @rekram1-node (Aiden Cline via Slack)