fix: Better message when tool call returned empty string (#537)

* fix: Better message when tool call returned empty string

* cr
This commit is contained in:
Brace Sproul 2025-07-25 17:58:26 -07:00 • committed by GitHub
parent ff5af2b93b
commit e024341ddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View file

@ -128,7 +128,10 @@ export async function takeActions(
}
if (!result) {
result = toolCallStatus;
result =
toolCallStatus === "success"
? "Tool call returned no result"
: "Tool call failed";
}
} catch (e) {
toolCallStatus = "error";

View file

@ -124,7 +124,10 @@ export async function takeAction(
}
if (!result) {
result = toolCallStatus;
result =
toolCallStatus === "success"
? "Tool call returned no result"
: "Tool call failed";
}
} catch (e) {
toolCallStatus = "error";

View file

@ -110,7 +110,10 @@ export async function takeReviewerActions(
toolCallStatus = toolResult.status;
if (!result) {
result = toolCallStatus;
result =
toolCallStatus === "success"
? "Tool call returned no result"
: "Tool call failed";
}
} catch (e) {
toolCallStatus = "error";