fix(boot): Rename session gt-deacon-boot → gt-boot to fix prefix collision
The tmux session name "gt-deacon-boot" was causing HasSession("gt-deacon")
to return true due to tmux prefix matching behavior. This made the daemon
think the Deacon was running when only Boot was active, and caused commands
targeting "gt-deacon" to be sent to Boot session instead.
The fix renames Boot session from "gt-deacon-boot" to "gt-boot", which
has no prefix overlap with "gt-deacon".
Fixes: gt-sgzsb
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -171,7 +171,7 @@ task nature matters.
|
|||||||
~/gt/deacon/dogs/boot/
|
~/gt/deacon/dogs/boot/
|
||||||
```
|
```
|
||||||
|
|
||||||
Session name: `gt-deacon-boot`
|
Session name: `gt-boot`
|
||||||
|
|
||||||
Created/maintained by `bd doctor`.
|
Created/maintained by `bd doctor`.
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// SessionName is the tmux session name for Boot.
|
// SessionName is the tmux session name for Boot.
|
||||||
const SessionName = "gt-deacon-boot"
|
// Note: We use "gt-boot" instead of "gt-deacon-boot" to avoid tmux prefix
|
||||||
|
// matching collisions. Tmux matches session names by prefix, so "gt-deacon-boot"
|
||||||
|
// would match when checking for "gt-deacon", causing HasSession("gt-deacon")
|
||||||
|
// to return true when only Boot is running.
|
||||||
|
const SessionName = "gt-boot"
|
||||||
|
|
||||||
// MarkerFileName is the file that indicates Boot is currently running.
|
// MarkerFileName is the file that indicates Boot is currently running.
|
||||||
const MarkerFileName = ".boot-running"
|
const MarkerFileName = ".boot-running"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Boot lifecycle:
|
|||||||
4. Boot exits (or handoffs in non-degraded mode)
|
4. Boot exits (or handoffs in non-degraded mode)
|
||||||
|
|
||||||
Location: ~/gt/deacon/dogs/boot/
|
Location: ~/gt/deacon/dogs/boot/
|
||||||
Session: gt-deacon-boot`,
|
Session: gt-boot`,
|
||||||
}
|
}
|
||||||
|
|
||||||
var bootStatusCmd = &cobra.Command{
|
var bootStatusCmd = &cobra.Command{
|
||||||
|
|||||||
Reference in New Issue
Block a user