{"version":"2.1.319","anchor":"branch-name-generation-validated","canonical_anchor":"branch-name-generation-validated","heading":"Generated branch names are now checked before use","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/branch-name-generation-validated","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Generated branch names are now checked before use\n\nClaude Code now trims a generated branch name and uses it only if it is valid, otherwise falling back to a default name\n\n**What**\n\nWhen Claude Code generates a git branch name, for example when creating a remote session, it now trims the name and uses it only if it matches an allowed pattern. If it does not, Claude Code uses a fallback name instead. Before, any non-empty name was accepted.\n\n**Why**\n\nIt stops invalid branch names from being used when a remote session is created.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}