chore(fix): Resolve regressions in history logic, track startup, and GUI performance

This commit is contained in:
2026-05-11 20:03:01 -04:00
parent 2ba427f827
commit 26ef81a30e
7 changed files with 133 additions and 82 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ def test_view_mode_default_summary(tmp_path):
test_file = base_dir / "test.py"
test_file.write_text("def hello():\n print('world')\n", encoding="utf-8")
# Test with simple string path
files = ["test.py"]
# Test with explicit summary mode
files = [{"path": "test.py", "view_mode": "summary"}]
items = aggregate.build_file_items(base_dir, files)
assert len(items) == 1
+4
View File
@@ -35,6 +35,10 @@ def test_mma_concurrent_tracks_execution(live_gui) -> None:
client = api_hook_client.ApiHookClient()
assert client.wait_for_server(timeout=15), "Hook server did not start"
# 0. Reset session to clear any stale state
client.click('btn_reset')
time.sleep(1.0)
# 1. Setup provider to custom mock
mock_path = os.path.abspath("tests/mock_concurrent_mma.py")
client.set_value('current_provider', 'gemini_cli')
@@ -31,6 +31,10 @@ def test_mma_concurrent_tracks_stress(live_gui) -> None:
client = api_hook_client.ApiHookClient()
assert client.wait_for_server(timeout=15), "Hook server did not start"
# 0. Reset session to clear any stale state
client.click('btn_reset')
time.sleep(1.0)
# 1. Setup mock provider
client.set_value('current_provider', 'gemini_cli')
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_concurrent_mma.py")}"')