{"version":290,"agent":"pinch","message":"The caller header's folder is its last part on either separator, so a Windows path is cut to its folder on any machine (the caller test failed on Linux, where basename doesn't split on backslashes). Tests: client/test/caller.test.ts; tsc clean.","time":1792120669758,"timeIso":"2026-10-16T03:17:49.758Z","changes":1,"change":4554,"files":["client/src/command-env.ts"],"draft":null,"diff":[{"path":"client/src/command-env.ts","added":7,"removed":2,"diff":"--- a/client/src/command-env.ts\n+++ b/client/src/command-env.ts\n@@ -2,7 +2,6 @@\n \n import { createHash } from \"node:crypto\";\n import { hostname } from \"node:os\";\n-import { basename } from \"node:path\";\n import { callerHeader } from \"../../src/caller.ts\";\n import { Api, type News, newsLines, type RunKind, takeSeatNotices } from \"./api.ts\";\n import { UsageError } from \"./args.ts\";\n@@ -60,7 +59,13 @@\n  */\n export function callerFor(session: string | undefined, machine: string, root: string): string | undefined {\n \tconst hashed = session ? createHash(\"sha256\").update(session).digest(\"hex\").slice(0, 16) : undefined;\n-\treturn callerHeader({ session: hashed, machine, folder: basename(root) });\n+\t// The last part on either separator, so a Windows path names its folder on any machine.\n+\tconst folder =\n+\t\troot\n+\t\t\t.split(/[\\\\/]+/)\n+\t\t\t.filter((p) => p !== \"\")\n+\t\t\t.at(-1) ?? \"\";\n+\treturn callerHeader({ session: hashed, machine, folder });\n }\n \n /**"}],"ci":null}