mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6664] [MERGED] fix(agents): honor output limits and NanoGPT Kimi reasoning support #7276
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#7276
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/6664
Author: @SpicyMarinara
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/6658-6659-agent-request-limits📝 Commits (3)
4d5babcdocs(changelog): track assigned agent request fixes40f6fc3fix(agents): honor manual output limits and Kimi K3 reasoning supportd8d6770Merge branch 'staging' into codex/6658-6659-agent-request-limits📊 Changes
6 files changed (+67 additions, -13 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/services/agents/agent-executor.ts(+1 -1)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+12 -11)📝
packages/server/src/services/llm/providers/openai.provider.ts(+2 -1)📝
scripts/regressions/prompt.regression.ts(+25 -0)📝
scripts/regressions/provider-compat.regression.ts(+25 -0)📄 Description
Linked issue
Closes #6658
Closes #6659
Why this change
Automatic agent runs on NanoGPT Kimi K3 fail when JSON output forces unsupported
reasoning_effort: none. Manual Illustrator requests also silently cap output at 1,800 tokens, which can truncate otherwise valid image-prompt JSON despite a higher configured limit.What changed
lowfor NanoGPT Kimi K3 in the existing request builder. NanoGPT documents low/high/max as K3's supported levels. Requests that omit the parameter or disable its send switch still omit it; other models retain their existing handling.Validation
pnpm checkpasses locallyCONTRIBUTING.mdLocal validation completed:
pnpm check— passed, including localization, formatting, lint/type checks and production builds.pnpm regression:prompt— all three suites passed.node scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.ts— passed.node scripts/run-regressions.mjs --filter scripts/regressions/agent-runtime.regression.ts— passed.Regressions used isolated temporary data directories. Before the fixes, the new cases reproduced both defects:
noneinstead oflow, and 1,800 instead of 32,800 tokens. Coverage checks actual NanoGPT-shaped HTTP requests, manual Illustrator provider options, connection/model caps, unconfigured limits, omitted/disabled reasoning parameters, and the older Kimi model's existing behavior. Existing oversized-context and retry protections also pass.Local CodeRabbit review completed with zero findings across all six changed files. No live paid-model request or container/browser manual verification has been performed.
Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Changelog entries included. No version bump or user-facing documentation change.
UI evidence (if applicable)
Server request handling only; no visual changes.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.