Skip to content

llama.cpp regression in bash tool schema #28502

@royolsen

Description

@royolsen

Description

Starting in v1.14.50 (2026-05-14), OpenCode's bash tool sends a timeout parameter schema with "minimum": -9007199254740991 (JS Number.MIN_SAFE_INTEGER).
llama.cpp-based OpenAI-compatible servers reject this when building a tool-call grammar, breaking the first turn of any conversation.

Workaround: Use OpenCode v1.14.48

Plugins

No response

OpenCode version

1.15.5

Steps to reproduce

  1. Send any prompt to a llama.cpp based backend, apparently.
  2. Receive error: Unable to generate parser for this template. Automatic parser generation failed [json.exception.type_error.302] type must be number, but is string

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04

Terminal

Terminal 2.15

Metadata

Metadata

Assignees

Labels

No labels
No labels

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