ai is trying to cheat out of finishing the tests still

This commit is contained in:
2026-03-07 19:38:15 -05:00
parent b1ab18f8e1
commit 3ba4cac4a4
5 changed files with 38 additions and 32 deletions

View File

@@ -120,6 +120,9 @@ class App:
self._log_registry: Optional[log_registry.LogRegistry] = None
self.perf_profiling_enabled = False
self.perf_show_graphs: dict[str, bool] = {}
self._token_stats: dict[str, Any] = {}
self._token_stats_dirty: bool = True
self.perf_history: dict[str, list] = {"frame_time": [0.0] * 100, "fps": [0.0] * 100}
def _handle_approve_tool(self, user_data=None) -> None:
"""UI-level wrapper for approving a pending tool execution ask."""
@@ -1951,7 +1954,7 @@ class App:
self._push_mma_state_update()
def _cb_kill_ticket(self, ticket_id: str) -> None:
if self.controller and self.controller.engine:
if self.controller and hasattr(self.controller, 'engine') and self.controller.engine:
self.controller.engine.kill_worker(ticket_id)
def _cb_block_ticket(self, ticket_id: str) -> None:
@@ -2296,7 +2299,7 @@ class App:
pass
imgui.same_line()
imgui.text(f"Status: {self.mma_status.upper()}")
if self.controller and self.controller.engine and hasattr(self.controller.engine, '_pause_event'):
if self.controller and hasattr(self.controller, 'engine') and self.controller.engine and hasattr(self.controller.engine, '_pause_event'):
imgui.same_line()
is_paused = self.controller.engine._pause_event.is_set()
label = "Resume" if is_paused else "Pause"