Skip to content

Invalild tool + execution aborted #11612

@yoobi

Description

@yoobi

Description

I am using auggie ACP with opencode because auggie is not yet in the provider list (I already made a request for that #10216).
Overall it is working correctly but recently I got this issue after a prompt. Not sure how to qualify it

⚙ invalid [tool=acp.acp_provider_agent_dynamic_tool, error=Model tried to call unavailable tool 'acp.acp_provider_agent_dynamic_tool'. Available tools: invalid, read, glob, grep, task, webfetch, todowrite, todoread, skill.]
⚙ invalid [tool=acp.acp_provider_agent_dynamic_tool, error=Model tried to call unavailable tool 'acp.acp_provider_agent_dynamic_tool'. Available tools: invalid, read, glob, grep, task, webfetch, todowrite, todoread, skill.]
Tool execution aborted
[
  {
    "code": "invalid_union",
    "errors": [
      [
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "state",
            "title"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "expected": "record",
          "code": "invalid_type",
          "path": [
            "state",
            "metadata"
          ],
          "message": "Invalid input: expected record, received undefined"
        }
      ],
      [
        {
          "expected": "object",
          "code": "invalid_type",
          "path": [
            "part"
          ],
          "message": "Invalid input: expected object, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "delta"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ],
      [
        {
          "expected": "object",
          "code": "invalid_type",
          "path": [
            "part"
          ],
          "message": "Invalid input: expected object, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "delta"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ]
    ],
    "path": [],
    "message": "Invalid input"
  }
] 

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

  1. Add auggie as acp (maybe it'll do the same with other acp)
  2. I have an agent such as (not sure if it is because of the agent or not)
---
description: Autonomous coordinator - analyzes tasks, delegates to specialists, synthesizes results
mode: primary
tools:
  write: false
  edit: false
  read: true
  bash: false
---
.....
  1. Make a prompt sometimes the stacktrace aboves appears

Screenshot and/or share link

No response

Operating System

macOS 26.1

Terminal

Warp

Metadata

Metadata

Assignees

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