Skip to content

Commit 27ad0f5

Browse files
committed
Enhance output handling: update tool result check to handle null and undefined cases
1 parent 68ae37a commit 27ad0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agent/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const useStore = create<AppState & AppActions>((set, get) => ({
265265
config,
266266
);
267267
const output =
268-
result === ""
268+
result === "" || result === null || result === undefined
269269
? "Tool executed successfully and produced no output."
270270
: result;
271271
toolResults.push({

0 commit comments

Comments
 (0)