GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — "tools" entry sent to model without tools capability · Issue #61843 · anomalyco/opencode

"tools" entry sent to model without tools capability #61843

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
"tools" entry sent to model without tools capability#61843
Copy link
Labels
pending closetriaging

Description

@TomKr42
TomKr42
opened on Nov 4, 2026
Issue body actions

Description

Version: 2.2.5

Description:

I have a reasoning model without tools capability running on a local ollama server. Even if "tools": false is explicitly stated in the opencode.jsonc config opencode still sends a request to the model api with a "tools" field specified, resulting in an error response. The opencode cli states the error and nothing happens. But Ollama is spinning up the model nevertheless, the result just never reaches opencode.

In opencode.jsonc

provider.models:

"olmo-3.1:32b-think": {
    "name": "Olmo 3.1 32B Think",
    "capabilities": {
        "tools": false,
        "input": ["text"],
        "output": ["text"],
    }
}

agents.test:

"test": {
    "permissions": [
        { "action": "*", "resource": "*", "effect": "deny" },
    ]
}

Test Agent:

---
description: Test agent
mode: primary
model: ollama/olmo-3.1:32b-think
permission:
  "*": deny
---
You are a test agent just respond with OK

Request sent to Ollama server:

{
  "model": "olmo-3.1:32b-think",
  "messages": [
    {
      "role": "system",
      "content": "You are a test agent just respond with OK\n# Your Model\n- Name: Olmo 3.1 32B Think\n- Provider ID: ollama\n- Model ID: olmo-3.1:32b-think\nToday's date: Thu Nov 05 2026\n\nHere is some useful information about the environment you are running in:\n<env>\n  Working directory: /home/user/foo\n  Workspace root folder: /home/user\n  Is directory a git repo: no\n  Platform: linux\n  Prefer /tmp/opencode over generic system temporary directories such as /tmp; it is pre-created and approved for external access.\n</env>\nWhen you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."
    },
    {
      "role": "user",
      "content": "Say Hi"
    }
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "skill",
        "description": "Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.\n\nThe skill ID must match an available skill or a skill explicitly referenced by the user.",
        "parameters": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "The ID of an available skill or a skill explicitly referenced by the user"
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        "strict": false
      }
    }
  ],
  "stream": true,
  "stream_options": {
    "include_usage": true
  },
  "max_completion_tokens": 32000
}

Response from ollama:

{
  "error": {
    "message": "registry.ollama.ai/library/olmo-3.1:32b-think does not support tools",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

Context:

I've made an update to v.2.2.5 jumping a weeks worth of versions. Unfortunately I dont know exactly on which version I was on before, but there it worked fine.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot

No response

Operating System

No response

Terminal

No response

Activity

  1. opencodejr commented on Nov 4, 2026

    @opencodejr
    opencodejrBot
    on Nov 4, 2026
    Contributor
    More actions

    Thanks for the detailed report and the request/response captures. I think this is a duplicate of #35432: "capabilities": { "tools": false } is read into the model config, but nothing checks it when the request is built, so the tool definitions are still sent and providers that don't support tools (Ollama here) reject the request.

    Possible duplicates and related issues, ordered by likelihood:

    • Config tool_call: false does not disable tools #35432: the same bug. Tools are still sent when a model is marked as unable to use them. It has been reproduced on v2.2.0 and the current dev branch with capabilities.tools: false.
    • fix(core): skip tool-less models in default model fallback #54139: a related PR. It stops sessions without a configured model from falling back to a model that can't use tools. It doesn't change what gets sent to a model you choose yourself.
    • refactor(ai): move endpoint support flags to model capabilities #61492: a related PR that reworks model capability flags in the AI package.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. If you can find the earlier version where this worked for you, please add it to #35432, since that would help narrow things down.

  2. opencodejr
    added
    pending close
    triaging
    on Nov 4, 2026
  3. opencodejr
    closed this as duplicateon Nov 5, 2026
  4. opencodejr commented on Nov 5, 2026

    @opencodejr
    opencodejrBot
    on Nov 5, 2026
    Contributor
    More actions

    We haven't heard back, so I'm closing this as a duplicate of #35432. In both reports, tool definitions are still sent when a model is configured with "capabilities": { "tools": false }, and the provider (Ollama here) rejects the request. Please follow #35432 for updates. If you can find the earlier version where this still worked for you, adding it there would help. If your problem turns out to be different, reply here and we can reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending closetriaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.