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
+10 -1
View File
@@ -15,6 +15,7 @@ import MessageFeed from './components/fleet/MessageFeed'
import KanbanBoard from './components/fleet/KanbanBoard'
import OwnerPanel from './components/fleet/OwnerPanel'
import OwnerApprovals from './components/fleet/OwnerApprovals'
import AttentionPanel from './components/fleet/AttentionPanel'
import EscalationHistory from './components/fleet/EscalationHistory'
import SandboxFleetView from './components/fleet/SandboxFleetView'
import TaskBrowser from './components/fleet/TaskBrowser'
@@ -34,7 +35,7 @@ export default function Dashboard() {
const [dashboardSession, setDashboardSession] = useState(() => createHydrationSafeDashboardSessionState())
const [isCreateMode, setIsCreateMode] = useState(false)
const [isDestroyMode, setIsDestroyMode] = useState(false)
const [activeView, setActiveView] = useState<'settings' | 'sandboxes' | 'help' | 'wizards' | 'mcp' | 'org' | 'messages' | 'board' | 'owner' | 'escalations' | 'approvals' | 'fleet-sandboxes' | 'tasks' | 'ops'>('org')
const [activeView, setActiveView] = useState<'settings' | 'sandboxes' | 'help' | 'wizards' | 'mcp' | 'org' | 'messages' | 'board' | 'owner' | 'escalations' | 'approvals' | 'attention' | 'fleet-sandboxes' | 'tasks' | 'ops'>('org')
const [telemetryBarEnabled, setTelemetryBarEnabled] = useState(false)
const [deletingSandboxId, setDeletingSandboxId] = useState<string | null>(null)
const [showDeleteConfirm, setShowDeleteConfirm] = useState(false)
@@ -273,6 +274,12 @@ export default function Dashboard() {
setIsDestroyMode(false)
clearSelection()
}}
onFleetAttentionClick={() => {
setActiveView('attention')
setIsCreateMode(false)
setIsDestroyMode(false)
clearSelection()
}}
onFleetEscalationsClick={() => {
setActiveView('escalations')
setIsCreateMode(false)
@@ -326,6 +333,8 @@ export default function Dashboard() {
<TaskBrowser />
) : activeView === 'ops' ? (
<OpsPanels />
) : activeView === 'attention' ? (
<AttentionPanel />
) : activeView === 'approvals' ? (
<OwnerApprovals />
) : activeView === 'escalations' ? (