From 242ea051ad551f982c45e2ac71cec89d8d5a0137 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 13 May 2026 21:29:04 -0400 Subject: [PATCH] pushing latest gui_2.py, adjustment to regions in app controller. --- src/app_controller.py | 2 +- src/gui_2.py | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/app_controller.py b/src/app_controller.py index 7e87bc1..c4c4f58 100644 --- a/src/app_controller.py +++ b/src/app_controller.py @@ -403,6 +403,7 @@ def _api_token_stats(controller: 'AppController') -> dict[str, Any]: """ return controller._token_stats #endregion + #region: GUI Task Handlers def _handle_ai_response(controller: 'AppController', task: dict): @@ -703,7 +704,6 @@ def _handle_hide_patch_modal(controller: 'AppController', task: dict): controller._pending_patch_files = [] #endregion -#endregion class AppController: """ diff --git a/src/gui_2.py b/src/gui_2.py index 27a023b..b45755e 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -21,7 +21,6 @@ import typing from defer import defer from imgui_bundle import imgui, hello_imgui, immapp, imgui_node_editor as ed, imgui_color_text_edit as ced from pathlib import Path -from pydantic import BaseModel from tkinter import filedialog, Tk from typing import Optional, Any from src.diff_viewer import apply_patch_to_file @@ -40,6 +39,7 @@ from src import session_logger from src import log_registry from src import log_pruner from src import models +from src.models import GenerateRequest, ConfirmRequest from src import mcp_client from src import markdown_helper from src import shaders @@ -62,7 +62,6 @@ def hide_tk_root() -> Tk: root.withdraw() root.wm_attributes("-topmost", True) return root - # Color Helpers def vec4(r: float, g: float, b: float, a: float = 1.0) -> imgui.ImVec4: return imgui.ImVec4(r/255, g/255, b/255, a) @@ -96,17 +95,6 @@ def truncate_entries(entries: list[dict[str, Any]], max_pairs: int) -> list[dict return entries[i:] return entries -class GenerateRequest(BaseModel): - prompt: str - auto_add_history: bool = True - temperature: float | None = None - top_p: float | None = None - max_tokens: int | None = None - -class ConfirmRequest(BaseModel): - approved: bool - script: Optional[str] = None - class App: """The main ImGui interface orchestrator for Manual Slop."""