Skip to content

fix(cli): auth restart dialog persists in terminal after session exit #24505

@JayadityaGit

Description

@JayadityaGit

What happened?

After completing the Google authentication flow, the "LoginWithGoogleRestartDialog" (which says "Press R to restart or Esc for different auth") persists at the top of the terminal even after the user restarts and eventually exits the Gemini CLI session. This results in unnecessary UI clutter remaining in the terminal scrollback.

What did you expect to happen?

The authentication restart dialog should be cleared from the terminal screen before the CLI process exits or restarts, ensuring no stale UI elements remain after the session ends.

Client information

Client Information OS: Linux Version: 0.36.0-nightly.20260317

Login information

Google Account (Login with Google)

Anything else we need to know?

The root cause is that the relaunch flow triggers an abrupt process exit, which prevents the Ink UI framework from unmounting the component and clearing its last render frame.

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p3Backlog - a good idea but not currently a priority.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions