community icon indicating copy to clipboard operation
community copied to clipboard

[0.10.124/Linux] Thread distillation on the built-in Anthropic provider: Haiku 5.5 thinking uses the whole 16,384-token budget

Open E-Mezzogori opened this issue 1 week ago • 1 comments

Describe the bug

With the built-in Anthropic provider (claude-haiku-5-5) as the background model, task thread-distill-a8b48d07e5 failed at 13:41:52 UTC on 2026-11-26. The error was distillation_output_limit_reached: "The model used its whole output limit without writing an answer".

The model spent the whole 16,384-token output budget on thinking:

scheduler LLM attempt finished ... output_budget=16384 input_tokens=90814 output_tokens=16384 reasoning_only=true finish_reason="length"
distillation failure fingerprint class="reasoning_only" failure=ReasoningOnly wire=Anthropic host_class=Official reasoning_control=ProviderDefault json_mode=PromptOnly finish_reason=Some(Length)

The UI showed 13 model attempts, 333K tokens in and 148K out.

The fingerprint reports reasoning_control=ProviderDefault, so nmem appears to send no thinking control to Anthropic for this background JSON task. On the same server, DeepSeek background calls report reasoning_control=Disabled.

To Reproduce

It depends on the thread, so we could not trigger it on demand. It was the only failure of this kind we found among about 150 successful distillations in three days with the same model. Assign the background purpose to the built-in Anthropic provider with claude-haiku-5-5 and let automatic thread distillation run on long threads.

Expected behavior

  • Background JSON tasks on Anthropic models limit thinking (low effort, or thinking off), or at least lower it on the recovery attempt.
  • The error message suggests turning reasoning down in Settings > Models. In the CLI we found no thinking control for the built-in Anthropic provider: nmem config provider set --reasoning-effort is documented only for OpenAI-compatible Chat Completions providers. We did not check the desktop Settings > Models screen.

Additional context

  • nmem 0.10.124, nmem-server 0.10.124 (b46efe2bdcad) on Linux, self-hosted (nmem serve under systemd).
  • Related: #948 (per-purpose reasoning control for background requests) and #563 (DeepSeek thinking through an Anthropic gateway, fixed in 0.10.76).

E-Mezzogori avatar Nov 27 '26 09:11 E-Mezzogori

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.

QingZ11 avatar Nov 27 '26 11:11 QingZ11