claude-code - 💡(How to fix) Fix [BUG] /install-github-app without a Pro account cannot cancel/exit [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57924Fetched 2026-05-11 03:21:48
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1renamed ×1

Error Message

❯ /install-github-app

Create Authentication Token

Creating a long-lived token for GitHub Actions

Browser didn't open? Use the url below to sign in (c to copy)

https://claude.com/cai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5944d1 962f5e&
response_type=code&redirect_uri=https%3A%2F%2Fplatform.claude.com%2Foauth%2Fcode%2Fcallba ck&scop
e=user%3Ainference&code_challenge=P28YuH96tFE3Ej0GGlxrLfy6Qzs_5KA3vzJHs_9qLv4&code_challe nge_met
hod=S256&state=FPF8lK4t15_WSdX1-PSFEN0n--0JxehNhyML1ONQ06s

Paste code here if prompted >

==========

❯ /install-github-app

Create Authentication Token

Creating a long-lived token for GitHub Actions

OAuth error: Invalid code. Please make sure the full code was copied

Press Enter to try again, or any other key to cancel

Code Example

/install-github-app                                                                     
                                                                                            
  Create Authentication Token                                                               
                                                                                            
  Creating a long-lived token for GitHub Actions                                            
                                                                                            
                                                                                            
                                                                                            
   Browser didn't open? Use the url below to sign in (c to copy)                            
                                                                                            
  https://claude.com/cai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5944d1 
  962f5e&                                                                                   
  response_type=code&redirect_uri=https%3A%2F%2Fplatform.claude.com%2Foauth%2Fcode%2Fcallba 
  ck&scop                                                                                   
  e=user%3Ainference&code_challenge=P28YuH96tFE3Ej0GGlxrLfy6Qzs_5KA3vzJHs_9qLv4&code_challe 
  nge_met                                                                                   
  hod=S256&state=FPF8lK4t15_WSdX1-PSFEN0n--0JxehNhyML1ONQ06s                                
                                                                                            
                                                                                            
   Paste code here if prompted >                                                            
                                                                                            
  ==========                                                                                
                                                                                            
/install-github-app                                                                     
                                                                                            
  Create Authentication Token                                                               
                                                                                            
  Creating a long-lived token for GitHub Actions                                            
                                                                                            
                                                                                            
                                                                                            
   OAuth error: Invalid code. Please make sure the full code was copied                     
                                                                                            
   Press Enter to try again, or any other key to cancel
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

ran /install-github-app without a Pro account that supports long-lived tokens; no way to abort once the OAuth prompt appears, Ctrl-C doesn't exit

What Should Happen?

ctrl-c should allow exiting out of loop to enter long-lived key

Error Messages/Logs

❯ /install-github-app                                                                     
                                                                                            
  Create Authentication Token                                                               
                                                                                            
  Creating a long-lived token for GitHub Actions                                            
                                                                                            
                                                                                            
                                                                                            
   Browser didn't open? Use the url below to sign in (c to copy)                            
                                                                                            
  https://claude.com/cai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5944d1 
  962f5e&                                                                                   
  response_type=code&redirect_uri=https%3A%2F%2Fplatform.claude.com%2Foauth%2Fcode%2Fcallba 
  ck&scop                                                                                   
  e=user%3Ainference&code_challenge=P28YuH96tFE3Ej0GGlxrLfy6Qzs_5KA3vzJHs_9qLv4&code_challe 
  nge_met                                                                                   
  hod=S256&state=FPF8lK4t15_WSdX1-PSFEN0n--0JxehNhyML1ONQ06s                                
                                                                                            
                                                                                            
   Paste code here if prompted >                                                            
                                                                                            
  ==========                                                                                
                                                                                            
  ❯ /install-github-app                                                                     
                                                                                            
  Create Authentication Token                                                               
                                                                                            
  Creating a long-lived token for GitHub Actions                                            
                                                                                            
                                                                                            
                                                                                            
   OAuth error: Invalid code. Please make sure the full code was copied                     
                                                                                            
   Press Enter to try again, or any other key to cancel

Steps to Reproduce

run /install-github-app without a Pro account

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.138 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] /install-github-app without a Pro account cannot cancel/exit [1 comments, 2 participants]