[PR #1052] [MERGED] Fix max output token parameter limit #4902

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1052
Author: @cha1latte
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-1038-max-output-tokens-d


📝 Commits (1)

  • 17772a1 Fix max output token parameter limit

📊 Changes

4 files changed (+14 additions, -8 deletions)

View changed files

➕ docs/pr-evidence/issue-1038/after.png (+0 -0)
➕ docs/pr-evidence/issue-1038/before.png (+0 -0)
➕ docs/pr-evidence/issue-1038/invalid-after.png (+0 -0)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+14 -8)

📄 Description

Linked issue

Closes #1038

Why this change

  • Advanced Parameters rejected Max Output Tokens values above 32768 by silently restoring the previous value, which made a 35000 edit appear to clamp back to 25000 without telling the user why.

What changed

  • Raises the Advanced Parameters max-output-token editor limit to 128000, matching the largest model output values Marinara already advertises.
  • Shows an inline range error for invalid numeric parameter edits instead of silently reverting the draft value.

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

Manual verification notes

  • Codex reproduced the original component path with a Vite/Playwright harness importing the production GenerationParametersFields editor: starting from saved maxTokens: 25000, entering 35000 reverted to 25000 before the fix.
  • Codex reran the same harness after the fix: entering 35000 saved and displayed 35000.
  • Codex checked the invalid edge path: entering 150000 leaves the draft visible, keeps saved maxTokens at 25000, and shows Enter a value from 1 to 128,000.
  • pnpm check passed locally.
  • Bunny review passed before opening this draft PR.
  • Raw evidence image URLs were verified with HTTP 200 before opening the PR.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Before: 35000 silently reverts to the prior 25000 value.

before

After: 35000 is preserved and saved.

after

Invalid edge case: values above 128000 are visibly rejected.

invalid after


🔄 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/1052 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/20/2026 **Status:** ✅ Merged **Merged:** 5/20/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-1038-max-output-tokens-d` --- ### 📝 Commits (1) - [`17772a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/17772a156ed3ce4f3502d32e4451a2e81fb2f4a3) Fix max output token parameter limit ### 📊 Changes **4 files changed** (+14 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-1038/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-1038/before.png` (+0 -0) ➕ `docs/pr-evidence/issue-1038/invalid-after.png` (+0 -0) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+14 -8) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1038 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Advanced Parameters rejected `Max Output Tokens` values above `32768` by silently restoring the previous value, which made a `35000` edit appear to clamp back to `25000` without telling the user why. ## What changed <!-- List the key changes in this PR --> - Raises the Advanced Parameters max-output-token editor limit to `128000`, matching the largest model output values Marinara already advertises. - Shows an inline range error for invalid numeric parameter edits instead of silently reverting the draft value. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex reproduced the original component path with a Vite/Playwright harness importing the production `GenerationParametersFields` editor: starting from saved `maxTokens: 25000`, entering `35000` reverted to `25000` before the fix. - Codex reran the same harness after the fix: entering `35000` saved and displayed `35000`. - Codex checked the invalid edge path: entering `150000` leaves the draft visible, keeps saved `maxTokens` at `25000`, and shows `Enter a value from 1 to 128,000.` - `pnpm check` passed locally. - Bunny review passed before opening this draft PR. - Raw evidence image URLs were verified with HTTP `200` before opening the PR. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Before: `35000` silently reverts to the prior `25000` value. ![before](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/17772a156ed3ce4f3502d32e4451a2e81fb2f4a3/docs/pr-evidence/issue-1038/before.png) After: `35000` is preserved and saved. ![after](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/17772a156ed3ce4f3502d32e4451a2e81fb2f4a3/docs/pr-evidence/issue-1038/after.png) Invalid edge case: values above `128000` are visibly rejected. ![invalid after](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/17772a156ed3ce4f3502d32e4451a2e81fb2f4a3/docs/pr-evidence/issue-1038/invalid-after.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:35 +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#4902
No description provided.