You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: The agent run failed before producing a reply. #108695
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"}}
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"}}
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"}}
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.
Activity
Patt92 commentedon Jul 16, 2026
duplicate of #107449
steipete commentedon Jul 28, 2026
Closing as fixed by #108360, which merged as
c6a9f5339b01bc9218d6e8763f69a7a4337f518band is present inv2026.7.2-beta.2and 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 crondeclarationKeyschema; gateway/runtime nonblank validation remains intact. Current main retains both the corrected schema and the regression test insrc/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:
The broader, distinct grammar-repetition/
maxLengthcompatibility work remains open in #108580 with its existing contributor PRs. This closure covers only the unanchored-pattern error reported here.