fix(gui): fix incompatible collapsing_header argument when rendering thinking trace

This commit is contained in:
2026-03-14 09:21:44 -04:00
parent 3d0c40de45
commit b85b7d9700

View File

@@ -327,8 +327,8 @@ class App:
imgui.push_style_color(imgui.Col_.child_bg, vec4(40, 35, 25, 180)) imgui.push_style_color(imgui.Col_.child_bg, vec4(40, 35, 25, 180))
imgui.push_style_color(imgui.Col_.text, vec4(200, 200, 150)) imgui.push_style_color(imgui.Col_.text, vec4(200, 200, 150))
imgui.indent() imgui.indent()
header_id = f"thinking_header_{entry_index}" header_label = f"Monologue ({len(segments)} traces)###thinking_header_{entry_index}"
if imgui.collapsing_header(f"Monologue ({len(segments)} traces)", header_id): if imgui.collapsing_header(header_label):
imgui.begin_child(f"thinking_content_{entry_index}", imgui.ImVec2(0, 80), True) imgui.begin_child(f"thinking_content_{entry_index}", imgui.ImVec2(0, 80), True)
for idx, seg in enumerate(segments): for idx, seg in enumerate(segments):
content = seg.get("content", "") content = seg.get("content", "")