{"version":282,"agent":"pinch","message":"The caller header carries a short hash of the chat's session and only the folder's last part\n\nX-Abso-Caller sent the raw CLAUDE_CODE_SESSION_ID and the full folder path, which names the person (C:\\Users\\<name>\\...). The client now sends the first 16 hex digits of the session id's SHA-256 and the folder's last part. The server already showed only \"<folder> on <machine>\", and the same chat hashes the same way, so seat notices still tell chats apart. Neither the raw id nor the path leaves the machine.\n\nTests: client caller (6 pass); tsc clean.","time":1792115821082,"timeIso":"2026-10-16T01:57:01.082Z","changes":3,"change":4458,"files":["client/src/command-env.ts","client/test/caller.test.ts","src/caller.ts"],"draft":null,"diff":[{"path":"client/src/command-env.ts","added":12,"removed":1,"diff":"--- a/client/src/command-env.ts\n+++ b/client/src/command-env.ts\n@@ -1,6 +1,8 @@\n // What every abso command shares: its output, its environment, the folder it opens, and the news it took.\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@@ -48,11 +50,20 @@\n \t\t);\n \tconst config = readConfig(root, env.env, env.tokenFile === true);\n \tconst api = new Api(config);\n-\tapi.caller = callerHeader({ session: env.env.CLAUDE_CODE_SESSION_ID, machine: hostname(), folder: root });\n+\tapi.caller = callerFor(env.env.CLAUDE_CODE_SESSION_ID, hostname(), root);\n \treturn { root, config, api };\n }\n \n /**\n+ * The caller header for this chat, computer and folder. The chat's session id goes as a short SHA-256 of it and the\n+ * folder as its last part, so neither the raw id nor the path (which names the person) leaves the machine.\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+}\n+\n+/**\n  * News a command took from the server while recording first. main() prints it\n  * after whatever the command says, so every command that takes news shows it\n  * (#37, News Report: sync, run and diff took it, wrote it to .avcs/news.log and"},{"path":"client/test/caller.test.ts","added":14,"removed":0,"diff":"--- a/client/test/caller.test.ts\n+++ b/client/test/caller.test.ts\n@@ -3,9 +3,23 @@\n import { test } from \"node:test\";\n import { CALLER_HEADER, CALLER_MAX, callerHeader, callerPlace, parseCaller } from \"../../src/caller.ts\";\n import { Api } from \"../src/api.ts\";\n+import { callerFor } from \"../src/command-env.ts\";\n \n const session = \"0da5c2b7-ab07-4249-b868-e8f09b6ec7b6\";\n \n+test(\"the client sends a hash of the session and only the folder's last part\", () => {\n+\tconst header = callerFor(session, \"DESKTOP-1\", \"C:\\\\Users\\\\sam\\\\repos\\\\abso\\\\groups\")!;\n+\tconst caller = parseCaller(header)!;\n+\tassert.equal(caller.folder, \"groups\");\n+\tassert.match(caller.session!, /^[0-9a-f]{16}$/);\n+\tassert.notEqual(caller.session, session);\n+\tassert.doesNotMatch(Buffer.from(header, \"base64url\").toString(), /sam|0da5c2b7/);\n+\t// The same chat hashes the same way, so the server still tells one chat from another.\n+\tassert.equal(parseCaller(callerFor(session, \"DESKTOP-1\", \"/x/groups\"))!.session, caller.session);\n+\tassert.equal(parseCaller(callerFor(undefined, \"box\", \"/work/über\"))!.session, undefined);\n+\tassert.equal(callerPlace(caller), \"groups on DESKTOP-1\");\n+});\n+\n test(\"a caller goes out and comes back as it was\", () => {\n \tconst header = callerHeader({ session, machine: \"DESKTOP-1\", folder: \"C:\\\\Users\\\\sam\\\\repos\\\\abso\\\\groups\" })!;\n \tassert.match(header, /^[A-Za-z0-9_-]+$/);"},{"path":"src/caller.ts","added":2,"removed":1,"diff":"--- a/src/caller.ts\n+++ b/src/caller.ts\n@@ -7,9 +7,10 @@\n export const CALLER_MAX = 512;\n \n export interface Caller {\n-\t/** The chat's session id, when abso runs in one (Claude Code's CLAUDE_CODE_SESSION_ID, or the mod's own). */\n+\t/** The chat's session, when abso runs in one: the client sends a short SHA-256 of the id, never the id itself. */\n \treadonly session?: string;\n \treadonly machine: string;\n+\t/** The folder's last part: the client sends no more of its path. */\n \treadonly folder: string;\n }\n "}],"ci":null}