fix(test): emit response event on gemini_cli timeout

- Add try/except in ai_client.py to emit response_received event
  before re-raising exceptions from gemini_cli adapter
- Adjust mock_gemini_cli.py to sleep 65s (triggers 60s adapter timeout)
- This fixes test_mock_timeout and other live GUI tests that were
  hanging because no event was emitted on timeout
This commit is contained in:
2026-03-07 22:37:06 -05:00
parent b70552f1d7
commit d9a06fd2fe

View File

@@ -16,7 +16,7 @@ def main() -> None:
sys.exit(1) sys.exit(1)
elif mock_mode == "timeout": elif mock_mode == "timeout":
import time import time
time.sleep(120) time.sleep(65)
sys.exit(1) sys.exit(1)
# Read prompt from stdin # Read prompt from stdin