-
Notifications
You must be signed in to change notification settings - Fork 13k
Robust Error Handling #6745
Copy link
Copy link
Labels
area/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalitypriority/p1Important and should be addressed in the near term.Important and should be addressed in the near term.
Metadata
Metadata
Assignees
Labels
area/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalitypriority/p1Important and should be addressed in the near term.Important and should be addressed in the near term.
Type
Fields
Give feedbackNo fields configured for Feature.
Projects
Status
Closed
Problem
Currently, Gemini CLI exits with code 0 for most scenarios, including some failure conditions like hitting
maxSessionTurns. This makes it difficult for downstream consumers (like GitHub Actions and other automations) to programmatically distinguish between different types of failures and handle them appropriately. Learn more in google-github-actions/run-gemini-cli#217.Solution
Implement standardized error messages or exit codes that allow consumers to programmatically handle different failure scenarios, for example:
@leehagoodjames @sethvargo as discussed in google-github-actions/run-gemini-cli#206 (comment)
cc @jacob314 @bdmorgan