The best way to control Claude Code, Codex and more from any computer or phone
fix(web): many automations no longer hide the thread details Automations section (#28585)
Igor Makowski committed
Nov 1, 2026 at 22:56 UTC
46e90bad0d7abc19adb250b4acf53ebdc82c2820
3 files changed
+26
-7
apps/web/src/components/chat/ThreadAutomationsPanel.tsx
+1
-1
@@ -155,7 +155,7 @@ export function ThreadAutomationsPanel(props: {
155
</Tooltip>
156
}
157
>
158
- <ul className="m-0 list-none p-0">
158
+ <ul className="m-0 max-h-[13.5rem] list-none overflow-y-auto p-0">
159
{boundTasks.map((task) => (
160
<li
161
key={task.id}
apps/web/src/components/chat/ThreadDetailsCard.browser.test.tsx
+22
-3
@@ -43,12 +43,15 @@ function Card({
43
inline,
44
fixture,
45
rows = 1,
46
+ automationRows = 0,
47
}: {
48
threadRef: ScopedThreadRef;
49
inline: boolean;
50
fixture: ReturnType<typeof setup>;
51
/** Rows of 100px shown at full density. Compact always takes 50px. */
52
rows?: number;
53
+ /** Rows of 100px in an automations list shown at full density. */
54
+ automationRows?: number;
55
}) {
56
return (
57
// The web root renders in StrictMode, which re-runs ref callbacks on every mount.
@@ -73,9 +76,14 @@ function Card({
76
contentKey={String(rows)}
77
>
78
{(density) => (
76
- <p style={{ height: density === "full" ? rows * 100 : 50 }}>
77
- Details for {threadRef.threadId}
78
- </p>
79
+ <>
80
+ <p style={{ height: density === "full" ? rows * 100 : 50 }}>
81
+ Details for {threadRef.threadId}
82
+ </p>
83
+ {density === "full" && automationRows > 0 ? (
84
+ <section data-thread-automations-panel style={{ height: automationRows * 100 }} />
85
+ ) : null}
86
+ </>
87
)}
88
</ThreadDetailsCard>
89
</ChatCanvasContext>
@@ -158,3 +166,14 @@ it("returns to full density when hidden items make the content fit", async () =>
166
await screen.rerender(<Card threadRef={threadB} inline fixture={fixture} rows={2} />);
167
await expect.element(card).toHaveAttribute("data-density", "full");
168
});
169
+
170
+it("keeps full density when many automations make the content tall", async () => {
171
+ using fixture = setup();
172
+ await using _screen = await render(
173
+ <Card threadRef={threadB} inline fixture={fixture} rows={2} automationRows={6} />,
174
+ );
175
+ await expect.element(page.getByText("Details for thread-b")).toBeVisible();
176
+ await expect
177
+ .element(page.getByRole("region", { name: "Thread details" }))
178
+ .toHaveAttribute("data-density", "full");
179
+});
apps/web/src/components/chat/ThreadDetailsCard.tsx
+3
-3
@@ -78,10 +78,10 @@ export function ThreadDetailsCard({
78
const measure = () => {
79
const frame = element.closest<HTMLElement>("[data-thread-details-card]");
80
const next = element.offsetHeight + (frame ? frame.offsetHeight - frame.clientHeight : 0);
81
- // PR lists, lineage and side chats scroll as they expand. Counting them toward density
82
- // would hide the section and workspace controls when the user asks to see more rows.
81
+ // PR lists, lineage, side chats and automations scroll as they grow. Counting them toward
82
+ // density would hide the section and workspace controls when the user asks to see more rows.
83
const lists = element.querySelectorAll<HTMLElement>(
84
- "[data-thread-relationships-panel], [data-thread-side-chats-panel], [data-thread-details-pr-list]",
84
+ "[data-thread-relationships-panel], [data-thread-side-chats-panel], [data-thread-details-pr-list], [data-thread-automations-panel]",
85
);
86
const fittingHeight =
87
next - Array.from(lists).reduce((sum, list) => sum + list.offsetHeight, 0);