mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7493
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/7135
Author: @SpicyMarinara
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/agent-connection-params-7131📝 Commits (2)
7747a75fix(agents): send the connection's saved generation parameters on agent callsf90ef00Merge branch 'staging' into fix/agent-connection-params-7131📊 Changes
20 files changed (+1243 additions, -171 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/agents/agents-overview.md(+1 -1)📝
docs/agents/custom-agents.md(+1 -1)📝
docs/connections/subscription-clis.md(+1 -1)📝
docs/prompts/generation-parameters.md(+13 -1)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+1 -3)📝
packages/client/src/localization/locales/en.json(+1 -1)📝
packages/server/src/routes/generate.routes.ts(+9 -20)📝
packages/server/src/routes/generate/retry-agents-route.ts(+32 -6)📝
packages/server/src/services/agents/agent-executor.ts(+98 -54)📝
packages/server/src/services/capability-packages/capability-language-model.service.ts(+35 -6)➕
packages/server/src/services/generation/agent-generation-parameters.ts(+232 -0)📝
packages/server/src/services/generation/agent-resolution.ts(+46 -6)📝
packages/server/src/services/generation/illustrator-background-generation.ts(+12 -7)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+8 -5)📝
packages/server/src/services/generation/output-token-limits.ts(+18 -0)📝
packages/server/src/services/generation/provider-generation-runtime.ts(+68 -41)📝
packages/server/src/services/llm/providers/anthropic.provider.ts(+8 -17)📝
packages/shared/src/constants/generation-parameter-relevance.ts(+2 -1)➕
scripts/regressions/agent-connection-parameters.regression.ts(+655 -0)📄 Description
Linked issue
Closes #7131
Why this change
What changed
resolveGenerationParameters, and every agent path reuses them with the connection's settings only: single agents, JSON retries, tool rounds, Beholder lanes, batches, retries, knowledge retrieval and router, character activity, the Illustrator prompt writers, and agents on the chat's own connection.What wins over what
Retries use the connection's saved values and Send switches, not the chat's.
Cost note: custom defaults start Reasoning Effort at Maximum (Default on Codex). Agents on such a connection now reason at the model's highest level, which is slower and costs more. The docs and changelog say how to lower it.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdWhat the agent ran (to be confirmed by a human):
pnpm checkpassed after merging currentstaging.node ./scripts/run-regressions.mjs --filter scripts/regressions/agent-connection-parameters.regression.tspasses. It records real request bodies from a local stub server, with no real provider calls, and covers:<think>stripping on text agents./api/generatecall: the chat-connection agent, knowledge retrieval, knowledge router and character-activity agents send the same Top P, penalties, reasoning, Top A and custom parameter as the main reply. A value switched off on the connection stays unsent from agents even when the chat switches it on.stagingat its first check (Top P missing). Breaking each fix on purpose (23 in all) makes it fail every time.Manual verification notes
DEBUG_AGENTSprompt log.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Notes:
docs/prompts/generation-parameters.md,docs/agents/custom-agents.md,docs/agents/agents-overview.md,docs/connections/subscription-clis.mdandCHANGELOG.md(#7131).[docs-i18n]follow-up issue for those four docs still needs to be opened.ui.connections.connectioneditor.defaultGenerationSettingsForChatsThatUseThisConnectionis renamed toui.connections.connectioneditor.defaultGenerationSettingsForChatsAndAgents.UI evidence (if applicable)
The only UI change is the connection editor help text (en.json).
Worktree:
/Users/marysia/Developer/Marinara-Engine-worktrees/fix-agent-params-7131. The files changed this round:packages/server/src/services/llm/providers/anthropic.provider.tspackages/server/src/services/generation/agent-generation-parameters.tspackages/server/src/services/agents/agent-executor.tspackages/server/src/services/generation/illustrator-manual-prompt-generation.tspackages/server/src/services/generation/illustrator-background-generation.tspackages/server/src/services/llm/base-provider.tspackages/server/src/routes/generate/retry-agents-route.tspackages/shared/src/constants/model-lists.tsscripts/regressions/agent-connection-parameters.regression.tsdocs/prompts/generation-parameters.mdCHANGELOG.md🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.