fix(cli): remove supervise tmux alert handling
This commit is contained in:
@@ -354,27 +354,12 @@ def _try_init_green() -> int:
|
|||||||
return 0
|
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:
|
def _main_loop(stdscr: "curses._CursesWindow") -> None:
|
||||||
curses.curs_set(0)
|
curses.curs_set(0)
|
||||||
stdscr.timeout(_REFRESH_INTERVAL_MS)
|
stdscr.timeout(_REFRESH_INTERVAL_MS)
|
||||||
green_attr = _try_init_green()
|
green_attr = _try_init_green()
|
||||||
selected = 0
|
selected = 0
|
||||||
status_line = ""
|
status_line = ""
|
||||||
supervise_pane_id = os.environ.get("TMUX_PANE", "")
|
|
||||||
seen_ids: set[str] = set()
|
seen_ids: set[str] = set()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@@ -389,8 +374,6 @@ def _main_loop(stdscr: "curses._CursesWindow") -> None:
|
|||||||
curses.beep()
|
curses.beep()
|
||||||
except curses.error:
|
except curses.error:
|
||||||
pass
|
pass
|
||||||
if supervise_pane_id and _in_tmux():
|
|
||||||
_select_tmux_pane(supervise_pane_id)
|
|
||||||
for i, qp in enumerate(pending):
|
for i, qp in enumerate(pending):
|
||||||
if qp.proposal.id in newly_arrived:
|
if qp.proposal.id in newly_arrived:
|
||||||
selected = i
|
selected = i
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
- **Status:** Active
|
- **Status:** Draft
|
||||||
- **Author:** didericis
|
- **Author:** didericis
|
||||||
- **Created:** 2026-06-03
|
- **Created:** 2026-06-03
|
||||||
- **Issue:** #174
|
- **Issue:** #174
|
||||||
@@ -204,11 +204,9 @@ ripgrep
|
|||||||
view, same as today.
|
view, same as today.
|
||||||
- `q` / Esc quits. There are no dashboard-owned bottles, so no
|
- `q` / Esc quits. There are no dashboard-owned bottles, so no
|
||||||
per-process teardown decision — `q` just exits.
|
per-process teardown decision — `q` just exits.
|
||||||
- The new-arrival bell + (if in tmux) the
|
- The new-arrival bell stays, because it is a real win for the
|
||||||
`tmux select-pane` jump back to the supervise pane stay,
|
operator's "I was typing at claude and a proposal landed" case.
|
||||||
because they're real wins for the operator's "I was typing at
|
No tmux-specific focus management remains.
|
||||||
claude and a proposal landed" case. They don't require any of
|
|
||||||
the pane-management code being removed.
|
|
||||||
|
|
||||||
### Code organisation
|
### Code organisation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user