// frontend/components/TasksPanel.jsx // // Right-sidebar Tasks panel — Claude Code-style trace of every AI // invocation in the active session. Trigger is a small ⊞ icon next // to the context meter; clicking it opens a popover anchored to the // composer rail. // // V1 contract (simplest cut): // - One task per top-level user action (Plan, Execute). // - Lazy fetch on open + manual ↻ refresh. Zero idle traffic. // - No cost row. Token counts shown only when the provider exposes // them; otherwise "—". // // GitPilot brand orange #D95C3D is used only for the running-state // dot — completed is slate, failed is the existing red. No new deps; // inline styles + scoped {open && (