Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(chat): align trace durations and tighten the rail around its nodes

rubenluetke10-beepcacadb7184b7
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css
index 417d0d3b0f..c0c7f98257 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css
+++ b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css
@@ -42,10 +42,10 @@
}
.trace-rail > .trace-step::before {
top: 0;
- height: 6px;
+ height: 7px;
}
.trace-rail > .trace-step::after {
- top: 26px;
+ top: 25px;
bottom: 0;
}
.trace-rail > .trace-step:first-child::before,
@@ -104,7 +104,8 @@
mask-image: linear-gradient(to bottom, transparent 0, black 2.5rem);
}
-/* The opened conversation fold lines its thread up under the pill's mark. */
+/* The opened conversation fold, and the approvals shown beside it while it
+ is closed, line their thread up under the pill's mark. */
.trace-fold-open {
padding-left: 5px;
}
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx
index bd89ca48fa..b4fe248222 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx
@@ -233,7 +233,7 @@ function Disclosure({ label, children, forced = false, initiallyOpen = false, ic
onClick={() => setChoice({ phase, open: !open })}>
<Node live={live}>{icon}</Node>
<span className="min-w-0 flex-1 [overflow-wrap:anywhere]">{label}</span>
- {trailing ? <span className="shrink-0 text-xs tabular-nums text-muted-foreground">{trailing}</span> : null}
+ {trailing ? <span className="shrink-0 text-xs leading-6 tabular-nums text-muted-foreground">{trailing}</span> : null}
{children && !forced ? <ChevronRight aria-hidden className={cn("mt-[5px] h-3.5 w-3.5 shrink-0 opacity-40 transition group-hover/trace:opacity-90", open && "rotate-90")} /> : null}
</button>
{summary}
@@ -684,7 +684,7 @@ function WorkTraceBody({ blocks: rawBlocks, status, startedMs, durationMs, error
const rest = restGroups ? traceGroupItems({ groups: restGroups, ...groupProps }) : [];
const items: RailItem[] = fold
? [{ key: "trace:fold", rail: false, node: <ConversationWorkFold durationMs={durationMs} blocks={fold.workAll}
- attention={<Rail items={fold.approvals.map(block => ({ key: block.callId, rail: !block.question, node: <TraceTool block={block} status={status} onDecide={onDecide} /> }))} />}>
+ attention={<div className="trace-fold-open"><Rail items={fold.approvals.map(block => ({ key: block.callId, rail: !block.question, node: <TraceTool block={block} status={status} onDecide={onDecide} /> }))} /></div>}>
<Rail items={[...main, ...(foldedError ? [errorItem(foldedError, "trace:folded-error")] : [])]} />
</ConversationWorkFold> }, ...rest]
: main;