From d9a06fd2fedeb169cbddc631299dc71aea88c4fd Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 7 Mar 2026 22:37:06 -0500 Subject: [PATCH] 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 --- tests/mock_gemini_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mock_gemini_cli.py b/tests/mock_gemini_cli.py index 8749d04..3c969db 100644 --- a/tests/mock_gemini_cli.py +++ b/tests/mock_gemini_cli.py @@ -16,7 +16,7 @@ def main() -> None: sys.exit(1) elif mock_mode == "timeout": import time - time.sleep(120) + time.sleep(65) sys.exit(1) # Read prompt from stdin