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) <noreply@anthropic.com>
This commit is contained in:
Pierre Martin
2026-03-23 19:46:52 +01:00
parent e60524961a
commit 9cf0480510

View File

@@ -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 != "" {