From 07662dc9b7413ebb82e7b1c27e7696181b6dbd3a Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 9 Aug 2026 21:20:27 +0200 Subject: [PATCH] Add debug logging to startTmuxSession for Windows troubleshooting --- cmd/kctl-tui/full.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/kctl-tui/full.go b/cmd/kctl-tui/full.go index 746ce3a..6e853aa 100644 --- a/cmd/kctl-tui/full.go +++ b/cmd/kctl-tui/full.go @@ -281,7 +281,10 @@ func (m *fullModel) startTmuxSession() tea.Cmd { k9sCmdA := fmt.Sprintf("k9s --context %s -n %s", ctxA, m.selectedNamespace) // Kill stale session first (ignore error if none exists). - exec.Command("tmux", "kill-session", "-t", "kctl").Run() + killErr := exec.Command("tmux", "kill-session", "-t", "kctl").Run() + fmt.Fprintf(os.Stderr, "[debug] selfPath=%s\n", selfPath) + fmt.Fprintf(os.Stderr, "[debug] panelCmd=%s\n", panelCmd) + fmt.Fprintf(os.Stderr, "[debug] kill-session err=%v\n", killErr) args := []string{ "new-session", "-d", "-s", "kctl", @@ -303,6 +306,7 @@ func (m *fullModel) startTmuxSession() tea.Cmd { "attach", "-t", "kctl", ) + fmt.Fprintf(os.Stderr, "[debug] tmux args: %v\n", args) c := exec.Command("tmux", args...) return tea.ExecProcess(c, func(err error) tea.Msg {