finally (still not fully polsihed but not crashing)

This commit is contained in:
2026-03-11 22:44:32 -04:00
parent a471b1e588
commit 00a390ffab
3 changed files with 8 additions and 9 deletions

View File

@@ -458,8 +458,8 @@ Column 0 Width=87
Column 1 Weight=1.0000
[Table][0x9CB1E6FD,2]
RefScale=17
Column 0 Width=200
RefScale=14
Column 0 Width=164
Column 1 Weight=1.0000
[Docking][Data]

View File

@@ -1,5 +1,2 @@
[presets.Default]
system_prompt = ""
temperature = 0.0
top_p = 1.0
max_output_tokens = 32000

View File

@@ -1010,9 +1010,12 @@ class App:
imgui.dummy(imgui.ImVec2(0, 4))
if imgui.button("Save##p", imgui.ImVec2(100, 0)):
if self._editing_preset_name.strip():
p = models.Preset(name=self._editing_preset_name.strip(), system_prompt=self._editing_preset_system_prompt)
self.controller._cb_save_preset(p, self._editing_preset_scope)
self.ai_status = f"Saved: {p.name}"
self.controller._cb_save_preset(
self._editing_preset_name.strip(),
self._editing_preset_system_prompt,
self._editing_preset_scope
)
self.ai_status = f"Saved: {self._editing_preset_name}"
imgui.same_line()
if imgui.button("Delete##p", imgui.ImVec2(100, 0)):
if self._editing_preset_name:
@@ -1456,7 +1459,6 @@ class App:
ch, self.ui_auto_scroll_comms = imgui.checkbox("Auto-scroll Comms History", self.ui_auto_scroll_comms)
ch, self.ui_auto_scroll_tool_calls = imgui.checkbox("Auto-scroll Tool History", self.ui_auto_scroll_tool_calls)
if self.perf_profiling_enabled: self.perf_monitor.end_component("_render_projects_panel")
def _render_track_proposal_modal(self) -> None:
if self._show_track_proposal_modal:
imgui.open_popup("Track Proposal")