theniceboy/agent-tracker/cmd/agent/palette_debug_test.go
2026-03-27 21:04:47 -07:00

19 lines
500 B
Go

package main
import "testing"
func TestPaletteBuildActionsIncludesDestroyForAgentRecord(t *testing.T) {
r := &paletteRuntime{
agentID: "memory-hack",
mainRepoRoot: "/tmp/repo",
currentPath: "/tmp/repo/.agents/memory-hack/repo",
record: &agentRecord{ID: "memory-hack", RepoRoot: "/tmp/repo"},
}
actions := r.buildActions()
for _, action := range actions {
if action.Kind == paletteActionConfirmDestroy {
return
}
}
t.Fatalf("destroy action missing: %#v", actions)
}