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 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
a610283078
commit
08bc632a03
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user