Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: cap CoS agent progress bar at 99% for active runs
Adam Eivy326605049508
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex d83ae31d13..eae17b4dd2 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -42,6 +42,8 @@## Fixed+- **CoS agent progress bar — active runs cap at 99%, not 100%.** The P80-based progress meter on `AgentCard` clamped at 100% via `Math.min(100, …)`, so any agent that reached its expected run time visually flipped to "100% complete" while still actively running — confusing the user into thinking the task had finished. Capped the calculation at 99% instead so only completion can land on 100%, and switched the overtime color trigger from `progress >= 100` (now unreachable) to the existing `remainingTime?.isOvertime` flag so the bar still flips to yellow once the duration exceeds the P80 estimate. The "+Xs over estimate" badge already handled the textual overtime indicator. Touched: `client/src/components/cos/tabs/AgentCard.jsx`.+- **Digital Twin — page now constrains to viewport instead of growing the whole document.** Every Digital Twin tab whose content exceeded one screen (Identity, Overview, Goals, Documents, Enrich, etc.) used to push the layout `<main>` past viewport height, which forced the vertical scrollbar onto the body and shaved ~8px off `<main>`'s width — visible as an "odd right margin" on mobile and as a body-level scrollbar on desktop. Root cause: `<main>` was `flex-1 overflow-hidden` but its `flex-1` couldn't actually constrain because the parent column had no `min-h-0` and Digital Twin's wrapper used `h-full` (which resolves to `auto` when its parent height is indefinite, so the wrapper grew with content and dragged `<main>` up the chain). Two-line fix: (1) `Layout.jsx` adds `min-h-0` to the main element and `relative` for full-width routes, (2) `DigitalTwin.jsx` switches its outer wrapper from `flex flex-col h-full` to `absolute inset-0 flex flex-col` so it always fills `<main>` exactly. The inner `flex-1 overflow-auto p-4` content container now scrolls internally as designed; body width matches viewport on every tab. Touched: `client/src/components/Layout.jsx`, `client/src/pages/DigitalTwin.jsx`.- **Mobile header — duplicate notification bell removed.** The mobile header showed a bell + unread count that, when tapped, popped a dropdown overlay over page content. The same `NotificationDropdown` is already mounted in the sidebar drawer footer, so the header instance was redundant; removing it eliminates the unwanted overlay and reclaims header space when the nav is closed. Notifications remain accessible by opening the nav drawer. Touched: `client/src/components/Layout.jsx`.diff --git a/client/src/components/cos/tabs/AgentCard.jsx b/client/src/components/cos/tabs/AgentCard.jsxindex fd364747ec..4892077ad3 100644--- a/client/src/components/cos/tabs/AgentCard.jsx+++ b/client/src/components/cos/tabs/AgentCard.jsx@@ -257,9 +257,10 @@ export default function AgentCard({ agent, onKill, onDelete, onResume, completed}, [completed, durations, agent.metadata?.taskDescription]);// Calculate progress percentage using P80-based estimate+ // Cap at 99% for active tasks — only completion can land on 100%const progress = useMemo(() => {if (!durationEstimate) return null;- const percent = Math.min(100, Math.round((duration / durationEstimate.estimatedMs) * 100));+ const percent = Math.min(99, Math.round((duration / durationEstimate.estimatedMs) * 100));return percent;}, [duration, durationEstimate]);@@ -631,9 +632,9 @@ export default function AgentCard({ agent, onKill, onDelete, onResume, completed<div className="h-1.5 bg-port-border rounded-full overflow-hidden"><divclassName={`h-full transition-all duration-1000 ease-linear ${- progress >= 100 ? 'bg-yellow-500' : 'bg-port-accent'+ remainingTime?.isOvertime ? 'bg-yellow-500' : 'bg-port-accent'}`}- style={{ width: `${Math.min(progress, 100)}%` }}+ style={{ width: `${Math.min(progress, 99)}%` }}/></div><div className="flex justify-between mt-1.5 text-xs">