Skip to content

Commit e40207d

Browse files
abhizipstackclaude
andcommitted
fix(run-history): collapse error rows by default
Failed runs were auto-expanded whenever the data loaded, which made error panels land in the user's face every visit. Reset expandedRowKeys on data change so rows start collapsed; users click the expander to see the stack trace. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 40d3eb0 commit e40207d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

frontend/src/ide/run-history/Runhistory.jsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,9 @@ const Runhistory = () => {
192192
backUpData,
193193
]);
194194

195-
/* ─── auto-expand failed rows ─── */
195+
/* ─── collapse all rows when the underlying data changes ─── */
196196
useEffect(() => {
197-
const failedIds = (JobHistoryData || [])
198-
.filter((r) => r.status === "FAILURE" && r.error_message)
199-
.map((r) => r.id);
200-
setExpandedRowKeys(failedIds);
197+
setExpandedRowKeys([]);
201198
}, [JobHistoryData]);
202199

203200
/* ─── handlers ─── */

0 commit comments

Comments
 (0)