Skip to content

fix(agent): reject tool-call replies in the LLM connection test - #588

Merged
BaaRai merged 1 commit into
mainfrom
fix/526-conntest-reject-tool-calls
Nov 27, 2026
Merged

BaaRai merged 1 commit into
mainfrom
fix/526-conntest-reject-tool-calls

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Fixes #526.

The connection test now rejects a reply that is a tool call (non-stream message.tool_calls or stream tool_use), a tool_calls/tool_use finish reason, or whitespace-only content. It only reports Connected for a real text reply.

Tests: TestConnectionRejectsToolCallsAndWhitespaceReplies covers an Ollama non-stream tool call with and without text, finish_reason without the array, a streamed tool call with text, and whitespace-only content. With the fix reverted, the tool-call cases are reported as Connected.

@BaaRai
BaaRai merged commit 066b978 into main Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ollama Test Connection returns unexpected tool calls instead of OK — ARTEX v0.7.0

1 participant