[GH-ISSUE #7131] Agents ignore the reasoning effort and other parameters set on their connection #3986

Closed
opened 2026-10-21 06:09:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7131

Originally assigned to: @SpicyMarinara on GitHub.

Agent calls don't use most of the generation parameters saved on the agent's connection (Use custom defaults for this connection), so you can't control how much an agent's model thinks. Some models need high reasoning to do agent work well, which makes agents noticeably worse.

What happens today (staging 4184c0a8d):

  • Agents run by Marinara (agent-executor.ts, agent-resolution.ts, retry-agents-route.ts) get only temperature, custom parameters, custom headers and the send switches from the connection. Reasoning effort is never sent, and neither are Top P, Top K, the penalties and similar settings.
  • Agents that must reply in JSON (most trackers, Prose Guardian, World State…) are forced to reasoning "none" (jsonAgentReasoningOverride, agent-executor.ts ~3470), unless the connection's Reasoning Effort send switch is off. A level the user chose is overridden.
  • Package agents that call the model themselves (capability-language-model.service.ts ~95) create the provider without the connection's defaults, so even custom headers and custom parameters are dropped. Only what the package passes is sent.

Expected: an agent call uses the parameters saved on the connection it runs on, reasoning effort included, mapped to what the model supports. It must still produce complete answers, so reasoning can't eat the whole output budget.

Reported by the maintainer.

Originally created by @SpicyMarinara on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7131 Originally assigned to: @SpicyMarinara on GitHub. Agent calls don't use most of the generation parameters saved on the agent's connection (**Use custom defaults for this connection**), so you can't control how much an agent's model thinks. Some models need high reasoning to do agent work well, which makes agents noticeably worse. What happens today (staging `4184c0a8d`): - **Agents run by Marinara** (`agent-executor.ts`, `agent-resolution.ts`, `retry-agents-route.ts`) get only temperature, custom parameters, custom headers and the send switches from the connection. **Reasoning effort is never sent**, and neither are Top P, Top K, the penalties and similar settings. - **Agents that must reply in JSON** (most trackers, Prose Guardian, World State…) are forced to reasoning **"none"** (`jsonAgentReasoningOverride`, `agent-executor.ts` ~3470), unless the connection's Reasoning Effort send switch is off. A level the user chose is overridden. - **Package agents that call the model themselves** (`capability-language-model.service.ts` ~95) create the provider without the connection's defaults, so even custom headers and custom parameters are dropped. Only what the package passes is sent. Expected: an agent call uses the parameters saved on the connection it runs on, reasoning effort included, mapped to what the model supports. It must still produce complete answers, so reasoning can't eat the whole output budget. Reported by the maintainer.
bsakaguchi 2026-10-21 06:09:18 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Oct 5, 2026):

SpicyMarinara/Codex is taking over publication of the review fixes that were not included in the merged #7135 head. Follow-up PR #7141 contains those fixes and targets staging. Translation follow-up: #7142.

<!-- gh-comment-id:6002106675 --> @SpicyMarinara commented on GitHub (Oct 5, 2026): SpicyMarinara/Codex is taking over publication of the review fixes that were not included in the merged #7135 head. Follow-up PR #7141 contains those fixes and targets staging. Translation follow-up: #7142.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3986
No description provided.