@devries-cameron20 / t3code Mirror · read-only / commits / 48bb784e3d
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 02:00 UTC

fix(shared): inline code like `allocator.cc:217` becomes a file chip (#32403)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Felix Laga committed Nov 7, 2026 at 19:42 UTC 48bb784e3d239be6ed2a581cbd9d052d0b07c4d7
2 files changed +3 -1
packages/shared/src/markdownLinks.test.ts
+1
@@ -24,6 +24,7 @@ describe("inlineCodeFilePathCandidate", () => {
24 // regression: #13909 model ids in inline code do not become file chips
25 it.each([
26 ["src\\main.ts", "src/main.ts"],
27 + ["allocator.cc:217", "allocator.cc:217"],
28 ["origin/main", null],
29 ["z-ai/glm-5.3", null],
30 ["share/man/ls.1", "share/man/ls.1"],
packages/shared/src/markdownLinks.ts
+2 -1
@@ -116,7 +116,6 @@ const GENERIC_HOSTNAME_TLDS = new Set([
116 "xyz",
117 "me",
118 "tv",
119 - "cc",
119 "gg",
120 "chat",
121 "cloud",
@@ -159,6 +158,8 @@ const COUNTRY_HOSTNAME_TLDS = new Set([
158 "tr",
159 "sg",
160 "hk",
161 + // C++ sources end in `.cc`, so `allocator.cc:217` names a file, not a host and port.
162 + "cc",
163 ]);
164
165 function looksLikeHostname(segment: string, hasPosition: boolean): boolean {