From 47c5100ec5ffcb90675dbd7206ce98bfd460ffda Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 14 Mar 2026 09:09:43 -0400 Subject: [PATCH] fix(gui): render thinking trace in both read and edit modes consistently --- manualslop_layout.ini | 2 +- src/gui_2.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manualslop_layout.ini b/manualslop_layout.ini index 42a8f29..614bbca 100644 --- a/manualslop_layout.ini +++ b/manualslop_layout.ini @@ -220,7 +220,7 @@ Size=900,700 Collapsed=0 [Window][Text Viewer - text] -Pos=122,1237 +Pos=1297,550 Size=900,700 Collapsed=0 diff --git a/src/gui_2.py b/src/gui_2.py index 47944a9..7261c7a 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -2277,6 +2277,9 @@ def hello(): if len(entry["content"]) > 60: preview += "..." imgui.text_colored(vec4(160, 160, 150), preview) if not collapsed: + thinking_segments = entry.get("thinking_segments", []) + if thinking_segments: + self._render_thinking_trace(thinking_segments, i) if read_mode: content = entry["content"] pattern = re.compile(r"\[Definition: (.*?) from (.*?) \(line (\d+)\)\](\s+```[\s\S]*?```)?") @@ -2320,9 +2323,6 @@ def hello(): if self.ui_word_wrap: imgui.pop_text_wrap_pos() imgui.end_child() else: - thinking_segments = entry.get("thinking_segments", []) - if thinking_segments: - self._render_thinking_trace(thinking_segments, i) ch, entry["content"] = imgui.input_text_multiline("##content", entry["content"], imgui.ImVec2(-1, 150)) imgui.separator() imgui.pop_id()