mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1291] [Issue]: Agents ignore their connection's generation parameters (assistant prefill, reasoning effort, samplers) — only temperature and max tokens are used #636
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#636
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?
Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1291
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Agents do not use the generation parameters configured on their connection.
Beyond temperature (where a lower value is often desirable for agents anyway),
agents also ignore assistant prefill, reasoning level/effort, and other sampler
parameters. Setting up a dedicated connection profile with those parameters — the
workaround a maintainer recommended — does not work, because the connection's
parameters are not applied to agent requests. This affects both manually added
agents and hidden / behind-the-scenes agents (e.g. the selfie prompt generator
and the scheduling agent).
Expected behavior
When an agent uses a connection (especially a dedicated connection profile), the
connection's configured generation parameters — assistant prefill, reasoning
effort, samplers (topP/topK/minP/etc.), and custom parameters — should be applied
to the agent's request, the same way they are for normal chat/RP generation. Per
maintainer guidance, creating a dedicated connection profile with these
parameters should let agents use them.
Actual behavior
Only temperature and max tokens reach the agent's LLM request. Assistant prefill,
reasoning effort, and other connection-level parameters are dropped, so a
"no thinking" connection profile (assistant prefill that disables Gemma's
thinking) has no effect when used by an agent.
Steps to reproduce
prefill configured (e.g. the Google-recommended Gemma prefill that disables
thinking) and/or a reasoning level.
(thinking is not disabled) — the connection's parameters are not applied.
Impact area
Environment
77a30fa(GitHub clone)Logs, screenshots, or video
None provided.
Regression notes
Not provided.
Additional context
Source: forum report by Kat (2-Star), 5/24/26 7:51 PM. Kat originally filed this
as a feature request and was advised that the proper way to customize agent
assistant prefill etc. is to create a dedicated connection profile; after doing
so, the connection's parameters still are not used — hence this bug report. Use
case: a single KoboldCPP connection where assistant prefill toggles Gemma thinking
on/off without reloading the backend, to get faster agent replies without lowering
chat/RP quality. The reporter notes this would still apply even on backends that
support reasoning-level flags.
Triage pointer (from a scan, not from the reporter): the agent LLM request is
built in
src/engine/generation/agent-runner.ts(llmProvider→llm.stream),which forwards only
parameters: { temperature, maxTokens }(~L79-82) and doesnot read the connection's stored generation parameters. By contrast, the normal
generation path uses
parseStoredGenerationParametersinsrc/engine/generation/generate-route-utils.ts(~L287-332), which extractstemperature,topP/topK/minP,reasoningEffort,verbosity,assistantPrefill, andcustomParametersfrom the connection/chat. Applying thatsame parameter set (especially
assistantPrefillandreasoningEffort) in theagent path would address this. Because all agents route through
agent-runner.ts,this affects manual and hidden agents alike.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 27, 2026):
Fixed on refactor in
8058f66dd4: agent LLM calls now merge the selected connection generation parameters, including sampler/reasoning/prefill values, while still allowing agent temperature/token overrides. Added focused Vitest coverage and ran pnpm check.