[BUG] Option to log issue in GitHub from Claude Code can fail silently

Status Open
Reported on v2.1.195
Maintainer reply None cached
Activity 4 comments · opened Jun 27, 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?

When I log feedback with /feedback, and at the end I'm asked to press Enter to log an issue on GitHub, for me it fails silently almost every time. I've only had it work once. Turns out, it's because my default GitHub account is actually a GitHub Enterprise account, and that account is locked down such that it cannot be used to contribute to non-organization-owned repositories. The only time I was able to get the Enter button to properly open a GitHub issue was when I happened to be logged out of my GHE account, and only my regular GitHub account was logged in.

What Should Happen?

Claude Code should detect when users have multiple GitHub accounts connected and ask them to choose which one they want to use to log issues.

AND/OR

Claude Code should handle the error when it fails to log the issue, trying harder to allow the user to get the issue created from their /feedback command.

Error Messages/Logs

This fails silently, so there are no logs.

Steps to Reproduce

  1. On a machine where you are connected to GitHub using a GHE account that does not have permission to contribute to any repository other than one owned by the corporation, use the /feedback command to log some feedback.
  2. When prompted to hit Enter to open a GitHub issue, hit the Enter key.

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.195 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] · 2 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/68067
  2. https://github.com/anthropics/claude-code/issues/66201
  3. https://github.com/anthropics/claude-code/issues/30031

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

yurukusa · 2 months ago

Your diagnosis (the locked-down GHE account being the default is what kills it) lines up with a much less painful workaround than logging out of GHE each time.
Why it fails silently: the "press Enter to log an issue on GitHub" step creates the issue through your active gh CLI authentication, not a fresh browser login. When your default/active gh account is the GitHub Enterprise one — which is restricted from contributing to repos outside its org — the create call to a public repo like this one is rejected (a 403 from the API), and that error gets swallowed instead of surfaced, so it just looks like nothing happened. That's exactly why it only worked the one time your regular github.com account was the only one logged in.
Repeatable workaround (no logging out of GHE): gh supports multiple accounts per host and lets you pick the active one. Switch the active account for github.com to your regular (non-GHE) account before logging feedback:

gh auth status          # see which accounts are connected and which is active
gh auth switch --hostname github.com --user <your-regular-github-username>

After that, the active github.com identity is your unrestricted account, so the issue-create succeeds without touching your GHE login at all. You can switch back with the same command. (If your regular account isn't connected yet, gh auth login --hostname github.com first.)
If it still fails after switching, run the underlying create directly to see the real error the UI is hiding — e.g. gh issue create --repo anthropics/claude-code --title test --body test — a 403 there confirms it's the account-permission path; a different error points elsewhere.
On the feature request — strongly agree, and the silent part is the worse half. Two things would fix this cleanly: (1) when more than one GitHub account is connected, prompt which one to use for issue logging (as you said); and (2) regardless of that, surface the API error instead of swallowing it — a one-line "couldn't create the issue: 403 (this account can't contribute to this repo)" would have saved you the whole investigation. A silent failure on a "press Enter to submit" action is the part that makes it feel broken rather than blocked.
(Not affiliated with Anthropic — the gh auth switch multi-account behavior is standard gh CLI; the rest is reasoned from your symptom that it only works when the GHE account is logged out.)

KirkMunroSagent · 2 months ago

Good feedback @yurukusa, thank you. I connected my non-GHE account using gh auth login, and then made it the active account using gh auth switch. Even with it active, the Enter key fails to open an issue in GH. I then tried gh issue create using the command you shared, and that worked just fine. So my current situation is: logged in with two GH accounts, one GHE, but my non-GHE account is my active one, and Enter still fails to create issues in GitHub, even though gh issue create works just fine.

yurukusa · 1 month ago

@KirkMunroSagent — thank you for running that so cleanly; the result is the useful part, and it means my earlier workaround was incomplete, so let me correct it.

Switching the active github.com account to your non-GHE one would have been enough if the "press Enter to log an issue" step simply shelled out to your active gh CLI. But you've now shown it doesn't:

  • gh issue create --repo anthropics/claude-code ...works (your non-GHE account is correctly active and unrestricted)
  • /feedback → "press Enter to log an issue on GitHub" → still fails silently, with that same active account

Those two using the same active gh identity yet behaving differently is the key signal: the Enter-to-log action is not going through the same path as gh issue create. So this is not your account setup — you've already proven that's correct — it's Claude Code's own issue-logging integration still hitting a failing path (and still swallowing the error). I can confirm from my own environment that gh CLI/API issue-and-comment creation against this public repo succeeds fine with a standard github.com account, which lines up with your gh issue create result — the CLI layer is not the broken part.

I don't want to hand you an unverified fix, so I'll stop at what's actually established rather than guess at CC's internals. Meanwhile, since it's confirmed working, you can log the issue directly:

gh issue create --repo anthropics/claude-code --title "<title>" --body "<body>"

For the maintainers, the narrowed report: with a correct, unrestricted active github.com account (proven by gh issue create succeeding), the /feedback Enter-to-log-issue path still fails silently — so the fault is in that feature's own submission path, independent of the user's gh account, plus the swallowed error that hides it. Surfacing the underlying error (even one line) and/or reusing the same path as gh issue create would resolve both halves.

(Not affiliated with Anthropic.)