diff --git a/apps/open-swe/src/graphs/planner/nodes/take-action.ts b/apps/open-swe/src/graphs/planner/nodes/take-action.ts index 42f1f953..767fe268 100644 --- a/apps/open-swe/src/graphs/planner/nodes/take-action.ts +++ b/apps/open-swe/src/graphs/planner/nodes/take-action.ts @@ -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"; diff --git a/apps/open-swe/src/graphs/programmer/nodes/take-action.ts b/apps/open-swe/src/graphs/programmer/nodes/take-action.ts index fc6472b0..6ce641a7 100644 --- a/apps/open-swe/src/graphs/programmer/nodes/take-action.ts +++ b/apps/open-swe/src/graphs/programmer/nodes/take-action.ts @@ -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"; diff --git a/apps/open-swe/src/graphs/reviewer/nodes/take-review-action.ts b/apps/open-swe/src/graphs/reviewer/nodes/take-review-action.ts index cc6629dc..d0bccc49 100644 --- a/apps/open-swe/src/graphs/reviewer/nodes/take-review-action.ts +++ b/apps/open-swe/src/graphs/reviewer/nodes/take-review-action.ts @@ -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";