@devries-cameron20 / t3code-1 / commits / e4d86abca9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): remote Lineage rows keep their title when the environment name is long (#33181)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

F4llen committed Nov 10, 2026 at 03:32 UTC e4d86abca9c0d0ddd8107ea557f2e0c879632cf3
2 files changed +23 -12
apps/web/src/components/chat/ThreadRelationshipsControl.browser.test.tsx
+16 -8
@@ -5,6 +5,8 @@ import { AsyncResult } from "effect/reactivity";
5 import { expect, it, vi } from "vite-plus/test";
6 import { page, userEvent } from "vite-plus/test/browser";
7
8 +import "~/index.css";
9 +
10 const state = vi.hoisted(() => ({
11 projection: null as unknown,
12 commandSucceeds: false,
@@ -295,18 +297,20 @@ it("shows a remote subagent's full title in its tooltip even when its environmen
297 remoteChild: {
298 environmentId: remoteEnvId,
299 threadId: remoteThreadId,
298 - label: "Remote VM",
300 + label: "Remote VM with a long machine name in the office",
301 },
302 },
303 ],
304 };
305 await using screen = await render(
304 - <ThreadRelationshipsPanel
305 - environmentId={environmentId}
306 - threadId={threadId}
307 - showLineage
308 - showSideChats={false}
309 - />,
306 + <div style={{ width: 320 }}>
307 + <ThreadRelationshipsPanel
308 + environmentId={environmentId}
309 + threadId={threadId}
310 + showLineage
311 + showSideChats={false}
312 + />
313 + </div>,
314 { router: "/environment/fork" },
315 );
316
@@ -316,12 +320,16 @@ it("shows a remote subagent's full title in its tooltip even when its environmen
320 .not.toBeInTheDocument();
321 await screen.getByRole("button", { name: /Previous agents/ }).click();
322 const row = screen.getByRole("button", { name: new RegExp(longTitle) });
323 + // A long environment label must not squeeze the title out of the row.
324 + expect(
325 + page.getByText(longTitle, { exact: true }).element().getBoundingClientRect().width,
326 + ).toBeGreaterThan(0);
327 await userEvent.hover(row);
328 await vi.waitFor(() =>
329 expect(document.querySelector('[data-slot="tooltip-popup"]')?.textContent).toContain(longTitle),
330 );
331 expect(document.querySelector('[data-slot="tooltip-popup"]')?.textContent).toContain(
324 - "Runs on Remote VM. Connect to it to open the thread there.",
332 + "Runs on Remote VM with a long machine name in the office. Connect to it to open the thread there.",
333 );
334
335 await row.click({ force: true });
apps/web/src/components/chat/ThreadRelationshipsControl.tsx
+7 -4
@@ -309,9 +309,10 @@ function RemoteSubagentRow(props: {
309 </span>
310 </span>
311 <span
312 - className={`shrink-0 text-2xs ${failed ? "text-destructive" : "text-muted-foreground"}`}
312 + className={`flex max-w-1/2 shrink-0 gap-1 text-2xs ${failed ? "text-destructive" : "text-muted-foreground"}`}
313 >
314 - on {remoteChild.label} · {threadRelationshipStatusLabel(status)}
314 + <span className="truncate">on {remoteChild.label}</span>
315 + <span className="shrink-0">· {threadRelationshipStatusLabel(status)}</span>
316 </span>
317 </TooltipTrigger>
318 <TooltipPopup side="left">
@@ -373,7 +374,9 @@ function DelegatedFromRow(props: {
374 </span>
375 </span>
376 {label ? (
376 - <span className="shrink-0 text-2xs text-muted-foreground">on {label}</span>
377 + <span className="max-w-1/2 shrink-0 truncate text-2xs text-muted-foreground">
378 + on {label}
379 + </span>
380 ) : null}
381 </TooltipTrigger>
382 <TooltipPopup side="left">
@@ -382,7 +385,7 @@ function DelegatedFromRow(props: {
385 hint={
386 environment === null
387 ? `Delegated from ${label ?? "a linked environment"}. Connect to it to open the parent thread.`
385 - : "Open parent agent"
388 + : `Open parent agent on ${environment.label}`
389 }
390 />
391 </TooltipPopup>