[BUG] Claude Code web session loses GitHub push access mid-project

Resolved 💬 10 comments Opened May 7, 2026 by raymondckearney Closed Jun 8, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] 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_

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