[0.10.124/Linux] Agent requests fail on Anthropic: thread_fetch_messages and search_thread_messages have a top-level anyOf in input_schema
Describe the bug
With the built-in Anthropic provider (claude-haiku-5-5), agent-harness requests fail with HTTP 400:
tools.7.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level
Example Anthropic request id: req_011ChRi4sS8Qrhy5seBGYhgE.
The input_schema of thread_fetch_messages and search_thread_messages has this at the top level:
"anyOf":[{"required":["thread_id"]},{"required":["thread_reference"]}]
The Anthropic Messages API does not accept a top-level oneOf, anyOf or allOf in a tool's input_schema, whatever the model.
The failures are not limited to AI Now. In app.log, between 2026-11-08 and 2026-11-26, the error lines that carry a session id come from these sessions:
| Session | Error lines |
|---|---|
sched-skill_target_review |
72 |
feed-input |
3 |
AI Now (session-...), our reproduction included |
2 |
graph-intelligence |
2 |
sched-skill_compilation |
1 |
The last error was at 14:51 UTC on 2026-11-26, shortly before these purposes were moved to DeepSeek.
To Reproduce
- Assign the AI Now purpose to the built-in Anthropic provider.
- Create an AI Now session with the default plugins and send any prompt.
- The turn fails with the 400 above.
Running the same session on DeepSeek (PATCH /agent/ai-now/sessions/{id} with llmProvider) works. We reproduced this with two identical fresh sessions, one per provider.
Expected behavior
Agent requests work with Anthropic models. One way: drop the top-level anyOf from these two schemas, at least for Anthropic. The tool description can still say that thread_id or thread_reference is required, and the server can check it.
Additional context
nmem 0.10.124,nmem-server 0.10.124 (b46efe2bdcad)on Linux, self-hosted (nmem serveunder systemd). Desktop and CLI clients connect over the LAN.- Workaround in use: AI Now and the background purposes run on DeepSeek.
Thanks for the report, we've received it. We'll look into fixing this as soon as we can and will update this issue once a release with the fix is out.