@devries-cameron20 / t3code-1 / commits / 0743ba5524
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(shared): branch names keep accented letters as plain letters (#27274)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>

MarcoDotIO committed Oct 31, 2026 at 22:37 UTC 0743ba5524a5c1873036da2726c1669e6c66ca0b
2 files changed +8
packages/shared/src/git.test.ts
+6
@@ -268,6 +268,12 @@ describe("sanitizeFeatureBranchName", () => {
268 ])("keeps the fallback for unprefixed input %s", (input, expected) => {
269 expect(sanitizeFeatureBranchName(input)).toBe(expected);
270 });
271 +
272 + it("keeps accented letters as their plain letters", () => {
273 + expect(sanitizeFeatureBranchName("fix/Añadir validación del café")).toBe(
274 + "fix/anadir-validacion-del-cafe",
275 + );
276 + });
277 });
278
279 describe("resolveAutoFeatureBranchName", () => {
packages/shared/src/git.ts
+2
@@ -19,6 +19,8 @@ const TEMP_WORKTREE_BRANCH_PATTERN = new RegExp(
19
20 export function sanitizeBranchFragment(raw: string): string {
21 const normalized = raw
22 + .normalize("NFKD")
23 + .replace(/[̀-ͯ]/g, "")
24 .trim()
25 .toLowerCase()
26 .replace(/['"`]/g, "")