Tower: View 'Wartet auf mich' — strukturierte Attention-Fragen

Der Rueckstau war bisher eine Zahl ('94 offene Tasks'). Diese View zeigt nur
Tasks mit attention-Block, also die, bei denen ein Agent ohne eine
Mensch-Entscheidung nicht weiterkommt.

- /api/fleet/attention: GET ruft attention_summary, POST ruft answer_attention.
- AttentionPanel: Frage, Optionen als Buttons, Freitextfeld, Rueckmeldung
  (OK / OK_ALREADY / OK_JOURNAL_ONLY), Poll 10 s, fail loud.
- Sidebar-View 'attention' + Verdrahtung in page.tsx.

Die Antwort geht ueber board-service answer_attention: Frage wird am Task
geschlossen (answered_at) und der Agent bekommt einen fyi-Reply-Task mit
reply_to. Kein Chat, kein Bauauftrag.
This commit is contained in:
Dominik Schön
2026-11-02 08:35:28 +00:00
parent e5261401fe
commit 13533cdb4f
4 changed files with 282 additions and 2 deletions
+16 -1
View File
@@ -14,7 +14,7 @@ type ControllerNodeRecord = {
interface SidebarProps {
sandboxesRunning: number
sandboxesTotal: number
activeView: 'settings' | 'sandboxes' | 'help' | 'wizards' | 'mcp' | 'org' | 'messages' | 'board' | 'owner' | 'escalations' | 'approvals' | 'fleet-sandboxes' | 'tasks' | 'ops'
activeView: 'settings' | 'sandboxes' | 'help' | 'wizards' | 'mcp' | 'org' | 'messages' | 'board' | 'owner' | 'escalations' | 'approvals' | 'attention' | 'fleet-sandboxes' | 'tasks' | 'ops'
isCreateMode: boolean
isDestroyMode: boolean
onSandboxesClick: () => void
@@ -30,6 +30,8 @@ interface SidebarProps {
onFleetBoardClick: () => void
onFleetOwnerClick: () => void
onFleetApprovalsClick: () => void
onFleetAttentionClick: () => void
onFleetEscalationsClick: () => void
onFleetSandboxesClick: () => void
onFleetTasksClick: () => void
@@ -60,6 +62,7 @@ export default function Sidebar({
onFleetBoardClick,
onFleetOwnerClick,
onFleetApprovalsClick,
onFleetAttentionClick,
onFleetEscalationsClick,
onFleetSandboxesClick,
onFleetTasksClick,
@@ -318,6 +321,18 @@ export default function Sidebar({
<span className="text-sm max-lg:text-[11px]">Owner</span>
</button>
<button
onClick={onFleetAttentionClick}
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'attention', true)}`}
aria-current={activeView === 'attention' ? 'page' : undefined}
data-testid="fleet-nav-attention"
>
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M12 8v5m0 3v.5M4 4h16v12H8l-4 4V4z" />
</svg>
<span className="text-sm max-lg:text-[11px]">Wartet auf mich</span>
</button>
<button
onClick={onFleetApprovalsClick}
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'approvals', true)}`}