Repository navigation
Description
What happened
Several Host auxiliary model calls ask for no reasoning by setting thinkingLevel: 'off' on the header they pass to runHostAuxiliaryModelCall. These are Daily Review (execution-model-authority.ts:939, :956) and the in-flight next-prompt suggestions in #5629. On many current reasoning models the request that actually goes out does not turn reasoning off. The provider then runs its default effort.
The cause is how two pieces combine:
resolveThinkingLevel(packages/core/src/model-thinking.ts:386-394) keeps a level only if the model declares it, and'off'is only declared throughoffBehavioror an effort'none'(:110-112). For the models listed below,'off'is dropped and becomesundefined.buildThinkingProviderOptionsthen seeslevel === undefined. The caller'sthinkingLevelis'off', notundefined, so the default-effort fallback is skipped too. On OpenAI (packages/runtime/src/model-factory.ts:568-580) the request carries noreasoningEffortat all. Google (:611-624) and DeepSeek send nothing, and the model-factory comment already says that means "provider default, not off".
I ran thinkingVariantsForConnection and buildProviderOptions(connection, model, 'off') from the built @maka/core / @maka/runtime at 276faf1c9:
| Model | Declared variants | Options sent for 'off' |
|---|---|---|
openai gpt-5, gpt-5-mini |
minimal, low, medium, high | {store:false, reasoningSummary:'auto'}, no effort |
openai o3, o4-mini |
low, medium, high | no effort |
openai / openai-codex gpt-6-sol, gpt-6-luna |
low … max (OPENAI_GPT6_THINKING_OPTIONS drops none, model-metadata.ts:271-277) |
{reasoningSummary:'auto'}, no effort |
google gemini-3.5-flash |
minimal … high | no thinkingConfig |
google gemini-3.1-pro |
(none) | no thinkingConfig |
deepseek deepseek-v4-pro |
low, high, max | {} |
openai gpt-5.4, gpt-5.5 |
off, low, … | reasoningEffort:'none' ✅ |
google gemini-2.5-flash |
off | thinkingBudget:0 ✅ |
anthropic claude-sonnet-5 |
low … max | no thinking (API default is off) ✅ |
For callers that asked for 'off', this means:
- Cost and latency. They pay for default-effort reasoning, e.g.
mediumon GPT-5 or GPT-6, even though the caller asked for none. Ongpt-5the model itself offersminimal, but it is never used. - Small output budgets come back empty. Reasoning tokens count against
maxOutputTokens. For small budgets (feat(desktop): add opt-in next prompt suggestions #5629 uses 128), the call can end withfinishReason: 'length'and no visible text. It is still recorded asstatus: 'success'with the reasoning tokens billed.
A related case that I have not verified end to end: WorkHub intent routing (execution-model-authority.ts:243-256) passes the Coordination Session's own header unchanged, whatever thinkingLevel it has, with maxOutputTokens: 80. If that session runs a reasoning model at a high effort, the intent call could run out of budget in the same way.
Expected: an auxiliary caller that asks for "as little reasoning as possible" gets the lowest effort the model actually supports, and the request carries it explicitly.
How to reproduce
- Build
@maka/coreand@maka/runtimeat276faf1c9. - Run:
const f = await import('./packages/runtime/dist/model-factory.js'); f.buildProviderOptions({ providerType: 'openai', slug: 'openai' }, 'gpt-6-sol', 'off'); // → { openai: { store: false, reasoningSummary: 'auto', parallelToolCalls: true } } (no reasoningEffort) f.buildProviderOptions({ providerType: 'openai', slug: 'openai' }, 'gpt-5.5', 'off'); // → { openai: { store: false, reasoningEffort: 'none', ... } }
- End to end: set Daily Review's model to
openai::gpt-6-sol(oropenai::gpt-5) and generate a review. The request has noreasoningEffort, and the usage row shows reasoning tokens.
Environment
- Maka commit:
276faf1c9(upstreammain) - Surface: Runtime Host (auxiliary model calls). Affects Desktop Daily Review, and next-prompt suggestions once feat(desktop): add opt-in next prompt suggestions #5629 lands.
- Found while reviewing feat(desktop): add opt-in next prompt suggestions #5629 (review: feat(desktop): add opt-in next prompt suggestions #5629 (review)).
Logs, screenshots, or additional context
Possible fix, for maintainers to decide:
- Give auxiliary calls an explicit "minimal reasoning" request instead of reusing
'off'. Resolve it throughthinkingVariantsForConnection:'off'if the model declares it, otherwise the lowest declared effort (minimal, thenlow), and send that level explicitly. - Optionally, auxiliary callers could opt out of
reasoningSummary: 'auto'. - WorkHub routing and memory extraction already set
maxRetries: 0; Daily Review, title, recap and goal evaluation do not. Whether they should could be settled in the same change.
AI disclosure: Claude Code (Claude Opus) traced the code path, ran the option-builder check above against the built packages, and drafted this issue; liugddx reviewed it and is the human contributor of record.
Activity
liugddx commentedon Sep 24, 2026
take
fix(runtime-host): ask auxiliary calls for the least reasoning each m…