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): give agent chats a wider column and no scrollbar beside the words

rubenluetke10-beep45dc0c8b9294
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css
index c0c7f98257..507ef6da43 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css
+++ b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.css
@@ -3,7 +3,7 @@
tool jumped to the middle until it joined the completed fold. */
[data-testid="work-trace"][data-conversation] {
width: 100%;
- max-width: 36rem;
+ max-width: 44rem;
margin-left: 0 !important;
margin-right: auto;
align-self: flex-start;
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx
index b4fe248222..3cb96c26db 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx
@@ -690,13 +690,13 @@ function WorkTraceBody({ blocks: rawBlocks, status, startedMs, durationMs, error
: main;
if (visibleError) items.push(errorItem(visibleError, "trace:error"));
items.push(statusItem);
- return <div className={cn("min-w-0", conversation && "w-full max-w-xl self-start", className)} data-testid="work-trace" data-look="rail" data-state={status} {...(conversation ? { "data-conversation": "" } : {})}>
+ return <div className={cn("min-w-0", conversation && "w-full max-w-[44rem] self-start", className)} data-testid="work-trace" data-look="rail" data-state={status} {...(conversation ? { "data-conversation": "" } : {})}>
<Rail items={items} />
</div>;
}
const classicGroups = (list: Group[]) => <>{traceGroupItems({ groups: list, ...groupProps }).map(item => <Fragment key={item.key}>{item.node}</Fragment>)}</>;
- return <div className={cn("min-w-0 space-y-0.5", conversation && "w-full max-w-xl self-start", className)} data-testid="work-trace" data-state={status} {...(conversation ? { "data-conversation": "" } : {})}>
+ return <div className={cn("min-w-0 space-y-0.5", conversation && "w-full max-w-[44rem] self-start", className)} data-testid="work-trace" data-state={status} {...(conversation ? { "data-conversation": "" } : {})}>
{fold ? <ConversationWorkFold durationMs={durationMs} blocks={fold.workAll} attention={fold.approvals.map(block =>
<div key={block.callId} className="w-full py-1 text-xs [&_button]:text-xs">
<TraceTool block={block} status={status} onDecide={onDecide} />
diff --git a/jarvis/ui/web/frontend/src/components/home/HomeAgentChat.tsx b/jarvis/ui/web/frontend/src/components/home/HomeAgentChat.tsx
index ec3becec29..c06a04a20f 100644
--- a/jarvis/ui/web/frontend/src/components/home/HomeAgentChat.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/HomeAgentChat.tsx
@@ -56,7 +56,9 @@ export default function HomeAgentChat({ agentId }: { agentId: string }) {
{fill(t("home.back_to_assistant"), { name: assistantName })}
</button>
</header>
- <div className="mx-auto flex min-h-0 w-full max-w-[820px] flex-1 flex-col">
+ {/* Full width: the panel centres its own reading column, so its
+ scroll area — not a narrow box around it — meets the window edge. */}
+ <div className="flex min-h-0 w-full flex-1 flex-col">
<AgentChatPanel key={agent.agentId} agent={agent} roster={agents} />
</div>
</div>
diff --git a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx
index 5468cfffb1..5f9e1222a6 100644
--- a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx
@@ -85,7 +85,12 @@ const STAMP_GAP_MS = 30 * 60_000;
* Messages use the full conversation lane; each bubble limits its own prose
* width. The composer follows the lane so replies read left to right.
*/
-const CHAT_MEASURE = "mx-auto w-full min-w-0";
+/**
+ * The conversation's reading column. The scroller around it spans the whole
+ * pane, so a wide window keeps the words in one comfortable, centred column
+ * while the scroll area (and its edge) reaches the window's side.
+ */
+const CHAT_MEASURE = "mx-auto w-full min-w-0 max-w-[52rem]";
/** The line appended to a message that names an agent; Jarvis delegates on it. */
const DELEGATE_MARK = "[to jarvis]";
@@ -673,7 +678,7 @@ export function Transcript({
let lastStamp = 0;
return (
<div className="relative flex min-h-0 flex-1 flex-col">
- <div ref={rootRef} className="min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-6" data-testid="society-transcript">
+ <div ref={rootRef} className="chat-scroller min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-6" data-testid="society-transcript">
<div ref={contentRef} className={cn(CHAT_MEASURE, "flex flex-col gap-3")}>
{items.map((item) => {
const ts = item.type === "turn" ? item.startedMs : item.tsMs;
diff --git a/jarvis/ui/web/frontend/src/components/society/chat/ChatActivity.test.tsx b/jarvis/ui/web/frontend/src/components/society/chat/ChatActivity.test.tsx
index 24d8659168..51c3475098 100644
--- a/jarvis/ui/web/frontend/src/components/society/chat/ChatActivity.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/chat/ChatActivity.test.tsx
@@ -52,7 +52,7 @@ it("keeps live and interrupted conversation tools in the left lane", () => {
const { container, rerender } = render(<WorkTrace conversation status="running" startedMs={0} durationMs={null} blocks={[thought, live]} />);
const lane = screen.getByTestId("work-trace");
expect(lane.hasAttribute("data-conversation")).toBe(true);
- expect(lane.className).toMatch(/max-w-xl/);
+ expect(lane.className).toMatch(/max-w-\[44rem\]/);
expect(lane.className).toMatch(/self-start/);
expect(container.querySelectorAll(".mx-auto")).toHaveLength(0);
expect(container.querySelector("[data-trace-tool]")?.closest("[data-testid='work-trace']")).toBe(lane);
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index 4b96ecac42..e7cf7a4b0e 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -467,6 +467,18 @@ label,
height: 0;
}
+/* A chat transcript scrolls like a messenger's: no bar beside the words.
+ The jump-to-latest button stands in for the bar's "you are not at the end".
+ Top-level so the class survives Tailwind's purge like the rules above. */
+.chat-scroller {
+ scrollbar-width: none;
+}
+
+.chat-scroller::-webkit-scrollbar {
+ width: 0;
+ height: 0;
+}
+
/* The icon rail (the deck's dock and the collapsed sidebar) scrolls when the
window is shorter than its column of icons, but shows no bar: a 10 px thumb
inside a 64 px rail would sit on the icons themselves. Top-level for the