[PR #2409] [MERGED] Fix connection default parameter precedence #5594

Closed
opened 2026-10-22 04:17:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2409
Author: @Promansis
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-2389-connection-default-precedence


📝 Commits (1)

  • b9e57dd Fix connection default parameter precedence

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/engine/generation/generate-route-utils.ts (+1 -1)

📄 Description

Linked issue

Closes #2389

Why this change

  • Connection default generation parameters were saved and loaded, but runtime merge order applied them before prompt preset and mode defaults.
  • That let prompt presets override user-set connection defaults, which differs from legacy precedence.

What changed

  • Moves connection defaultParameters later in the shared generation parameter source order.
  • Keeps prompt preset and game mode defaults below connection defaults.
  • Keeps chat metadata parameters and per-request parameters above connection defaults.

Refactor impact

Primary owner:

engine generation

Impact areas reviewed:

  • prompt preview parameter assembly
  • live generation llmParameters path
  • prompt assembly parameter reporting
  • chat/request override order

Boundary notes:

  • React-free engine-only change.
  • No feature UI, shared API wrapper, remote-runtime routing, storage, or Rust command changes.

Pressure points touched:

  • none

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm exec vitest run --config /tmp/issue-2389-vitest.config.ts
    • Scratch test imports the real generation helper and verifies prompt preset/game defaults < connection defaults < chat parameters < request parameters.
  • pnpm typecheck
  • pnpm check

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix for existing generation parameter precedence.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

N/A, engine-only generation parameter precedence fix.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2409 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/6/2026 **Status:** ✅ Merged **Merged:** 6/6/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-2389-connection-default-precedence` --- ### 📝 Commits (1) - [`b9e57dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b9e57ddf94923c5f1327d85b255edc121a6d2c47) Fix connection default parameter precedence ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/generation/generate-route-utils.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #2389 ## Why this change - Connection default generation parameters were saved and loaded, but runtime merge order applied them before prompt preset and mode defaults. - That let prompt presets override user-set connection defaults, which differs from legacy precedence. ## What changed - Moves connection `defaultParameters` later in the shared generation parameter source order. - Keeps prompt preset and game mode defaults below connection defaults. - Keeps chat metadata parameters and per-request parameters above connection defaults. ## Refactor impact Primary owner: engine generation Impact areas reviewed: - prompt preview parameter assembly - live generation `llmParameters` path - prompt assembly parameter reporting - chat/request override order Boundary notes: - React-free engine-only change. - No feature UI, shared API wrapper, remote-runtime routing, storage, or Rust command changes. Pressure points touched: - none ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm exec vitest run --config /tmp/issue-2389-vitest.config.ts` - Scratch test imports the real generation helper and verifies prompt preset/game defaults < connection defaults < chat parameters < request parameters. - `pnpm typecheck` - `pnpm check` ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix for existing generation parameter precedence. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A, engine-only generation parameter precedence fix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:40 +07:00
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#5594
No description provided.