fix: land oxlint config follow-ups (#1064) (thanks @connorshea)

This commit is contained in:
Peter Steinberger
2026-01-17 03:25:05 +00:00
parent 78136c4368
commit 3fcd6fadf3
4 changed files with 6 additions and 4 deletions

View File

@@ -227,7 +227,7 @@ export function createMessageTool(options?: MessageToolOptions): AnyAgentTool {
}
}
if (result.toolResult) return result.toolResult;
if ("toolResult" in result && result.toolResult) return result.toolResult;
return jsonResult(result.payload);
},
};