Commit ad893a2
authored
fix: detect silent failures in gemini-cli by checking for invalid JSO… (#406)
I have updated the run-gemini-cli action to detect silent failures where
the gemini CLI command produces no output (or invalid JSON) but exits
with success (0). This typically happens when API resource limits are
exceeded in non-interactive mode.
Verification Results
Automated Verification
I created a reproduction script >_reproduce_issue.sh that tested two
scenarios:
1. Success Case: gemini exits with 0, produces valid JSON stdout, and
empty stderr. -> PASSED (Action succeeded)
2. Failure Case: gemini exits with 0, produces empty stdout, and empty
stderr. -> PASSED (Action failed as expected)
This confirms that the action now correctly catches the silent failure
mode without introducing false positives for normal success cases where
stderr is empty.
[Fixes #1088](google-gemini/gemini-cli#1088)1 parent 5927bf8 commit ad893a2
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
331 | 336 | | |
332 | 337 | | |
333 | 338 | | |
| |||
0 commit comments