vet

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1c9cc8b91235e3334f2324112d0178e23e6c985f
parent 9cb60b3dc2661f3ee6ee379bcf8560e198b3e7e9
Author: andrewlaack-collab <andrew.laack@imbue.com>
Date:   Thu, 26 Feb 2026 10:34:28 -0600

Better claude code error handling (#159)

Co-authored-by: Andrew Laack <andrew@laack.co>
Diffstat:
Mvet/issue_identifiers/common.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/vet/issue_identifiers/common.py b/vet/issue_identifiers/common.py @@ -235,6 +235,11 @@ def generate_response_from_agent(prompt: str, options: AgentOptions) -> tuple[st log_exception(e, "Agent API call failed") return None + if result_message and result_message.is_error: + error_detail = result_message.error or result_message.result or "unknown error" + logger.error("Agent CLI returned an error: {error_detail}", error_detail=error_detail) + return None + # Try to get response from result message first response_text = "" if result_message and result_message.result: