fix(cli): remove supervise tmux alert handling
test / unit (pull_request) Successful in 40s
test / integration (pull_request) Successful in 55s

This commit is contained in:
2026-06-03 17:34:41 +00:00
parent 15b54cdff2
commit a593b157d6
2 changed files with 4 additions and 23 deletions
-17
View File
@@ -354,27 +354,12 @@ def _try_init_green() -> int:
return 0
def _in_tmux() -> bool:
return bool(os.environ.get("TMUX"))
def _select_tmux_pane(pane_id: str) -> None:
try:
subprocess.run(
["tmux", "select-pane", "-t", pane_id],
capture_output=True, text=True, check=False,
)
except FileNotFoundError:
pass
def _main_loop(stdscr: "curses._CursesWindow") -> None:
curses.curs_set(0)
stdscr.timeout(_REFRESH_INTERVAL_MS)
green_attr = _try_init_green()
selected = 0
status_line = ""
supervise_pane_id = os.environ.get("TMUX_PANE", "")
seen_ids: set[str] = set()
while True:
@@ -389,8 +374,6 @@ def _main_loop(stdscr: "curses._CursesWindow") -> None:
curses.beep()
except curses.error:
pass
if supervise_pane_id and _in_tmux():
_select_tmux_pane(supervise_pane_id)
for i, qp in enumerate(pending):
if qp.proposal.id in newly_arrived:
selected = i
@@ -1,5 +1,5 @@
- **Status:** Active
- **Status:** Draft
- **Author:** didericis
- **Created:** 2026-06-03
- **Issue:** #174
@@ -204,11 +204,9 @@ ripgrep
view, same as today.
- `q` / Esc quits. There are no dashboard-owned bottles, so no
per-process teardown decision — `q` just exits.
- The new-arrival bell + (if in tmux) the
`tmux select-pane` jump back to the supervise pane stay,
because they're real wins for the operator's "I was typing at
claude and a proposal landed" case. They don't require any of
the pane-management code being removed.
- The new-arrival bell stays, because it is a real win for the
operator's "I was typing at claude and a proposal landed" case.
No tmux-specific focus management remains.
### Code organisation