Skip to content

[bug] opencode unhandled tool #263

@dtger

Description

@dtger

When opencode is the harness, the tool calls are showing up as "unhandled tool":

glob (unhandled tool)
grep (unhandled tool)
read (unhandled tool)

This may be due to case mismatch in the way that opencode vs claude code vs other harnesses identify tools, specifically in ToolCallInline.tsx.

  • OpenCode likely sends tool names in lowercase: read, edit, bash, grep, glob, write, etc.
  • Current getToolDisplay() switch statement parses PascalCase: Read, Edit, Bash, Grep, Glob, Write

Impact

This is largely cosmetic for non-interactive tool calls, but may be easy fix with lowcase() (equivalent, sorry not a typescript guy!) tool names before comparison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions