Skip to content

Agent shows raw JSON tool calls in chat instead of formatted commands #64

@tbitcs

Description

@tbitcs

Problem

When the agent invokes tools, the chat sometimes shows raw JSON tool call blocks instead of formatted tool execution display.

Common with Ollama local models that emit tool calls inline as text.

Fix

In runner.py: detect tool call patterns in LLM text responses and parse/execute them.
In SessionPanel.ts: client-side filter to strip tool call blocks from displayed text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions