[PR #6776] [MERGED] feat: show provider-relevant generation controls #7325

Closed
opened 2026-10-23 04:18:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6776
Author: @SirAdoni
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara

Base: staging ← Head: contrib/6698-parameter-controls


📝 Commits (10+)

  • 9e8592d feat: show provider-relevant generation controls
  • 65faf5a fix: retain xAI penalty controls where supported
  • 9e192c1 test: verify provider controls on desktop and mobile
  • 02e4a63 Merge staging into provider control contribution
  • 8ec8724 test: reject missing provider request captures
  • bc39fb3 Merge staging inventory update into provider controls
  • 19f0cfd Merge commit '3355c32277' into repair/6776
  • 33a3f6f fix(connections): refresh model capabilities after saving
  • 7c4ff33 Merge staging package actions into generation controls
  • efa55b6 Merge staging chat insights into generation controls

📊 Changes

12 files changed (+1310 additions, -208 deletions)

View changed files

📝 CHANGELOG.md (+4 -2)
➕ e2e/generation-parameter-controls.e2e.ts (+93 -0)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+15 -6)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+10 -0)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+8 -4)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+237 -186)
📝 packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx (+6 -4)
📝 packages/client/src/hooks/use-connections.ts (+29 -0)
📝 packages/server/src/routes/connections.routes.ts (+40 -6)
➕ packages/shared/src/constants/generation-parameter-relevance.ts (+379 -0)
📝 packages/shared/src/index.ts (+1 -0)
➕ scripts/regressions/generation-parameter-relevance.regression.ts (+488 -0)

📄 Description

Linked issue

Closes #6804. Partial implementation of #6698; the umbrella issue remains open.

Why this change

Generation settings showed controls that the selected provider or model would ignore.

What changed

  • Filter connection, chat and Game controls using the existing provider rules and reported model capabilities.
  • Keep the full reusable preset editor and refresh model capabilities after saving a connection.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

pnpm check; actual provider-request regression; three desktop/mobile Chromium/WebKit browser cases; seven shell smoke cases passed. No live provider calls were made.

The contributor completed local CodeRabbit review and fixed its actionable regression finding. Hosted review completed on 33a3f6f84; its capability-cache finding is fixed. Current-head GitHub checks remain merge gates.

Manual verification

Manually verify controls against a configured provider/model, including changing the model and saving the connection.

Automated browser evidence does not claim physical-device or manual container verification. Human checklist states are preserved.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Added an Unreleased changelog entry. No release metadata or user-facing docs changed.

UI evidence

Browser evidence (download the HTML to view the embedded screenshots). Captions distinguish before/after captures from current feature screenshots.

Summary by CodeRabbit

  • New Features
    • Generation settings in chats, games, and connection setup now show controls supported by the selected provider and model, including reported model capabilities. Preset editing continues to offer reusable controls.
    • Reasoning and verbosity options reflect the selected model’s available choices, with provider-specific labels and descriptions where available.
  • Bug Fixes
    • Improved consistency between the controls shown and the parameters supported by the selected model, so unsupported options are less likely to appear.

Current review evidence

Hosted CodeRabbit review completed on the current 7c4ff33fb head. Its required product checks pass; the remaining template failure is the unchecked human validation box. The combined local review also covered this change without a further finding in its files.
Updated to staging 982cbb901 after the chat-tools merge. Published efa55b653 preserves all ten provider implementation/test files exactly and all 28 incoming chat-tools files exactly; the only manual resolution retained both changelog blocks. Fresh pnpm check and the focused provider regression pass. Existing feature browser/smoke evidence remains applicable because no UI logic was changed by this merge.

Local build and container verification

Tested commit: efa55b6532. Full local pnpm check passed. The full Docker image built successfully and ran with synthetic data; HTTP readiness and embedded build commit were verified. These results do not claim completion of the remaining manual and UI edge-case checklist.

Interactive browser walkthroughs of the feature were completed against the running production container using synthetic fixtures, supported by focused automated browser checks. This was agent-operated browser interaction, not physical-device testing. The broader theme, empty-state and error-path checklist remains separate.

Completed UI verification

At efa55b6532, focused browser checks passed 3/3 and supplemental checks passed 2/2. Agent-operated light desktop (1440x900) and dark narrow (390x844) views were inspected; controls settled visibly without horizontal document overflow. A limited-capability model exposed Max Output Tokens without Temperature. The production-container walkthrough verified model changes and persisted output-token overrides using a synthetic connection. No real-provider request or physical-device/keyboard testing is claimed.


