Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(desktop): keep file rows visible in a capped tool list

MakkaPakka12138003691366691
diff --git a/apps/desktop/src/styles/messages.css b/apps/desktop/src/styles/messages.css
index 38cb624e1..399baa3fe 100644
--- a/apps/desktop/src/styles/messages.css
+++ b/apps/desktop/src/styles/messages.css
@@ -2760,6 +2760,7 @@
*/
.tool-file-item {
display: block;
+ flex: none;
width: 100%;
min-width: 0;
overflow: hidden;
diff --git a/apps/desktop/test/transcript-style.test.mjs b/apps/desktop/test/transcript-style.test.mjs
index e29bfbe94..b1c9c12e6 100644
--- a/apps/desktop/test/transcript-style.test.mjs
+++ b/apps/desktop/test/transcript-style.test.mjs
@@ -91,6 +91,11 @@ test("tool block bodies stay bounded and role-coded", () => {
assert.ok(fileItem);
assert.match(fileItem, /display:\s*block;/);
assert.match(fileItem, /width:\s*100%;/);
+ // A column flex list with a height cap shrinks every row whose overflow
+ // is not visible: the automatic minimum size is zero, so a long result is
+ // pressed into a sliver and the paths are clipped away. Rows keep their
+ // content height and the list scrolls instead.
+ assert.match(fileItem, /flex:\s*none;/);
// stderr and error notes carry the error hue, host notices stay neutral.
assert.match(stylesSource, /\.tool-row-content\.is-error \{[\s\S]*?var\(--ds-error\)/);
assert.match(stylesSource, /\.tool-chip\.is-error \{[\s\S]*?var\(--ds-error\)/);