[PR #5288] [MERGED] fix: address current staging issue sweep #6706

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issue-sweep-5285-5287


📝 Commits (8)

  • a24930c fix(roleplay): hide prior swipe media while regenerating
  • 06c119d feat(admin): add graceful server restart control
  • 4f122c0 fix(game): scope journal and clues to branches
  • 86104de chore(i18n): sort restart copy
  • 1e1e1c4 fix(admin): rate limit restart requests
  • bafa609 fix: harden restart and branch lineage
  • 079c8ea fix(admin): preserve active requests during restart
  • d6fb6e2 test: clean up restart regression server

📊 Changes

12 files changed (+456 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+45 -0)
📝 packages/client/src/localization/locales/en.json (+7 -0)
📝 packages/server/src/app.ts (+2 -0)
📝 packages/server/src/middleware/rate-limit.ts (+9 -0)
📝 packages/server/src/routes/admin.routes.ts (+54 -1)
📝 packages/server/src/routes/chats.routes.ts (+26 -0)
➕ packages/server/src/services/game/branch-state.ts (+123 -0)
➕ scripts/regressions/admin-server-restart.regression.ts (+75 -0)
📝 scripts/regressions/chat-branch-lineage.regression.ts (+91 -9)
➕ scripts/regressions/roleplay-swipe-media.regression.ts (+19 -0)

📄 Description

Why

The current issue sweep contains three user-facing problems: generated media leaks into a new Roleplay swipe while it is running, Game Mode branch changes retain future Journal/Clues state, and remote administrators cannot gracefully restart the server after maintenance. This combined staging PR keeps the fixes together as requested.

Changes

  • Hide prior swipe media immediately while a new Roleplay swipe regenerates, without changing the stored swipe media.
  • Add a confirmed, privileged restart control to Advanced Settings that closes Fastify/storage before relaunching the running Node command. Container installs defer relaunch to their supervisor.
  • Trim Journal data at a Game branch fork and replay copied list-widget commands from the original HUD definition so generated Clues follow the selected story point.

Closes #5285
Closes #5286
Closes #5287

Validation run

  • pnpm check — passed
  • pnpm localization:check — passed
  • Focused Roleplay swipe-media regression — passed
  • Focused admin restart regression — passed
  • Chat branch lineage regression — passed, including Journal and Clues assertions
  • pnpm smoke:ui — all 360 cases ran, but the existing broad harness reported unrelated failures across Home, Professor Mari, accents, and other untouched surfaces, then hung during teardown; the affected focused regressions and repository check are green

Test plan

  • Manually verify a new Roleplay swipe hides the prior swipe image and swiping back restores it.
  • Manually verify an authorized remote restart from Advanced Settings on a launcher-based install.
  • Manually verify Journal and generated Clues follow a Game branch created from an earlier turn.
  • Manually verify a Docker Compose restart returns through its configured restart policy.

Summary by CodeRabbit

  • New Features

    • Added a searchable “Restart Server” option in Advanced Settings with confirmation, success feedback, and error reporting.
    • Server restarts now shut down gracefully and limit repeated requests.
  • Bug Fixes

    • Game branches now restore journal entries and HUD lists at the selected story point.
    • Fixed roleplay swipe images remaining visible while replacement content is generated.
    • Regenerating messages now properly hides storyboard content during streaming.

🔄 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/5288 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-5285-5287` --- ### 📝 Commits (8) - [`a24930c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a24930cf0f0130904006d389f12cdbaf411db244) fix(roleplay): hide prior swipe media while regenerating - [`06c119d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06c119de8562b259673a7bffb8fc511434a6489b) feat(admin): add graceful server restart control - [`4f122c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4f122c0cbc87e2431d4679f22e69af6f46870822) fix(game): scope journal and clues to branches - [`86104de`](https://github.com/Pasta-Devs/Marinara-Engine/commit/86104de477156e2126c696716d519997eafe52ef) chore(i18n): sort restart copy - [`1e1e1c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1e1e1c405a1d2a450855635fdf741f42c3bb0d22) fix(admin): rate limit restart requests - [`bafa609`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bafa6091d9f2ecfe89e39f229eb4e64a0dd27399) fix: harden restart and branch lineage - [`079c8ea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/079c8ea97dc6b7d77b509274401d3661e0e74683) fix(admin): preserve active requests during restart - [`d6fb6e2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6fb6e23bdb49560f494649b8e12548cb4d43255) test: clean up restart regression server ### 📊 Changes **12 files changed** (+456 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+45 -0) 📝 `packages/client/src/localization/locales/en.json` (+7 -0) 📝 `packages/server/src/app.ts` (+2 -0) 📝 `packages/server/src/middleware/rate-limit.ts` (+9 -0) 📝 `packages/server/src/routes/admin.routes.ts` (+54 -1) 📝 `packages/server/src/routes/chats.routes.ts` (+26 -0) ➕ `packages/server/src/services/game/branch-state.ts` (+123 -0) ➕ `scripts/regressions/admin-server-restart.regression.ts` (+75 -0) 📝 `scripts/regressions/chat-branch-lineage.regression.ts` (+91 -9) ➕ `scripts/regressions/roleplay-swipe-media.regression.ts` (+19 -0) </details> ### 📄 Description ## Why The current issue sweep contains three user-facing problems: generated media leaks into a new Roleplay swipe while it is running, Game Mode branch changes retain future Journal/Clues state, and remote administrators cannot gracefully restart the server after maintenance. This combined staging PR keeps the fixes together as requested. ## Changes - Hide prior swipe media immediately while a new Roleplay swipe regenerates, without changing the stored swipe media. - Add a confirmed, privileged restart control to Advanced Settings that closes Fastify/storage before relaunching the running Node command. Container installs defer relaunch to their supervisor. - Trim Journal data at a Game branch fork and replay copied list-widget commands from the original HUD definition so generated Clues follow the selected story point. Closes #5285 Closes #5286 Closes #5287 ## Validation run - pnpm check — passed - pnpm localization:check — passed - Focused Roleplay swipe-media regression — passed - Focused admin restart regression — passed - Chat branch lineage regression — passed, including Journal and Clues assertions - pnpm smoke:ui — all 360 cases ran, but the existing broad harness reported unrelated failures across Home, Professor Mari, accents, and other untouched surfaces, then hung during teardown; the affected focused regressions and repository check are green ## Test plan - [ ] Manually verify a new Roleplay swipe hides the prior swipe image and swiping back restores it. - [ ] Manually verify an authorized remote restart from Advanced Settings on a launcher-based install. - [ ] Manually verify Journal and generated Clues follow a Game branch created from an earlier turn. - [ ] Manually verify a Docker Compose restart returns through its configured restart policy. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a searchable “Restart Server” option in Advanced Settings with confirmation, success feedback, and error reporting. * Server restarts now shut down gracefully and limit repeated requests. * **Bug Fixes** * Game branches now restore journal entries and HUD lists at the selected story point. * Fixed roleplay swipe images remaining visible while replacement content is generated. * Regenerating messages now properly hides storyboard content during streaming. <!-- 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:12:56 +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#6706
No description provided.