claude-code - 💡(How to fix) Fix [BUG] Claude Code web session loses GitHub push access mid-project

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…

Error Message

Error: The requested URL returned error: 403

Error Messages/Logs

  1. Claude attempts git push → 403 error

Root Cause

Root cause observed: GitHub settings show Claude is authorized as an OAuth app but "has not been installed on any accounts" — the GitHub App installation appears to be missing or was never completed, so only read access works, not write/push.

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?

Environment: Claude Code web (claude.ai/code)

Issue: Git push stopped working mid-project with persistent 403 errors, despite the GitHub OAuth app being authorized. Previous commits on the same branch pushed successfully.

Error: remote: Permission to raymondckearney/Curio.git denied to raymondckearney. fatal: unable to access 'http://127.0.0.1:<port>/git/raymondckearney/Curio/': The requested URL returned error: 403

Steps taken without success:

  • Disconnected and reconnected GitHub in claude.ai settings multiple times
  • Closed and reopened the session (proxy port changed, 403 persisted)
  • Attempted push via GitHub MCP tool (same 403)

Root cause observed: GitHub settings show Claude is authorized as an OAuth app but "has not been installed on any accounts" — the GitHub App installation appears to be missing or was never completed, so only read access works, not write/push.

Request: The Claude Code web onboarding flow should ensure the GitHub App is fully installed (not just OAuth-authorized) before allowing git operations, or provide a clear "Install GitHub App" button when push access fails.

What Should Happen?

GitHub push should work reliably throughout a session. If the GitHub App installation is missing or the push token expires, Claude Code should detect this automatically and prompt the user to reinstall/reauthorize — not silently fail with a 403.

Error Messages/Logs

Steps to Reproduce

  1. Connect GitHub via claude.ai settings (OAuth only — no GitHub App install prompt)
  2. Open a Claude Code web session on an existing repository
  3. Have Claude make and commit changes
  4. Claude attempts git push → 403 error
  5. Disconnecting/reconnecting GitHub in settings does not fix it
  6. Closing and reopening the session does not fix it
  7. Push remains broken for the remainder of the session

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Code 2.1.132.

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

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