fix(gui): fix incompatible collapsing_header argument when rendering thinking trace
This commit is contained in:
@@ -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_.text, vec4(200, 200, 150))
|
||||
imgui.indent()
|
||||
header_id = f"thinking_header_{entry_index}"
|
||||
if imgui.collapsing_header(f"Monologue ({len(segments)} traces)", header_id):
|
||||
header_label = f"Monologue ({len(segments)} traces)###thinking_header_{entry_index}"
|
||||
if imgui.collapsing_header(header_label):
|
||||
imgui.begin_child(f"thinking_content_{entry_index}", imgui.ImVec2(0, 80), True)
|
||||
for idx, seg in enumerate(segments):
|
||||
content = seg.get("content", "")
|
||||
|
||||
Reference in New Issue
Block a user