From 9cf048051053270518d25b54f5767971385c9111 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Mon, 23 Mar 2026 19:46:52 +0100 Subject: [PATCH] feat(03-02): display WaitType in vmux list for sessions awaiting input - Show "Needs Input: permission" or "Needs Input: question" when WaitType set - No WaitType shown for Working state or when WaitType empty - No regression on existing display tests Co-Authored-By: Claude Opus 4.6 (1M context) --- display.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/display.go b/display.go index b512008..0769ba2 100644 --- a/display.go +++ b/display.go @@ -64,7 +64,11 @@ func DisplaySessionInfos(w io.Writer, sessions []SessionInfo, noColor bool, now fmt.Fprintln(w) } - stateStr := stateColorStr(s.State, noColor) + s.State + resetIfColor(noColor) + stateDisplay := s.State + if s.State == "Needs Input" && s.WaitType != "" { + stateDisplay = s.State + ": " + s.WaitType + } + stateStr := stateColorStr(s.State, noColor) + stateDisplay + resetIfColor(noColor) branch := "" if s.GitBranch != "" {