From f3b00fe4822c292b68e192f120401ce3b499a115 Mon Sep 17 00:00:00 2001 From: Nillo Date: Thu, 18 Jun 2026 20:35:08 +0200 Subject: [PATCH] fix(tui): scope the act gate panel to the selected control The act:write control panel rendered all preflight rows (read-only scanner gates + write gates), so autonomy.enabled appeared twice and read-only-only gates showed under act:write. Filter by selected control: act:write controls show only write_* gates; the scanner control shows the read-only gates. Only tui.tsx changes (not bundled into the daemon). Focused tui+preflight tests pass (42). Co-Authored-By: Claude Opus 4.8 --- src/cli/tui.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/tui.tsx b/src/cli/tui.tsx index a04de38..061aad3 100644 --- a/src/cli/tui.tsx +++ b/src/cli/tui.tsx @@ -1134,7 +1134,7 @@ function ControlsView({ controls, selectedIndex, width, preflight, lastSkip }: { {preflight && (selected.id === "scanner" || selected.id === "write-enabled" || selected.id === "write-budget") ? ( ACT GATES - {preflight.rows.map((row) => ( + {preflight.rows.filter((row) => selected.id === "scanner" ? !row.gate.startsWith("write_") : row.gate.startsWith("write_")).map((row) => ( {row.ok ? " ✓ " : " ✗ "}