feat(thinking): Phase 4 complete - tinted bg, Monologue header, gold text

This commit is contained in:
2026-03-13 22:09:09 -04:00
parent 0b33cbe023
commit 71269ceb97

View File

@@ -322,22 +322,24 @@ class App:
def _render_thinking_trace(self, segments: list[dict], entry_index: int) -> None:
if not segments:
return
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"Thinking ({len(segments)} traces)", header_id):
if imgui.collapsing_header(f"Monologue ({len(segments)} traces)", header_id):
imgui.begin_child(f"thinking_content_{entry_index}", imgui.ImVec2(0, 80), True)
for idx, seg in enumerate(segments):
content = seg.get("content", "")
marker = seg.get("marker", "thinking")
imgui.push_id(f"think_{entry_index}_{idx}")
imgui.text_colored(vec4(180, 180, 100), f"[{marker}]")
imgui.text_colored(vec4(180, 150, 80), f"[{marker}]")
imgui.same_line()
imgui.textWrapped(content)
imgui.text_colored(vec4(200, 200, 150), content)
imgui.pop_id()
imgui.separator()
imgui.end_child()
imgui.unindent()
imgui.pop_style_color(2)
def _render_selectable_label(self, label: str, value: str, width: float = 0.0, multiline: bool = False, height: float = 0.0, color: Optional[imgui.ImVec4] = None) -> None:
pops = 4
imgui.push_style_color(imgui.Col_.frame_bg, vec4(0, 0, 0, 0))