fix(gui2): Correct Response panel rendering and fix automation crashes

This commit is contained in:
2026-02-24 21:56:26 -05:00
parent fb9ee27b38
commit 14984c5233
12 changed files with 103 additions and 64 deletions

View File

@@ -15,7 +15,7 @@ def test_api_client_has_extensions():
def test_select_tab_integration(live_gui):
client = ApiHookClient()
# We'll need to make sure the tags exist in gui.py
# We'll need to make sure the tags exist in gui_legacy.py
# For now, this is a placeholder for the integration test
response = client.select_tab("operations_tabs", "tab_tool")
assert response == {'status': 'queued'}
@@ -34,18 +34,18 @@ def test_get_indicator_state_integration(live_gui):
assert response['tag'] == "thinking_indicator"
def test_app_processes_new_actions():
import gui
import gui_legacy
from unittest.mock import MagicMock, patch
import dearpygui.dearpygui as dpg
dpg.create_context()
try:
with patch('gui.load_config', return_value={}), \
patch('gui.PerformanceMonitor'), \
patch('gui.shell_runner'), \
patch('gui.project_manager'), \
patch.object(gui.App, '_load_active_project'):
app = gui.App()
with patch('gui_legacy.load_config', return_value={}), \
patch('gui_legacy.PerformanceMonitor'), \
patch('gui_legacy.shell_runner'), \
patch('gui_legacy.project_manager'), \
patch.object(gui_legacy.App, '_load_active_project'):
app = gui_legacy.App()
with patch('dearpygui.dearpygui.set_value') as mock_set_value, \
patch('dearpygui.dearpygui.does_item_exist', return_value=True), \