🔄 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/6776 **Author:** [@SirAdoni](https://github.com/SirAdoni) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `contrib/6698-parameter-controls` --- ### 📝 Commits (10+) - [`9e8592d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e8592d5cafeabe497beae43555b342bdb35ef33) feat: show provider-relevant generation controls - [`65faf5a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/65faf5a1e2104290f703c606dc9203edde450c98) fix: retain xAI penalty controls where supported - [`9e192c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e192c19bb3ca28651b6a3591e10c4aa9e0c2620) test: verify provider controls on desktop and mobile - [`02e4a63`](https://github.com/Pasta-Devs/Marinara-Engine/commit/02e4a63ceaef782d44d4ad882d814b86d96f97da) Merge staging into provider control contribution - [`8ec8724`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ec8724144a261acd89755e1c0726005865cc7d4) test: reject missing provider request captures - [`bc39fb3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bc39fb3e7c86b3a91f1f86a7ded7cfb69103459c) Merge staging inventory update into provider controls - [`19f0cfd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/19f0cfd7e054c0f0e36a417eaaa4b877437697fb) Merge commit '3355c32277f71d2d4aa2e4f84d4901c098047dec' into repair/6776 - [`33a3f6f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/33a3f6f8469bee458bb02bac00041c698b17181d) fix(connections): refresh model capabilities after saving - [`7c4ff33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c4ff33fb81ad5632139ceccf591a43cf8f60f4f) Merge staging package actions into generation controls - [`efa55b6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/efa55b65323be4a8ce3d3ad0248e07eb0489117c) Merge staging chat insights into generation controls ### 📊 Changes **12 files changed** (+1310 additions, -208 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -2) ➕ `e2e/generation-parameter-controls.e2e.ts` (+93 -0) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+15 -6) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+10 -0) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+8 -4) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+237 -186) 📝 `packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx` (+6 -4) 📝 `packages/client/src/hooks/use-connections.ts` (+29 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+40 -6) ➕ `packages/shared/src/constants/generation-parameter-relevance.ts` (+379 -0) 📝 `packages/shared/src/index.ts` (+1 -0) ➕ `scripts/regressions/generation-parameter-relevance.regression.ts` (+488 -0) </details> ### 📄 Description ## Linked issue Closes #6804. Partial implementation of #6698; the umbrella issue remains open. ## Why this change Generation settings showed controls that the selected provider or model would ignore. ## What changed - Filter connection, chat and Game controls using the existing provider rules and reported model capabilities. - Keep the full reusable preset editor and refresh model capabilities after saving a connection. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` pnpm check; actual provider-request regression; three desktop/mobile Chromium/WebKit browser cases; seven shell smoke cases passed. No live provider calls were made. The contributor completed local CodeRabbit review and fixed its actionable regression finding. Hosted review completed on 33a3f6f84; its capability-cache finding is fixed. Current-head GitHub checks remain merge gates. ### Manual verification Manually verify controls against a configured provider/model, including changing the model and saving the connection. Automated browser evidence does not claim physical-device or manual container verification. Human checklist states are preserved. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) Added an Unreleased changelog entry. No release metadata or user-facing docs changed. ## UI evidence [Browser evidence](https://gist.github.com/SpicyMarinara/da3223f4ef3d9ff855b68143e7ced6da) (download the HTML to view the embedded screenshots). Captions distinguish before/after captures from current feature screenshots. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Generation settings in chats, games, and connection setup now show controls supported by the selected provider and model, including reported model capabilities. Preset editing continues to offer reusable controls. * Reasoning and verbosity options reflect the selected model’s available choices, with provider-specific labels and descriptions where available. * **Bug Fixes** * Improved consistency between the controls shown and the parameters supported by the selected model, so unsupported options are less likely to appear. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- maintainer-final-review --> ### Current review evidence Hosted CodeRabbit review completed on the current 7c4ff33fb head. Its required product checks pass; the remaining template failure is the unchecked human validation box. The combined local review also covered this change without a further finding in its files. Updated to staging 982cbb901 after the chat-tools merge. Published efa55b653 preserves all ten provider implementation/test files exactly and all 28 incoming chat-tools files exactly; the only manual resolution retained both changelog blocks. Fresh pnpm check and the focused provider regression pass. Existing feature browser/smoke evidence remains applicable because no UI logic was changed by this merge. <!-- /maintainer-final-review --> <!-- local-validation-20260928 --> ### Local build and container verification Tested commit: efa55b65323be4a8ce3d3ad0248e07eb0489117c. Full local pnpm check passed. The full Docker image built successfully and ran with synthetic data; HTTP readiness and embedded build commit were verified. These results do not claim completion of the remaining manual and UI edge-case checklist. <!-- /local-validation-20260928 --> <!-- interactive-validation-20260928 --> Interactive browser walkthroughs of the feature were completed against the running production container using synthetic fixtures, supported by focused automated browser checks. This was agent-operated browser interaction, not physical-device testing. The broader theme, empty-state and error-path checklist remains separate. <!-- /interactive-validation-20260928 --> ### Completed UI verification At efa55b65323be4a8ce3d3ad0248e07eb0489117c, focused browser checks passed 3/3 and supplemental checks passed 2/2. Agent-operated light desktop (1440x900) and dark narrow (390x844) views were inspected; controls settled visibly without horizontal document overflow. A limited-capability model exposed Max Output Tokens without Temperature. The production-container walkthrough verified model changes and persisted output-token overrides using a synthetic connection. No real-provider request or physical-device/keyboard testing is claimed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:39 +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#7325
No description provided.