From 08bc632a0323a423c982e79fe3659b5433aa329c Mon Sep 17 00:00:00 2001 From: gastown/crew/max Date: Tue, 20 Jan 2026 12:54:52 -0800 Subject: [PATCH] fix(session): add instructions for attach topic in startup nudge When a human attaches to mayor via gt mayor and the runtime has exited, it restarts with Topic: attach. But FormatStartupNudge did not include instructions for this topic, causing Claude to act generically instead of checking hook/mail. Add attach to the list of topics that get explicit instructions. Co-Authored-By: Claude Opus 4.5 --- internal/session/startup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/session/startup.go b/internal/session/startup.go index 0dfd4724..be89c438 100644 --- a/internal/session/startup.go +++ b/internal/session/startup.go @@ -65,9 +65,9 @@ func FormatStartupNudge(cfg StartupNudgeConfig) string { beacon := fmt.Sprintf("[GAS TOWN] %s <- %s • %s • %s", cfg.Recipient, cfg.Sender, timestamp, topic) - // For handoff and cold-start, add explicit instructions so the agent knows what to do - // even if hooks haven't loaded CLAUDE.md yet - if cfg.Topic == "handoff" || cfg.Topic == "cold-start" { + // For handoff, cold-start, and attach, add explicit instructions so the agent knows + // what to do even if hooks haven't loaded CLAUDE.md yet + if cfg.Topic == "handoff" || cfg.Topic == "cold-start" || cfg.Topic == "attach" { beacon += "\n\nCheck your hook and mail, then act on the hook if present:\n" + "1. `gt hook` - shows hooked work (if any)\n" + "2. `gt mail inbox` - check for messages\n" +