[GH-ISSUE #6052] [Feature]: Show which generation-parameter layer is in effect (preset, connection, chat, mode) and document the order #3357

Closed
opened 2026-10-21 06:02:17 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @ghost on GitHub (Sep 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6052

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Generation parameters can come from four places: the prompt preset's parameters, the connection's Default Parameters, the chat's Advanced Parameters, and mode rules (scene chat, Game mode), with the connection's Max Output Tokens override as a cap on top. Each layer has its own panel and none of them says which one is currently winning. A user who sets Max Tokens on the preset and sees 16 384 on the wire has to read provider-generation-runtime.ts to learn that the chat's Advanced Parameters overrode it. The order is not documented in docs/.

Observed order on staging 8906861ac (resolveGenerationProviderRuntime), later wins:

  1. preset parameters when the assembler resolves a preset, else defaults (temperature 1, max tokens 4096)
  2. connection Default Parameters
  3. chat Advanced Parameters
  4. scene chat → 8192 + Maximum; Game mode → 16 384 + Maximum with sampling zeroed
  5. known max output for the model, then the connection's Max Output Tokens override (applied again by BaseLLMProvider.applyMaxTokensCap)

The preset's parameters field is accepted by the API (prompt.schema.ts) but the current client has no editor for it, so values written by an import or an older build keep acting as the base layer with nothing on screen to show it.

Proposed solution

  1. A short section in the docs (connections or presets guide) stating the order above.
  2. In the chat's Advanced Parameters and the connection's Default Parameters, show the effective value beside each field with its source — "from preset", "from connection", "this chat", "forced by Game mode" — read-only, so the user sees what will be sent without changing anything.
  3. Either expose the preset's parameters in the preset editor or stop applying them; a layer that can be neither seen nor edited is a trap.

Alternatives considered

  • Documentation only (1): cheapest; does not help in the moment the number looks wrong.
  • Resolved parameters in the dry-run route's output: good for debugging, hidden from the people who hit this.

Additional context

Found while verifying #5965: a connection Max Output Tokens override of 16 produced "16 of 4096" in an error message (fixed there). Reproduced on staging 8906861ac: chat Advanced Parameters max tokens 16 384 with the preset at 8192 → wire max_tokens=16384; nothing in the UI says why.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ghost on GitHub (Sep 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6052 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Generation parameters can come from four places: the prompt preset's `parameters`, the connection's Default Parameters, the chat's Advanced Parameters, and mode rules (scene chat, Game mode), with the connection's Max Output Tokens override as a cap on top. Each layer has its own panel and none of them says which one is currently winning. A user who sets Max Tokens on the preset and sees 16 384 on the wire has to read `provider-generation-runtime.ts` to learn that the chat's Advanced Parameters overrode it. The order is not documented in `docs/`. Observed order on staging 8906861ac (`resolveGenerationProviderRuntime`), later wins: 1. preset `parameters` when the assembler resolves a preset, else defaults (temperature 1, max tokens 4096) 2. connection Default Parameters 3. chat Advanced Parameters 4. scene chat → 8192 + Maximum; Game mode → 16 384 + Maximum with sampling zeroed 5. known max output for the model, then the connection's Max Output Tokens override (applied again by `BaseLLMProvider.applyMaxTokensCap`) The preset's `parameters` field is accepted by the API (`prompt.schema.ts`) but the current client has no editor for it, so values written by an import or an older build keep acting as the base layer with nothing on screen to show it. ## Proposed solution 1. A short section in the docs (connections or presets guide) stating the order above. 2. In the chat's Advanced Parameters and the connection's Default Parameters, show the effective value beside each field with its source — "from preset", "from connection", "this chat", "forced by Game mode" — read-only, so the user sees what will be sent without changing anything. 3. Either expose the preset's `parameters` in the preset editor or stop applying them; a layer that can be neither seen nor edited is a trap. ## Alternatives considered - Documentation only (1): cheapest; does not help in the moment the number looks wrong. - Resolved parameters in the dry-run route's output: good for debugging, hidden from the people who hit this. ## Additional context Found while verifying #5965: a connection Max Output Tokens override of 16 produced "16 of 4096" in an error message (fixed there). Reproduced on staging 8906861ac: chat Advanced Parameters max tokens 16 384 with the preset at 8192 → wire `max_tokens=16384`; nothing in the UI says why. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:02:17 +07:00
Author
Owner

@ghost commented on GitHub (Sep 11, 2026):

I would like to handle this one myself. Once she's back from vacation.

<!-- gh-comment-id:5636923937 --> @ghost commented on GitHub (Sep 11, 2026): I would like to handle this one myself. Once she's back from vacation.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Go for it, thank you!

<!-- gh-comment-id:5644675710 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Go for it, thank you!
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Owner: @SpicyMarinara (Codex). The maintainer has requested that this issue be completed in the assigned issue sweep, tracked in draft PR #6072. Existing contributor patches and previously completed translations will be reviewed and reused with attribution; the final PR will document the implementation and verification before this issue is closed.

<!-- gh-comment-id:5644875492 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Owner: @SpicyMarinara (Codex). The maintainer has requested that this issue be completed in the assigned issue sweep, tracked in draft PR #6072. Existing contributor patches and previously completed translations will be reviewed and reused with attribution; the final PR will document the implementation and verification before this issue is closed.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Fixed in #6072, merged into staging.

Advanced Parameters and connection defaults now show saved effective values and their winning layer. Preset parameters are editable in the existing preset editor, and the layer order is documented. Browser/API checks cover saved edits, preset inheritance, chat overrides, scene rules, disabled parameters, and the connection output cap; a local provider fixture confirms the capped value on the actual request. Hints explicitly describe the stage before context fitting and provider-specific request shaping.

<!-- gh-comment-id:5645731717 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Fixed in #6072, merged into `staging`. Advanced Parameters and connection defaults now show saved effective values and their winning layer. Preset parameters are editable in the existing preset editor, and the layer order is documented. Browser/API checks cover saved edits, preset inheritance, chat overrides, scene rules, disabled parameters, and the connection output cap; a local provider fixture confirms the capped value on the actual request. Hints explicitly describe the stage before context fitting and provider-specific request shaping.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3357
No description provided.