checkpoint: this is a mess... need to define stricter DSL or system for how the AI devices sims and hookup api for tests.
This commit is contained in:
11
gui_2.py
11
gui_2.py
@@ -991,7 +991,7 @@ class App:
|
||||
def _handle_approve_tool(self) -> None:
|
||||
"""Logic for approving a pending tool execution via API hooks."""
|
||||
print("[DEBUG] _handle_approve_tool called")
|
||||
if self._pending_ask:
|
||||
if self._pending_ask_dialog:
|
||||
self._handle_approve_ask()
|
||||
else:
|
||||
print("[DEBUG] No pending tool approval found")
|
||||
@@ -1000,7 +1000,11 @@ class App:
|
||||
"""Logic for approving a pending sub-agent spawn via API hooks."""
|
||||
print("[DEBUG] _handle_approve_spawn called")
|
||||
if self._pending_mma_spawn:
|
||||
# Synchronize with the handler logic
|
||||
self._handle_mma_respond(approved=True, prompt=self._mma_spawn_prompt, context_md=self._mma_spawn_context)
|
||||
# Crucially, close the modal state so UI can continue
|
||||
self._mma_spawn_open = False
|
||||
self._pending_mma_spawn = None
|
||||
else:
|
||||
print("[DEBUG] No pending spawn approval found")
|
||||
|
||||
@@ -1982,6 +1986,7 @@ class App:
|
||||
threading.Thread(target=_bg_task, daemon=True).start()
|
||||
|
||||
def _cb_accept_tracks(self) -> None:
|
||||
self._show_track_proposal_modal = False
|
||||
def _bg_task():
|
||||
# Generate skeletons once
|
||||
self.ai_status = "Phase 2: Generating skeletons for all tracks..."
|
||||
@@ -2118,6 +2123,10 @@ class App:
|
||||
if self._show_track_proposal_modal:
|
||||
imgui.open_popup("Track Proposal")
|
||||
if imgui.begin_popup_modal("Track Proposal", True, imgui.WindowFlags_.always_auto_resize)[0]:
|
||||
if not self._show_track_proposal_modal:
|
||||
imgui.close_current_popup()
|
||||
imgui.end_popup()
|
||||
return
|
||||
imgui.text_colored(C_IN, "Proposed Implementation Tracks")
|
||||
imgui.separator()
|
||||
if not self.proposed_tracks:
|
||||
|
||||
Reference in New Issue
Block a user