chore: config, layout, project history, simulation framework updates

This commit is contained in:
2026-03-02 10:15:44 -05:00
parent 0b5552fa01
commit eb293f3c96
9 changed files with 93 additions and 67 deletions

View File

@@ -22,9 +22,16 @@ class BaseSimulation:
print(f"\n[BaseSim] Connecting to GUI...")
if not self.client.wait_for_server(timeout=5):
raise RuntimeError("Could not connect to GUI. Ensure it is running with --enable-test-hooks")
self.client.set_value("auto_add_history", True)
# Wait for propagation
_start = time.time()
while time.time() - _start < 5.0:
if self.client.get_value("auto_add_history") is True:
break
time.sleep(0.1)
print("[BaseSim] Resetting session...")
self.client.click("btn_reset")
time.sleep(0.5)
time.sleep(2.0)
git_dir = os.path.abspath(".")
self.project_path = os.path.abspath(f"tests/artifacts/temp_{project_name.lower()}.toml")
if os.path.exists(self.project_path):
@@ -32,10 +39,9 @@ class BaseSimulation:
print(f"[BaseSim] Scaffolding Project: {project_name}")
self.sim.setup_new_project(project_name, git_dir, self.project_path)
# Standard test settings
self.client.set_value("auto_add_history", True)
self.client.set_value("current_provider", "gemini")
self.client.set_value("current_model", "gemini-2.5-flash-lite")
time.sleep(0.2)
time.sleep(1.5)
def teardown(self) -> None:
if self.project_path and os.path.exists(self.project_path):