mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5247] [MERGED] fix: stop local models burning their whole budget on discarded thinking #6689
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6689
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5247
Author: @kh0p
Created: 8/19/2026
Status: ✅ Merged
Merged: 8/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:pr/local-endpoint-reasoning📝 Commits (7)
8e96863fix(llm): honour explicit reasoning-off on local OpenAI-compatible endpoints46e7edffix(agents): disable reasoning for agents that must return JSON573717fMerge branch 'staging' into pr/local-endpoint-reasoningb9be275Address reasoning review gaps29ecae2Harden local reasoning overridesc35b99fLog final agent provider requests498198aMerge branch 'staging' into pr/local-endpoint-reasoning📊 Changes
6 files changed (+342 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/middleware/ip-allowlist.ts(+7 -1)📝
packages/server/src/services/agents/agent-executor.ts(+60 -2)📝
packages/server/src/services/llm/providers/openai.provider.ts(+48 -0)📝
scripts/regressions/agent-runtime.regression.ts(+62 -0)📝
scripts/regressions/provider-compat.regression.ts(+164 -4)📄 Description
Linked issue
Closes #5257
Why this change
Locally hosted reasoning models can ignore an explicit Reasoning Effort setting of Off, spend their whole completion budget on thinking that Marinara discards, and leave JSON-returning agents with empty or invalid output. The strict-JSON retry then repeats the same expensive failure.
What changed
reasoning_effort: "none"andchat_template_kwargs.enable_thinking: falseto local OpenAI-compatible endpoints when reasoning is explicitly disabled, while preserving sibling custom template parameters and keeping the template override away from remote endpoints.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated proof recorded by the maintainer without marking human verification boxes:
pnpm checkpnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/agent-runtime.regression.tspnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/provider-compat.regression.tsManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The user-facing fix is documented under
CHANGELOG.md→[Unreleased]; no configuration or translated documentation changed.UI evidence (if applicable)
Not applicable; this is provider and agent-runtime behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.