[PR #7598] [MERGED] fix(ui): capitalize reasoning effort and verbosity tiers #7824

Closed
opened 2026-10-24 04:07:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7598
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/effort-tier-capitals


📝 Commits (2)

  • 8fe2398 fix(ui): capitalize reasoning effort and verbosity tiers
  • 6565533 test(e2e): expect the capitalized reasoning effort labels

📊 Changes

10 files changed (+187 additions, -24 deletions)

View changed files

📝 e2e/claude-opus55.e2e.ts (+1 -1)
📝 e2e/claude-sonnet55.e2e.ts (+1 -1)
📝 e2e/codex-reasoning-effort.e2e.ts (+6 -6)
📝 e2e/gpt6-models.e2e.ts (+1 -1)
📝 packages/client/src/components/chat/PeekPromptModal.tsx (+9 -5)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+21 -8)
📝 packages/client/src/lib/game-setup-share.ts (+8 -1)
➕ packages/client/src/lib/generation-level-label.ts (+12 -0)
📝 packages/client/src/localization/locales/en.json (+7 -0)
📝 scripts/regressions/generation-parameter-relevance.regression.ts (+121 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue: requested by the maintainer on 2026-10-14.

Why this change

  • The Reasoning Effort buttons showed their levels in lowercase (low, medium, high, xhigh, max), the raw values sent to the provider, while every other choice in the panel is capitalized. The maintainer asked for Low, Medium, High.

What changed

  • Reasoning Effort buttons now read Low, Medium, High, Extra high, Max (and Maximum in a preset with no connection picked) instead of low, medium, high, xhigh, max. This applies everywhere the parameter panel appears: connection settings, presets, chat Advanced Parameters, and the chat and game setup wizards. Off and Default are unchanged.
  • For consistency, the Verbosity buttons in the same panel now read Low, Medium, High, and the "Provider default: …" tooltips and "Effective: …" lines under both settings show the level the same way.
  • Peek Prompt's Reasoning and Verbosity pills and the Game setup summary (and the setup text it copies) use the same names.
  • A level a provider names itself that Marinara has no name for is shown with a capital first letter.
  • Nothing changes in what is saved or sent to the provider. "Extra high" reuses the name the image quality setting already uses for the same xhigh 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

Commands run by the agent:

  • node scripts/run-regressions.mjs --filter scripts/regressions/generation-parameter-relevance.regression.ts: passed. The new part renders the real parameter panel and checks the button names, tooltips and Effective lines. Run against the unchanged staging panel, it fails with low, xhigh and Provider default: low.
  • pnpm localization:check: passed.
  • pnpm check: passed.
  • Node regressions codex-reasoning-effort, experience-setup-config, world-save-state, hybrid-terrain-setup, game-ruleset-setup, world-story-scripts, open-issues: passed.
  • coderabbit review --agent --committed: completed with 0 findings.
  • Playwright, desktop Chromium, four existing specs that click effort buttons by their names:
    • The maintainer (SpicyMarinara) asked on 2026-10-14 for these labels to read Low, Medium, High, so the expected button names in these specs follow her request; the tests still check the same buttons and the same saved values.
    • e2e/codex-reasoning-effort.e2e.ts, e2e/claude-sonnet55.e2e.ts and e2e/gpt6-models.e2e.ts looked for low/medium/xhigh/max exactly. A second commit updates them to the new labels (the Codex list is now Default, Low, Medium, High, Extra high, Max; max → Max; medium → Medium): 6 of 6 pass on desktop Chromium.
    • e2e/claude-opus55.e2e.ts gets the same one-word update (medium → Medium). It already fails on staging before reaching that step (the model ID field check after reload), which this PR does not change.

Manual verification notes

  • The agent took Playwright screenshots (desktop Chromium, dark theme) of an OpenAI GPT-5.6 connection with custom defaults turned on, before and after the change. Nothing was checked by hand.
  • Manually verify in a browser: on an OpenAI GPT-5.x connection with "Use custom defaults" on, Reasoning Effort shows Off, Low, Medium, High, Extra high, Max and Verbosity shows None, Low, Medium, High.
  • Manually verify that a preset with no connection picked shows Maximum, and that saving a level still saves and sends the same value as before (check Peek Prompt or the request).
  • Manually verify a Codex connection: the Default button and the levels are capitalized.
  • Manually verify that Peek Prompt shows the Reasoning and Verbosity pills capitalized.
  • Manually verify that a game's setup summary shows Reasoning Effort and Verbosity capitalized.
  • Manually verify on a phone-width screen that the longer "Extra high" button wraps cleanly.
  • Manually verify in another UI language that the levels fall back to English until translated.

Docs and release impact

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

UI evidence (if applicable)

Connection settings, OpenAI GPT-5.6 with custom defaults on (from local Playwright screenshots, not attached):

Reasoning Effort Verbosity Effective line
Before Off · low · medium · high · xhigh · max None · low · medium · high Effective: max · built-in default
After Off · Low · Medium · High · Extra high · Max None · Low · Medium · High Effective: Max · built-in default

Summary by CodeRabbit

  • New Features
    • Reasoning-effort and verbosity levels now display with consistent, localized labels across generation settings, prompt details, and shared game setup information.
    • Provider-default levels are shown with clearer labels and tooltips.
  • Tests
    • Updated checks to match the capitalized reasoning-effort options and verify displayed labels, tooltips, and effective values.

🔄 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/7598 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/effort-tier-capitals` --- ### 📝 Commits (2) - [`8fe2398`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8fe239854b129c4e4c6de14144e1cf387d3caf28) fix(ui): capitalize reasoning effort and verbosity tiers - [`6565533`](https://github.com/Pasta-Devs/Marinara-Engine/commit/656553395630a8a10a453cc57c0f05135aec1e26) test(e2e): expect the capitalized reasoning effort labels ### 📊 Changes **10 files changed** (+187 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `e2e/claude-opus55.e2e.ts` (+1 -1) 📝 `e2e/claude-sonnet55.e2e.ts` (+1 -1) 📝 `e2e/codex-reasoning-effort.e2e.ts` (+6 -6) 📝 `e2e/gpt6-models.e2e.ts` (+1 -1) 📝 `packages/client/src/components/chat/PeekPromptModal.tsx` (+9 -5) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+21 -8) 📝 `packages/client/src/lib/game-setup-share.ts` (+8 -1) ➕ `packages/client/src/lib/generation-level-label.ts` (+12 -0) 📝 `packages/client/src/localization/locales/en.json` (+7 -0) 📝 `scripts/regressions/generation-parameter-relevance.regression.ts` (+121 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- 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 --> No linked issue: requested by the maintainer on 2026-10-14. ## Why this change <!-- What user problem, bug, or goal does this solve? --> - The Reasoning Effort buttons showed their levels in lowercase (low, medium, high, xhigh, max), the raw values sent to the provider, while every other choice in the panel is capitalized. The maintainer asked for Low, Medium, High. ## What changed <!-- List the key changes in this PR --> - Reasoning Effort buttons now read **Low, Medium, High, Extra high, Max** (and **Maximum** in a preset with no connection picked) instead of low, medium, high, xhigh, max. This applies everywhere the parameter panel appears: connection settings, presets, chat Advanced Parameters, and the chat and game setup wizards. Off and Default are unchanged. - For consistency, the Verbosity buttons in the same panel now read **Low, Medium, High**, and the "Provider default: …" tooltips and "Effective: …" lines under both settings show the level the same way. - Peek Prompt's Reasoning and Verbosity pills and the Game setup summary (and the setup text it copies) use the same names. - A level a provider names itself that Marinara has no name for is shown with a capital first letter. - Nothing changes in what is saved or sent to the provider. "Extra high" reuses the name the image quality setting already uses for the same `xhigh` 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` Commands run by the agent: - `node scripts/run-regressions.mjs --filter scripts/regressions/generation-parameter-relevance.regression.ts`: passed. The new part renders the real parameter panel and checks the button names, tooltips and Effective lines. Run against the unchanged staging panel, it fails with `low`, `xhigh` and `Provider default: low`. - `pnpm localization:check`: passed. - `pnpm check`: passed. - Node regressions `codex-reasoning-effort`, `experience-setup-config`, `world-save-state`, `hybrid-terrain-setup`, `game-ruleset-setup`, `world-story-scripts`, `open-issues`: passed. - `coderabbit review --agent --committed`: completed with 0 findings. - Playwright, desktop Chromium, four existing specs that click effort buttons by their names: - The maintainer (SpicyMarinara) asked on 2026-10-14 for these labels to read Low, Medium, High, so the expected button names in these specs follow her request; the tests still check the same buttons and the same saved values. - `e2e/codex-reasoning-effort.e2e.ts`, `e2e/claude-sonnet55.e2e.ts` and `e2e/gpt6-models.e2e.ts` looked for `low`/`medium`/`xhigh`/`max` exactly. A second commit updates them to the new labels (the Codex list is now Default, Low, Medium, High, Extra high, Max; `max` → `Max`; `medium` → `Medium`): **6 of 6 pass** on desktop Chromium. - `e2e/claude-opus55.e2e.ts` gets the same one-word update (`medium` → `Medium`). It already fails on staging before reaching that step (the model ID field check after reload), which this PR does not change. ### 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. --> - The agent took Playwright screenshots (desktop Chromium, dark theme) of an OpenAI GPT-5.6 connection with custom defaults turned on, before and after the change. Nothing was checked by hand. - Manually verify in a browser: on an OpenAI GPT-5.x connection with "Use custom defaults" on, Reasoning Effort shows Off, Low, Medium, High, Extra high, Max and Verbosity shows None, Low, Medium, High. - Manually verify that a preset with no connection picked shows Maximum, and that saving a level still saves and sends the same value as before (check Peek Prompt or the request). - Manually verify a Codex connection: the Default button and the levels are capitalized. - Manually verify that Peek Prompt shows the Reasoning and Verbosity pills capitalized. - Manually verify that a game's setup summary shows Reasoning Effort and Verbosity capitalized. - Manually verify on a phone-width screen that the longer "Extra high" button wraps cleanly. - Manually verify in another UI language that the levels fall back to English until translated. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Connection settings, OpenAI GPT-5.6 with custom defaults on (from local Playwright screenshots, not attached): | | Reasoning Effort | Verbosity | Effective line | | --- | --- | --- | --- | | Before | Off · low · medium · high · xhigh · max | None · low · medium · high | Effective: max · built-in default | | After | Off · Low · Medium · High · Extra high · Max | None · Low · Medium · High | Effective: Max · built-in default | <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Reasoning-effort and verbosity levels now display with consistent, localized labels across generation settings, prompt details, and shared game setup information. * Provider-default levels are shown with clearer labels and tooltips. * **Tests** * Updated checks to match the capitalized reasoning-effort options and verify displayed labels, tooltips, and effective values. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:07:54 +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#7824
No description provided.