feat(cli): add 'Esc to close' hint to AuthDialog by JayadityaGit · Pull Request #25809 · google-gemini/gemini-cli · GitHub
Skip to content

feat(cli): add 'Esc to close' hint to AuthDialog#25809

Open
JayadityaGit wants to merge 2 commits intogoogle-gemini:mainfrom
JayadityaGit:feat/auth-dialog-esc-hint
Open

feat(cli): add 'Esc to close' hint to AuthDialog#25809
JayadityaGit wants to merge 2 commits intogoogle-gemini:mainfrom
JayadityaGit:feat/auth-dialog-esc-hint

Conversation

@JayadityaGit
Copy link
Copy Markdown
Contributor

@JayadityaGit JayadityaGit commented Apr 22, 2026

githubImg

Summary

This PR adds an "Esc to close" hint to the AuthDialog UI to inform users that they can dismiss the authentication dialog by pressing the Escape key.

Details

  • Updated the footer text in AuthDialog from (Use Enter to select) to (Use Enter to select, Esc to close).
  • Updated snapshot tests in packages/cli/src/ui/auth/__snapshots__/AuthDialog.test.tsx.snap to match the new UI text.
  • Verified that all unit tests and preflight checks pass.

Related Issues

Fixes #25726

How to Validate

  1. Run npm run start to launch the CLI.
  2. Trigger the authentication dialog (e.g., by running a command that requires auth if not logged in).
  3. Observe the hint text at the bottom: (Use Enter to select, Esc to close).
  4. Press Esc and verify the dialog behavior (it should attempt to close or show a message if closure is restricted by state).

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

@JayadityaGit JayadityaGit requested a review from a team as a code owner April 22, 2026 16:01
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the AuthDialog component in the CLI UI to include instructions for closing the dialog using the Escape key. Specifically, the helper text was updated from "(Use Enter to select)" to "(Use Enter to select, Esc to close)", and the corresponding test snapshots were updated to reflect this change. I have no feedback to provide.

@gemini-cli gemini-cli Bot added the area/security Issues related to security label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/security Issues related to security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing 'Esc to close' hint in the auth dialog

1 participant