This commit is contained in:
2026-05-07 13:42:31 -04:00
parent 40f0c04a91
commit 7d12806ce6
5 changed files with 521 additions and 30 deletions
+13 -13
View File
@@ -1099,19 +1099,19 @@ class App:
imgui.close_current_popup()
imgui.end_popup()
# MMA Step Approval Modal
if self._pending_mma_approval:
if self._pending_mma_approvals:
if not self._mma_approval_open:
imgui.open_popup("MMA Step Approval")
self._mma_approval_open = True
self._mma_approval_edit_mode = False
self._mma_approval_payload = self._pending_mma_approval.get("payload", "")
self._mma_approval_payload = self._pending_mma_approvals[0].get("payload", "")
else:
self._mma_approval_open = False
if imgui.begin_popup_modal("MMA Step Approval", None, imgui.WindowFlags_.always_auto_resize)[0]:
if not self._pending_mma_approval:
if not self._pending_mma_approvals:
imgui.close_current_popup()
else:
ticket_id = self._pending_mma_approval.get("ticket_id", "??")
ticket_id = self._pending_mma_approvals[0].get("ticket_id", "??")
imgui.text(f"Ticket {ticket_id} is waiting for tool execution approval.")
imgui.separator()
if self._mma_approval_edit_mode:
@@ -1120,7 +1120,7 @@ class App:
else:
imgui.text("Proposed Tool Call:")
imgui.begin_child("mma_preview", imgui.ImVec2(600, 300), True)
imgui.text_unformatted(str(self._pending_mma_approval.get("payload", "")))
imgui.text_unformatted(str(self._pending_mma_approvals[0].get("payload", "")))
imgui.end_child()
imgui.separator()
if imgui.button("Approve", imgui.ImVec2(120, 0)):
@@ -1135,21 +1135,21 @@ class App:
imgui.close_current_popup()
imgui.end_popup()
# MMA Spawn Approval Modal
if self._pending_mma_spawn:
if self._pending_mma_spawns:
if not self._mma_spawn_open:
imgui.open_popup("MMA Spawn Approval")
self._mma_spawn_open = True
self._mma_spawn_edit_mode = False
self._mma_spawn_prompt = self._pending_mma_spawn.get("prompt", "")
self._mma_spawn_context = self._pending_mma_spawn.get("context_md", "")
self._mma_spawn_prompt = self._pending_mma_spawns[0].get("prompt", "")
self._mma_spawn_context = self._pending_mma_spawns[0].get("context_md", "")
else:
self._mma_spawn_open = False
if imgui.begin_popup_modal("MMA Spawn Approval", None, imgui.WindowFlags_.always_auto_resize)[0]:
if not self._pending_mma_spawn:
if not self._pending_mma_spawns:
imgui.close_current_popup()
else:
role = self._pending_mma_spawn.get("role", "??")
ticket_id = self._pending_mma_spawn.get("ticket_id", "??")
role = self._pending_mma_spawns[0].get("role", "??")
ticket_id = self._pending_mma_spawns[0].get("ticket_id", "??")
imgui.text(f"Spawning {role} for Ticket {ticket_id}")
imgui.separator()
if self._mma_spawn_edit_mode:
@@ -4264,8 +4264,8 @@ def hello():
imgui.text_colored(C_VAL, f"| Active: {self.active_tier}")
# Approval pending indicator
any_pending = (
self._pending_mma_spawn is not None or
self._pending_mma_approval is not None or
len(self._pending_mma_spawns) > 0 or
len(self._pending_mma_approvals) > 0 or
self._pending_ask_dialog
)
if any_pending: