mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8389] [MERGED] fix: reasoning effort on custom endpoints, stuck "Generating" turns, rate-limit clock jumps #8570
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#8570
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/8389
Author: @kolacheee
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @kolacheee
Base:
staging← Head:fix/custom-gateway-generation📝 Commits (8)
b267d70fix(llm): send reasoning effort to reasoning models on custom endpoints4d1de4ffix(server): run rate-limit windows on a monotonic clock90fc24cfix(generate): stop interrupted or failed turns from hanging on "Generating"4677bd2Merge branch 'staging' into fix/custom-gateway-generation8842ea0fix: Retry falls back when nothing is sent; gateway effort refusals remembered722dd0bfix(generate): time the stopped-run release wait on the monotonic clock195c859Merge remote-tracking branch 'origin/staging' into fix/custom-gateway-generationdb7d1a5fix: one resend per Retry; refused-effort record on the monotonic clock📊 Changes
11 files changed (+583 additions, -7 deletions)
View changed files
📝
packages/client/src/components/game/GameInput.tsx(+29 -1)📝
packages/client/src/components/game/GameSurface.tsx(+24 -1)📝
packages/client/src/hooks/use-generate.ts(+83 -3)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/server/src/middleware/rate-limit.ts(+8 -2)📝
packages/server/src/routes/generate.routes.ts(+17 -0)📝
packages/server/src/routes/generate/sse.ts(+9 -0)📝
packages/server/src/services/llm/providers/openai.provider.ts(+105 -0)➕
scripts/regressions/custom-gateway-reasoning-effort.regression.ts(+137 -0)➕
scripts/regressions/generate-interrupted-retry.regression.ts(+115 -0)➕
scripts/regressions/rate-limit-clock-jump.regression.ts(+55 -0)📄 Description
Linked issue
Closes #8387
Why this change
What changed
reasoning_effortfor recognized reasoning model families, capping xhigh/max at high outside the OpenAI family. If the gateway refuses the parameter with a 400, the request is retried once without it. An effort set through Custom Parameters is left alone./generate/statusand either reads back what was saved or shows the error with Retry.performance.now();RateLimit-Resetis still reported against the wall clock.Validation
custom-gateway-reasoning-effort,generate-interrupted-retry,rate-limit-clock-jumppnpm checkpasses locally (on the private branch these fixes came from)CONTRIBUTING.mdManual verification notes
Played Game Mode through a custom OpenAI-compatible gateway with Gemini and DeepSeek models:
Docs and release impact
No docs change. Release note: reasoning effort now applies to reasoning models on custom endpoints, interrupted turns no longer hang on "Generating", and rate limiting survives system clock changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.