feat: runtime-aware tmux agent checks

This commit is contained in:
jv
2026-01-07 12:56:00 +13:00
committed by Steve Yegge
parent 02ca9e43fa
commit 22693c1dcc
9 changed files with 117 additions and 46 deletions

View File

@@ -1165,6 +1165,22 @@ func TestGetRuntimeCommand_UsesRigAgentWhenRigPathProvided(t *testing.T) {
}
}
func TestExpectedPaneCommands(t *testing.T) {
t.Run("claude maps to node", func(t *testing.T) {
got := ExpectedPaneCommands(&RuntimeConfig{Command: "claude"})
if len(got) != 1 || got[0] != "node" {
t.Fatalf("ExpectedPaneCommands(claude) = %v, want %v", got, []string{"node"})
}
})
t.Run("codex maps to executable", func(t *testing.T) {
got := ExpectedPaneCommands(&RuntimeConfig{Command: "codex"})
if len(got) != 1 || got[0] != "codex" {
t.Fatalf("ExpectedPaneCommands(codex) = %v, want %v", got, []string{"codex"})
}
})
}
func TestLoadRuntimeConfigFromSettings(t *testing.T) {
// Create temp rig with custom runtime config
dir := t.TempDir()