Does it have the same behavior with other common licenses?
I would not be surprised if there are some guardrails in place specifically to keep licenses from being generated. If a client accidentally re-licensed their entire source-available product because they weren't paying attention to what Claude Code was spitting out, I imagine they'd be pretty upset (I don't know if such an accidental license would hold up in court, but nevertheless).
Once CC tried to put an MIT license on a proprietary repo
It's best to explicitly to disallow things like that in CLAUDE.md
Does it have the same behavior with other common licenses?
I would not be surprised if there are some guardrails in place specifically to keep licenses from being generated. If a client accidentally re-licensed their entire source-available product because they weren't paying attention to what Claude Code was spitting out, I imagine they'd be pretty upset (I don't know if such an accidental license would hold up in court, but nevertheless).