Skip to content

[FEATURE] Session URL appended to commit messages and PR descriptions by default — should be opt-in #66504

Closed

Description

@joka-7

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Every commit message and PR description created by Claude Code automatically includes a session URL at the bottom (e.g. https://claude.ai/code/session_...). There is no opt-in prompt, no warning, and no mention of it during onboarding. Users only discover it after it's already polluting their git history.

Proposed Solution

Make the session URL attribution opt-in — don't include it unless the user explicitly enables it. A one-time prompt during onboarding ("Would you like to include a link back to this Claude session in commit messages?") would be the ideal UX.

Alternative Solutions

  • Keep it opt-out but make the setting discoverable — show it during first commit with a "Don't add this again" option

  • Remove it entirely and rely only on the existing Co-Authored-By: Claude trailer for attribution

Priority

Medium - Would be very helpful

Feature Category

Other

Use Case Example

A developer uses Claude Code to build a feature, commits the work, and opens a PR.
Their teammates and open source contributors see https://claude.ai/code/session_... at the bottom of every commit and PR description.
It looks unprofessional, clutters history, and the developer had no idea it was being added.

Additional Context

  • The attribution.commit: "" setting in .claude/settings.json can suppress it, but it's completely undiscovered
  • A commit-msg git hook can also strip it, but it doesn't always fire reliably in remote/cloud environments

Activity

  1. georgiosd commented on Jun 18, 2026

    @georgiosd

    This is indeed very annoying and makes zero sense from a UX perspective - are they vibe product managing now at Anthropic?

    attribution.commit = "" doesn't fix it either.

    Claude found this in the harness source code:

    Add to ~/.claude/settings.json:

    "env": {
      "CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION": "1"
    }
    
  2. ambroselittle commented on Jun 26, 2026

    @ambroselittle

    This is some serious BS--that it does this on by default. WTH, Anthropic??

  3. janearc commented on Jun 30, 2026

    @janearc

    this is extremely spooky behaviour to surface without telling anyone. and it's not consistent. because whatever is causing this isn't part of the agen't config, if you ask it, "hey why are you doing this thing i don't like," it will just tell you "that's in my instructions." but in my case, i had another agent just go through and read-only go through the entirety of the one session where this happened, and it couldn't find any evidence of my saying that, and there's no config for it, so it's just mysteriously posting something that looks an awful lot like a private session id???

    what?

  4. ferrants commented on Jul 2, 2026

    @ferrants

    you can set the sessionUrl in the attribution settings: https://code.claude.com/docs/en/settings#attribution-settings

    in your ~/.claude/settings.json:

    {
      "attribution": {
        "commit": "",
        "pr": "",
        "sessionUrl": false
      }
    }
    
  5. ambroselittle commented on Jul 2, 2026

    @ambroselittle

    Yeah, the point is not that it can't be overridden. The point is off should be the default.

  6. saevarb commented on Jul 7, 2026

    @saevarb

    It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?

  7. janearc commented on Jul 7, 2026

    @janearc

    It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?

    when a software company gets to a certain size sometimes people who are not software engineers are in those meetings and make those decisions (or have the power to override other people in those meetings). in my experience, this is often marketing people, product people, legal people, and the founder-ish type people that maybe don't have a lot of sense but they have the title.

    i am doubtful that there's a software engineer who uses claude daily who thought, "yeah, what these people need is a random footnote added to all their github comments, that's a missing feature for sure!" that really seems to me to be more of a product, marketing, or leadership kind of feature, and someone told an engineer to go and do it.

    obviously i don't work there, but that's been how it's happened for me in the past. i usually just say "well okay, i guess" and then go and do it because they pay me to make software. sometimes because they pay me they get to tell me what to do even when i don't like it.

  8. mgambrell commented on Jul 18, 2026

    @mgambrell

    Had my daily heart attack when I saw this today. Had to scramble to make a new account to verify it wasn't "public" to any user with any claude.ai login while I waited for someone else to check if my sessions were leaked.

    How would my sessions get on the cloud in the first place if I didn't use remote control? I didn't order that. it seemed possibly compatible with my data that only remote control sessions would get the web session ids (and it's logical kind of, though not what we expect "remote control" to do which is remote control something LOCAL). A friend of mine says he never uses remote control but already found this "feature" and already disabled it.

    So now I go to check if a non-remote controlled session gets session urls. Surprise! I can't get any claude session on any model to produce the Claude-Session trailer nor admit to having any knowledge of it.

    So... now what? I guess I'm checking the bottom of every commit message until I get confident my instructions to strip that from every commit regardless are heeded and/or the lore on this matter's more settled yield something more informative.

  9. saevarb commented on Jul 18, 2026

    @saevarb

    @mgambrell

    You can disable this in the settings. It's just turned on by default - and, from what I could gather from the release notes, this "feature" was added a few weeks before they added the ability to turn it off in settings. 🙄

  10. mgambrell commented on Jul 18, 2026

    @mgambrell

    @saevarb Until I can turn it on, see it happen, then turn it off and see it not happen, I don't trust the situation.

  11. ryandward commented on Aug 2, 2026

    @ryandward

    This needs to be resolved immediately. This is a massive potential for intellectual property leaks.

  12. tnahata commented on Aug 5, 2026

    @tnahata

    So do we have any updates around this @claude?

  13. 4 remaining items

  14. 40960 commented on Aug 20, 2026

    @40960

    That is a stupid and evil feature.

  15. sebhofmann commented on Aug 24, 2026

    @sebhofmann

    Thats a really stupid feature. It should be disabled by default!

  16. rkuska commented on Aug 28, 2026

    @rkuska

    The session link is only added in web and Remote Control sessions, and it can be turned off with a dedicated setting:

    { "attribution": { "sessionUrl": false } }
    That keeps the Co-Authored-By trailer while dropping the link. Docs: https://code.claude.com/docs/en/settings#attribution-settings

    Closing since the setting exists; happy to reopen if the opt-in default discussion should continue separately.

    🤖 Generated with Claude Code

    The problem with recent versions of claude code is that all sessions are remote by default. I see /rc active in every session I run.

  17. mstrausz commented on Aug 28, 2026

    @mstrausz

    The session link is only added in web and Remote Control sessions, and it can be turned off with a dedicated setting:
    { "attribution": { "sessionUrl": false } }
    That keeps the Co-Authored-By trailer while dropping the link. Docs: https://code.claude.com/docs/en/settings#attribution-settings
    Closing since the setting exists; happy to reopen if the opt-in default discussion should continue separately.
    🤖 Generated with Claude Code

    The problem with recent versions of claude code is that all sessions are remote by default. I see /rc active in every session I run.

    Yes, this is what leads to all sessions being leaked into PRs and git commits. Not good.

  18. AmazingTurtle commented on Aug 30, 2026

    @AmazingTurtle

    It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?

    My bet: so they know what is AI slop and what not, when they scrape public GH repos, they know what NOT to use for training ;)

  19. younsl commented on Aug 30, 2026

    @younsl

    Still can't believe this was force-enabled for every single Claude Code user. Truly an amazing product.

  20. jstilwell commented on Aug 30, 2026

    @jstilwell

    Not a big fan of these overtly opinionated default-to-on changes.

  21. luuvasara commented on Aug 31, 2026

    @luuvasara

    Quite certainly a GDPR violation.

  22. piuvas commented on Sep 1, 2026

    @piuvas

    only suckers here

  23. github-actions commented on Oct 23, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  24. locked as resolved and limited conversation to collaborators on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions