[PR #4884] [MERGED] Fix assigned generation, game, and chat regressions #6528

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4879-4883


📝 Commits (8)

  • 806dac8 Fix disabled generation parameter sends
  • 9ad15cc Persist Echo Chamber position per chat
  • 553f7e6 Record fallback generation provenance
  • b2e4b58 Use character sheets in game combat
  • 6e47da2 Apply game image prompt configuration
  • dd9e66f Harden assigned regression fixes
  • d014056 Address follow-up review edge cases
  • d269973 Reject malformed combat numeric values

📊 Changes

12 files changed (+724 additions, -253 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 e2e/core-flows.e2e.ts (+101 -5)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+10 -2)
📝 packages/client/src/components/game/GameSurface.tsx (+334 -221)
📝 packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx (+5 -0)
📝 packages/client/src/stores/ui.store.ts (+46 -2)
📝 packages/server/src/routes/game.routes.ts (+91 -13)
📝 packages/server/src/routes/generate.routes.ts (+13 -2)
📝 packages/server/src/services/generation/provider-generation-runtime.ts (+7 -1)
📝 packages/server/src/services/llm/connection-fallback-provider.ts (+72 -5)
📝 scripts/regressions/prompt.regression.ts (+28 -1)
📝 scripts/regressions/provider-compat.regression.ts (+12 -1)

📄 Description

Important

This assigned-issue sweep targets staging and keeps each fix deliberately focused.

Linked issues

Closes #4879
Closes #4880
Closes #4881
Closes #4882
Closes #4883

Why this change

Five user-facing regressions could make Marinara report the wrong generating model, ignore configured Game image prompts and character sheets, forget Echo Chamber placement, or send a disabled generation parameter. This PR corrects those behaviors without broad refactors.

What changed

  • Records the provider and model that actually produced a message after a connection fallback.
  • Applies Game asset prompt overrides, the selected Illustrator prompt template, and the Illustrator image connection to automatic and manual Game image generation. Explicit custom prompt settings activate the existing prompt-director path even if its general toggle is off, while image-only setups continue without optional rewriting.
  • Seeds Game combatants from saved character-sheet levels, resources, combat stats, and typed abilities; preserves zero HP and matches legacy card-name variants.
  • Persists the Echo Chamber corner per chat and flushes layout changes immediately.
  • Makes the generation-parameter enable switches authoritative, so disabled Verbosity is omitted even when a preset retains a selected value.
  • Adds focused regression and browser coverage, plus release-note entries under Unreleased.

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

Verification notes

Automated checks completed by the authoring agent:

  • pnpm check
  • pnpm regression:providers
  • pnpm regression:prompt
  • Targeted desktop Playwright coverage for per-chat Echo Chamber persistence, UI-store migration, character-sheet combat parsing and hydration, and Game character-sheet Retry behavior (4 passed)

The complete UI smoke suite was also sampled during development; unrelated fixture and selector timeouts made that broad run noisy, so the affected scenarios were corrected where needed and rerun in isolation successfully.

Manual browser verification remains for the maintainer.

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)

No user-facing documentation or version files changed. CHANGELOG.md contains the five Unreleased fix entries.

UI evidence (if applicable)

Focused Playwright scenarios cover the changed persisted UI behavior; maintainers should manually verify the final visual state in their normal local setup.

Summary by CodeRabbit

  • New Features

    • Game combat now uses saved character cards for stats, resources, abilities, levels, and portraits.
    • Game image generation supports configured Illustrator prompt templates and customized prompt settings.
    • Echo Chamber positions can be saved separately for each chat.
    • Generation records the provider and model actually used, including fallback services.
  • Bug Fixes

    • Chat generation-parameter toggles now persist reliably.
    • Experience-driven games provide improved controls and hide unsupported interface elements.

🔄 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/4884 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4879-4883` --- ### 📝 Commits (8) - [`806dac8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/806dac88c4794a3407923bb417c02fe69b0e5474) Fix disabled generation parameter sends - [`9ad15cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9ad15cc958a2914acd873185126f29bcd9b2832b) Persist Echo Chamber position per chat - [`553f7e6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/553f7e694d389b0b10e72282c6e78a98e66f44e0) Record fallback generation provenance - [`b2e4b58`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b2e4b58345f4a98f6c7591e946fddf8e1a8ae281) Use character sheets in game combat - [`6e47da2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e47da27c02ee5979edb0275113d9a206fc5c9aa) Apply game image prompt configuration - [`dd9e66f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dd9e66f9d7555a3ee5f00c7bd0ce1b74c1bd3670) Harden assigned regression fixes - [`d014056`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d014056fe4bdbe0f6b9291950dcf2ac5d692c55d) Address follow-up review edge cases - [`d269973`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d269973ae745af4e56e58771e3d59327426e2d51) Reject malformed combat numeric values ### 📊 Changes **12 files changed** (+724 additions, -253 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `e2e/core-flows.e2e.ts` (+101 -5) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+10 -2) 📝 `packages/client/src/components/game/GameSurface.tsx` (+334 -221) 📝 `packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx` (+5 -0) 📝 `packages/client/src/stores/ui.store.ts` (+46 -2) 📝 `packages/server/src/routes/game.routes.ts` (+91 -13) 📝 `packages/server/src/routes/generate.routes.ts` (+13 -2) 📝 `packages/server/src/services/generation/provider-generation-runtime.ts` (+7 -1) 📝 `packages/server/src/services/llm/connection-fallback-provider.ts` (+72 -5) 📝 `scripts/regressions/prompt.regression.ts` (+28 -1) 📝 `scripts/regressions/provider-compat.regression.ts` (+12 -1) </details> ### 📄 Description > [!IMPORTANT] > This assigned-issue sweep targets `staging` and keeps each fix deliberately focused. ## Linked issues Closes #4879 Closes #4880 Closes #4881 Closes #4882 Closes #4883 ## Why this change Five user-facing regressions could make Marinara report the wrong generating model, ignore configured Game image prompts and character sheets, forget Echo Chamber placement, or send a disabled generation parameter. This PR corrects those behaviors without broad refactors. ## What changed - Records the provider and model that actually produced a message after a connection fallback. - Applies Game asset prompt overrides, the selected Illustrator prompt template, and the Illustrator image connection to automatic and manual Game image generation. Explicit custom prompt settings activate the existing prompt-director path even if its general toggle is off, while image-only setups continue without optional rewriting. - Seeds Game combatants from saved character-sheet levels, resources, combat stats, and typed abilities; preserves zero HP and matches legacy card-name variants. - Persists the Echo Chamber corner per chat and flushes layout changes immediately. - Makes the generation-parameter enable switches authoritative, so disabled Verbosity is omitted even when a preset retains a selected value. - Adds focused regression and browser coverage, plus release-note entries under `Unreleased`. ## 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` ### Verification notes Automated checks completed by the authoring agent: - `pnpm check` - `pnpm regression:providers` - `pnpm regression:prompt` - Targeted desktop Playwright coverage for per-chat Echo Chamber persistence, UI-store migration, character-sheet combat parsing and hydration, and Game character-sheet Retry behavior (4 passed) The complete UI smoke suite was also sampled during development; unrelated fixture and selector timeouts made that broad run noisy, so the affected scenarios were corrected where needed and rerun in isolation successfully. Manual browser verification remains for the maintainer. ## 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) No user-facing documentation or version files changed. `CHANGELOG.md` contains the five `Unreleased` fix entries. ## UI evidence (if applicable) Focused Playwright scenarios cover the changed persisted UI behavior; maintainers should manually verify the final visual state in their normal local setup. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Game combat now uses saved character cards for stats, resources, abilities, levels, and portraits. * Game image generation supports configured Illustrator prompt templates and customized prompt settings. * Echo Chamber positions can be saved separately for each chat. * Generation records the provider and model actually used, including fallback services. * **Bug Fixes** * Chat generation-parameter toggles now persist reliably. * Experience-driven games provide improved controls and hide unsupported interface elements. <!-- 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-23 04:11:16 +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#6528
No description provided.