-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[Bug] /auth: "cancelled by user" error in Ghostty terminal #24745
Copy link
Copy link
Closed
Labels
area/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtarea/securityIssues related to securityIssues related to securityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!We will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p2Important but can be addressed in a future release.Important but can be addressed in a future release.
Metadata
Metadata
Assignees
Labels
area/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtarea/securityIssues related to securityIssues related to securityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!We will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p2Important but can be addressed in a future release.Important but can be addressed in a future release.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
When using the
/authcommand in the Ghostty terminal, the CLI prematurely reports "cancelled by user" during the OAuth flow, preventing successful sign-in.Steps to Reproduce
gemini-cli /auth.Technical Investigation
The issue appears to originate from the
cancellationPromiseingemini-cli/packages/core/src/code_assist/oauth2.ts. This promise listens forSIGINTor0x03(Ctrl+C) inprocess.stdin.In Ghostty, it's possible that:
SIGINTis triggered unexpectedly.0x03inprocess.stdin.Relevant code snippet: