← back to Ticket System
run-ticket: close finished ticket window via /cs + /compact on done (TK-11608)
94b9bb86d044fb13d2cab447da8f974832bdab02 · 2026-09-14 00:21:28 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015AN6vj1mN5iCkDr9a8qqvY
Files touched
Diff
commit 94b9bb86d044fb13d2cab447da8f974832bdab02
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon Sep 14 00:21:28 2026 -0700
run-ticket: close finished ticket window via /cs + /compact on done (TK-11608)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015AN6vj1mN5iCkDr9a8qqvY
---
run-ticket.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/run-ticket.sh b/run-ticket.sh
index 6c5475da..d1097e8e 100755
--- a/run-ticket.sh
+++ b/run-ticket.sh
@@ -57,7 +57,7 @@ esac
# via `tk show`. Encodes Steve's standing operating loop (tickets-first, copious
# notes, gated actions draft to pending-approval).
read -r -d '' PROMPT <<PROMPT_EOF || true
-export TK_AGENT=${AGENT_PREFIX}-${IDNUM}. You are driving ticket ${ID} to completion. First run: tk inbox (act on any DMs), then tk show ${ID} for full context. You now OWN this ticket: tk take ${ID}. Work it to done per AGENTS.md/CLAUDE.md's operating loop — tk log EVERY action, tk comment reasoning, dm peers with tk dm if you need help. Any customer-facing / destructive / spend / DNS / publish / send-to-list / remote-push / canonical dw_unified or Shopify write is GATED: draft it to ~/.claude/yolo-queue/pending-approval/ and STOP — never auto-fire. When the work is genuinely complete AND verified: tk done ${ID}.
+export TK_AGENT=${AGENT_PREFIX}-${IDNUM}. You are driving ticket ${ID} to completion. First run: tk inbox (act on any DMs), then tk show ${ID} for full context. You now OWN this ticket: tk take ${ID}. Work it to done per AGENTS.md/CLAUDE.md's operating loop — tk log EVERY action, tk comment reasoning, dm peers with tk dm if you need help. Any customer-facing / destructive / spend / DNS / publish / send-to-list / remote-push / canonical dw_unified or Shopify write is GATED: draft it to ~/.claude/yolo-queue/pending-approval/ and STOP — never auto-fire. When the work is genuinely complete AND verified: tk done ${ID}, then IMMEDIATELY run /cs followed by /compact to archive and CLOSE this window — do NOT leave it open idle (Steve, TK-11608 2026-09-14: "a new ticket opening a new terminal must also close the finished one").
PROMPT_EOF
# Build the inner shell payload, then escape for an AppleScript double-quoted literal
← 0616e22b beacon: pin to Steve's screen 1 by display ID (LG ULTRAWIDE,
·
back to Ticket System
·
TK-11660: claim-at-enqueue guard on /api/run to stop double- a05b5c11 →