From 4ceb1dfd86be6537b78c032d3c2f90db04aa3228 Mon Sep 17 00:00:00 2001 From: garrytan Date: Fri, 2 Oct 2026 23:41:48 +0000 Subject: [PATCH] fix(router): route telemetry uses the echoed SESSION_ID (s01 H1) $_SESSION_ID is never set in the router's bash block since bin/gstack-skill-start took over session bookkeeping, so every /gstack route event logged an empty session id. Use the literal SESSION_ID placeholder and tell the model to substitute the echoed value, matching the completion-status telemetry block. No W7a pins on the changed line. --- SKILL.md.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SKILL.md.tmpl b/SKILL.md.tmpl index 5dad48a33..16b0b3428 100644 --- a/SKILL.md.tmpl +++ b/SKILL.md.tmpl @@ -40,9 +40,10 @@ This is the gstack router. Its one job is to send the request to the right skill Best-effort, record which way you routed (never block on it). Set `ROUTE_OUTCOME` to `browse` (sent to /browse), `routed` (sent to another skill), or `direct` (answered -directly, no skill matched): +directly, no skill matched), and replace `SESSION_ID` with the value the skill-start +output echoed: ```bash -~/.claude/skills/gstack/bin/gstack-telemetry-log --event-type route --skill gstack --outcome ROUTE_OUTCOME --session-id "$_SESSION_ID" 2>/dev/null || true +~/.claude/skills/gstack/bin/gstack-telemetry-log --event-type route --skill gstack --outcome ROUTE_OUTCOME --session-id "SESSION_ID" 2>/dev/null || true ``` If `PROACTIVE` is `false`: do NOT proactively invoke or suggest other gstack skills during