docs: Add session debrief about test fixes and MCP tool lesson

This commit is contained in:
2026-03-06 00:24:04 -05:00
parent 0b6db4b56c
commit 3376da7761
30 changed files with 874 additions and 1 deletions

28
add_waits.py Normal file
View File

@@ -0,0 +1,28 @@
with open("tests/test_visual_orchestration.py", "r", encoding="utf-8", newline="") as f:
content = f.read()
# Add a wait and debug after setting provider
content = content.replace(
"""# Setup provider
client.set_value("current_provider", "gemini_cli")
client.set_value(
"gcli_path",
f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"',
)
client.set_value("manual_approve", True)""",
"""# Setup provider
client.set_value("current_provider", "gemini_cli")
time.sleep(0.5) # Wait for provider to be set
client.set_value(
"gcli_path",
f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"',
)
time.sleep(0.5) # Wait for gcli_path to be set
client.set_value("manual_approve", True)
time.sleep(0.5) # Wait for all settings""",
)
with open("tests/test_visual_orchestration.py", "w", encoding="utf-8", newline="") as f:
f.write(content)
print("Added waits to test")