Revert to simple gt-mayor/gt-deacon session names
Reverts the session naming changes from PR #70. Multi-town support on a single machine is not a real use case - rigs provide project isolation, and true isolation should use containers/VMs. Changes: - MayorSessionName() and DeaconSessionName() no longer take townName parameter - ParseSessionName() handles simple gt-mayor and gt-deacon formats - Removed Town field from AgentIdentity and AgentSession structs - Updated all callers and tests Generated with Claude Code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,17 +12,15 @@ import (
|
||||
const Prefix = "gt-"
|
||||
|
||||
// MayorSessionName returns the session name for the Mayor agent.
|
||||
// The townName parameter allows multiple towns to run concurrently
|
||||
// without tmux session name collisions.
|
||||
func MayorSessionName(townName string) string {
|
||||
return fmt.Sprintf("%s%s-mayor", Prefix, townName)
|
||||
// One mayor per machine - multi-town requires containers/VMs for isolation.
|
||||
func MayorSessionName() string {
|
||||
return Prefix + "mayor"
|
||||
}
|
||||
|
||||
// DeaconSessionName returns the session name for the Deacon agent.
|
||||
// The townName parameter allows multiple towns to run concurrently
|
||||
// without tmux session name collisions.
|
||||
func DeaconSessionName(townName string) string {
|
||||
return fmt.Sprintf("%s%s-deacon", Prefix, townName)
|
||||
// One deacon per machine - multi-town requires containers/VMs for isolation.
|
||||
func DeaconSessionName() string {
|
||||
return Prefix + "deacon"
|
||||
}
|
||||
|
||||
// WitnessSessionName returns the session name for a rig's Witness agent.
|
||||
|
||||
Reference in New Issue
Block a user