From 4ba568d32a27e1c544cdbad78991b73df5964235 Mon Sep 17 00:00:00 2001 From: Mick Date: Sat, 21 Mar 2026 13:15:56 -0400 Subject: [PATCH] fix: Details Panel - Call Stack collapsed by default (#69) Default all child nodes in the Call Stack tab to collapsed state when rebuilding the stack, so users see a compact view and expand as needed. Co-Authored-By: Claude Opus 4.6 --- src/ui/detail_panel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/detail_panel.cpp b/src/ui/detail_panel.cpp index 1b1d16f..b86d588 100644 --- a/src/ui/detail_panel.cpp +++ b/src/ui/detail_panel.cpp @@ -433,6 +433,8 @@ void DetailPanel::render(const TraceModel& model, ViewState& view) { } } } + // Default all children with sub-children to collapsed + stack_collapsed_ = stack_has_children_; } int stack_count = (int)cached_call_stack_.size() + (int)cached_stack_children_.size(); bool has_stack = (ev.depth > 0 || !cached_stack_children_.empty());