Skip to content

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

Description

@raymondckearney

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:/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autharea:claude-code-webClaude Code on the web. claude.com/codebugSomething isn't workingplatform:webIssue specifically occurs on the web

    Type

    No type

    Fields

    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