fix(deacon): use session package for hq- session names (gt-r38pj)

stale_hooks.go was using hardcoded 'gt-deacon' and 'gt-mayor' instead of
session.DeaconSessionName() and session.MayorSessionName() which return
'hq-deacon' and 'hq-mayor'. This caused incorrect session lookups.

Also fixes duplicate WorktreeAddFromRef method from merge conflict.
This commit is contained in:
max
2026-01-06 23:41:50 -08:00
committed by Steve Yegge
parent 0dc0174b26
commit bf16f7894b

View File

@@ -8,6 +8,7 @@ import (
"strings"
"time"
"github.com/steveyegge/gastown/internal/session"
"github.com/steveyegge/gastown/internal/tmux"
)
@@ -155,9 +156,9 @@ func assigneeToSessionName(assignee string) string {
// Simple names like "deacon", "mayor"
switch assignee {
case "deacon":
return "gt-deacon"
return session.DeaconSessionName()
case "mayor":
return "gt-mayor"
return session.MayorSessionName()
default:
return ""
}