From f537150ff3f67899d27a7f121bc302f61a307c1c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 13 Jun 2026 13:49:21 -0500 Subject: feat(hooks): title sessions host-project with a hyphen, no space The SessionStart hook joined host and project with a space ("ratio rulesets"), which reads as two words in the claude.ai/code and mobile session lists. I changed the join to "$host-$project" ("ratio-rulesets") so the title is one token, and updated the three session-title-hook.bats expectations test-first. --- hooks/session-title.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hooks') diff --git a/hooks/session-title.sh b/hooks/session-title.sh index 8a12f61..87fa4ad 100755 --- a/hooks/session-title.sh +++ b/hooks/session-title.sh @@ -1,6 +1,6 @@ #!/bin/sh -# SessionStart(startup|resume) hook: title the session " " -# (e.g. "ratio rulesets", "velox work") so remote sessions are identifiable +# SessionStart(startup|resume) hook: title the session "-" +# (e.g. "ratio-rulesets", "velox-work") so remote sessions are identifiable # in the claude.ai/code and mobile session lists instead of auto-generated # names. # @@ -38,4 +38,4 @@ fi # uname -n, not hostname: Arch doesn't ship hostname by default (inetutils). host=$(uname -n) -python3 -c 'import json,sys; print(json.dumps({"hookSpecificOutput":{"hookEventName":"SessionStart","sessionTitle":sys.argv[1]}}))' "$host $project" +python3 -c 'import json,sys; print(json.dumps({"hookSpecificOutput":{"hookEventName":"SessionStart","sessionTitle":sys.argv[1]}}))' "$host-$project" -- cgit v1.2.3