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:
@@ -8,6 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/steveyegge/gastown/internal/session"
|
||||||
"github.com/steveyegge/gastown/internal/tmux"
|
"github.com/steveyegge/gastown/internal/tmux"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -155,9 +156,9 @@ func assigneeToSessionName(assignee string) string {
|
|||||||
// Simple names like "deacon", "mayor"
|
// Simple names like "deacon", "mayor"
|
||||||
switch assignee {
|
switch assignee {
|
||||||
case "deacon":
|
case "deacon":
|
||||||
return "gt-deacon"
|
return session.DeaconSessionName()
|
||||||
case "mayor":
|
case "mayor":
|
||||||
return "gt-mayor"
|
return session.MayorSessionName()
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user