Skip to content

[Bug]: The agent run failed before producing a reply. #108695

Closed

Description

@Tangjian18

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After upgrading from 2026.6.11 to 2026.7.1, the local llama.cpp model can not be used.

In browser http://127.0.0.1:18789/chat message:

Llama.cpp out put :

W srv operator(): got exception: {"error":{"code":400,"message":"Unable to generate parser for this template. Automatic parser generation failed: JSON schema conversion failed:\nPattern must start with '^' and end with '$'","type":"invalid_request_error"}}

Steps to reproduce

从 2026.6.11 升级到 2026.7.1, 本地 llama.cpp 模型无法正常对话.

客记端 http://127.0.0.1:18789/chat 提示信息:

The agent run failed before producing a reply.

Image

Llama.cpp 输出日志:

W srv operator(): got exception: {"error":{"code":400,"message":"Unable to generate parser for this template. Automatic parser generation failed: JSON schema conversion failed:\nPattern must start with '^' and end with '$'","type":"invalid_request_error"}}

Image

Expected behavior

正常对话

Actual behavior

The agent run failed before producing a reply.

W srv operator(): got exception: {"error":{"code":400,"message":"Unable to generate parser for this template. Automatic parser generation failed: JSON schema conversion failed:\nPattern must start with '^' and end with '$'","type":"invalid_request_error"}}

OpenClaw version

2026.7.1

Operating system

Wsl2

Install method

npm global

Model

qwen3.5-9b

Provider / routing chain

openclaw

Additional provider/model setup details

"models": {
"providers": {
"llamacpp": {
"baseUrl": "http://127.0.0.1:11444/v1",
"apiKey": "none",
"api": "openai-completions",
"models": [
{
"id": "Qwen3.5-9B-Q4_0",
"name": "Alibaba Qwen3.5-9B-Q4_0",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 65535,
"maxTokens": 8192
}
],
"timeoutSeconds": 9000
}

Logs

Screenshots, recordings, and evidence

No response

Impact and severity

No response

Additional information

No response

Activity

  1. Patt92 commented on Jul 16, 2026

    @Patt92

    duplicate of #107449

  2. steipete commented on Jul 28, 2026

    @steipete
    Contributor

    Closing as fixed by #108360, which merged as c6a9f5339b01bc9218d6e8763f69a7a4337f518b and is present in v2026.7.2-beta.2 and subsequent beta releases.

    This report shows llama.cpp's exact Pattern must start with '^' and end with '$' failure after upgrading to 2026.7.1. The same root cause was already tracked in #107449 and fixed by removing the unanchored pattern from the model-facing cron declarationKey schema; gateway/runtime nonblank validation remains intact. Current main retains both the corrected schema and the regression test in src/agents/tools/cron-tool.schema.test.ts.

    I also reran the official current llama.cpp JSON-Schema-to-grammar converter against the before/after model-facing schema:

    before: rejected — Pattern must start with "^" and end with "$"
    after:  accepted — root ::= "{" space declarationKey-kv space "}"
    

    The broader, distinct grammar-repetition/maxLength compatibility work remains open in #108580 with its existing contributor PRs. This closure covers only the unanchored-pattern error reported here.

  3. locked as resolved and limited conversation to collaborators on Oct 8, 2026
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

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions