[PR #5503] [MERGED] fix: address SpicyMarinara assigned issue sweep #6787

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

📋 Pull Request Information

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

Base: staging ← Head: fix/spicy-assigned-sweep-5502-5474


📝 Commits (5)

  • 387677d chore: start assigned issue sweep
  • 940eb47 fix: resolve assigned issue sweep
  • ca9b78b fix: address review edge cases
  • b4f9bd5 test: cover chat tail projections
  • 1f6572b fix: preserve chat tail range ordering

📊 Changes

22 files changed (+421 additions, -88 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 packages/client/src/components/agents/AgentCatalogView.tsx (+52 -18)
📝 packages/client/src/components/chat/ChatBranchSelector.tsx (+1 -7)
📝 packages/client/src/components/chat/ChatInput.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -1)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+1 -1)
📝 packages/client/src/components/game/GameNarration.tsx (+10 -11)
📝 packages/client/src/components/game/GameSurface.tsx (+55 -33)
📝 packages/client/src/components/game/GameWidgetSetupEditor.tsx (+25 -1)
📝 packages/client/src/components/game/NewGameExperienceChooser.tsx (+6 -1)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+1 -1)
📝 packages/client/src/localization/locales/en.json (+6 -0)
📝 packages/client/src/stores/ui.store.ts (+7 -3)
📝 packages/server/package.json (+1 -1)
📝 packages/server/src/routes/chats.routes.ts (+2 -0)
📝 packages/server/src/routes/generate.routes.ts (+3 -1)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+56 -2)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+16 -6)
➕ scripts/regressions/assigned-issues-5474-5502.regression.ts (+46 -0)
📝 scripts/regressions/character-activity-agent.regression.ts (+26 -0)

...and 2 more files

📄 Description

Linked issues

Closes #5502
Closes #5501
Closes #5500
Closes #5499
Closes #5494
Closes #5477
Closes #5476
Closes #5474

Why this change

The current SpicyMarinara-owned queue spans a few small but user-visible failures: disabled Roleplay participants could still respond or collapse the group flow, Discovery Desk lost its selected Agent, Game state could retain stale narration and HUD identifiers, and Professor Mari lacked a safe structured way to read chats. Keeping them in one maintenance PR gives staging one coherent issue sweep without introducing new frameworks.

What changed

  • Keep Roleplay group behavior active with one enabled participant and limit Sequential queues to enabled characters.
  • Open the exact Discovery Desk package and filter the existing Writer, Tracker, and Misc catalog groups by supported chat mode.
  • Reuse the shared themed badge for Roleplay summary and branch counts.
  • Expose a normalized, unique Game HUD widget ID.
  • Key Game narration progress and processed state by message plus swipe, clear stale choices, restart invalid saved cursors, and omit narration cursors from new branches.
  • Add read-only chat list, get, message-range, and search actions to Professor Mari app_data using the existing chat command path.
  • Add focused regressions and Unreleased changelog entries.

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 local verification completed:

  • pnpm check
  • pnpm localization:check
  • Character activity, assigned issue sweep, and file-backed chat app_data regressions
  • UI smoke: 275 passed and 108 skipped; the disk-interrupted background case passed alone. The two remaining Agent-package UI failures reproduce unchanged on clean staging.

pnpm regression:prompt currently stops before assertions because the baseline runner cannot resolve the existing @/lib alias from packages/client/src/lib/local-notifications.ts; the same failure reproduces on clean staging.

Manual verification still requested:

  • Verify Roleplay Manual and Individual behavior with one enabled group character, plus Sequential behavior with disabled characters.
  • Verify Discovery Desk selection and catalog filters on desktop and mobile.
  • Rewind a Game turn with choices across swipes and edit a newly added HUD widget ID.
  • Ask Professor Mari to inspect a bounded chat message range.

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)

UI evidence

Manual browser verification is requested above; no static screenshots are attached.

Summary by CodeRabbit

  • New Features

    • Filter the agent catalog by conversation, roleplay, or game mode.
    • Open the catalog directly to a recommended agent.
    • Edit game widget IDs with automatic duplicate resolution.
    • Professor Mari can retrieve, paginate, and search chat data through expanded chat tools.
  • Bug Fixes

    • Improved roleplay controls when characters are disabled or only one remains.
    • Preserved game narration choices and position across rewinds and swipes.
    • Prevented stale narration results from affecting newer swipes.
    • Standardized summary and branch-count badge styling.

🔄 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/5503 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/24/2026 **Status:** ✅ Merged **Merged:** 8/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/spicy-assigned-sweep-5502-5474` --- ### 📝 Commits (5) - [`387677d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/387677d74748bc6f31d162f0457d1cea1c627446) chore: start assigned issue sweep - [`940eb47`](https://github.com/Pasta-Devs/Marinara-Engine/commit/940eb47ffdc4ffaa39171fe3c204014fb7715446) fix: resolve assigned issue sweep - [`ca9b78b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca9b78ba8ddc7ef40f533a5a4107d9dff4ef1d1d) fix: address review edge cases - [`b4f9bd5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4f9bd504b064fde1c1a320db7c202c7d4106411) test: cover chat tail projections - [`1f6572b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f6572b6919f122a054f9f898ab668d5a86de4eb) fix: preserve chat tail range ordering ### 📊 Changes **22 files changed** (+421 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+52 -18) 📝 `packages/client/src/components/chat/ChatBranchSelector.tsx` (+1 -7) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -1) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+1 -1) 📝 `packages/client/src/components/game/GameNarration.tsx` (+10 -11) 📝 `packages/client/src/components/game/GameSurface.tsx` (+55 -33) 📝 `packages/client/src/components/game/GameWidgetSetupEditor.tsx` (+25 -1) 📝 `packages/client/src/components/game/NewGameExperienceChooser.tsx` (+6 -1) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) 📝 `packages/client/src/stores/ui.store.ts` (+7 -3) 📝 `packages/server/package.json` (+1 -1) 📝 `packages/server/src/routes/chats.routes.ts` (+2 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+3 -1) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+56 -2) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+16 -6) ➕ `scripts/regressions/assigned-issues-5474-5502.regression.ts` (+46 -0) 📝 `scripts/regressions/character-activity-agent.regression.ts` (+26 -0) _...and 2 more files_ </details> ### 📄 Description ## Linked issues Closes #5502 Closes #5501 Closes #5500 Closes #5499 Closes #5494 Closes #5477 Closes #5476 Closes #5474 ## Why this change The current SpicyMarinara-owned queue spans a few small but user-visible failures: disabled Roleplay participants could still respond or collapse the group flow, Discovery Desk lost its selected Agent, Game state could retain stale narration and HUD identifiers, and Professor Mari lacked a safe structured way to read chats. Keeping them in one maintenance PR gives staging one coherent issue sweep without introducing new frameworks. ## What changed - Keep Roleplay group behavior active with one enabled participant and limit Sequential queues to enabled characters. - Open the exact Discovery Desk package and filter the existing Writer, Tracker, and Misc catalog groups by supported chat mode. - Reuse the shared themed badge for Roleplay summary and branch counts. - Expose a normalized, unique Game HUD widget ID. - Key Game narration progress and processed state by message plus swipe, clear stale choices, restart invalid saved cursors, and omit narration cursors from new branches. - Add read-only chat list, get, message-range, and search actions to Professor Mari app_data using the existing chat command path. - Add focused regressions and Unreleased changelog entries. ## 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 local verification completed: - `pnpm check` - `pnpm localization:check` - Character activity, assigned issue sweep, and file-backed chat app_data regressions - UI smoke: 275 passed and 108 skipped; the disk-interrupted background case passed alone. The two remaining Agent-package UI failures reproduce unchanged on clean staging. `pnpm regression:prompt` currently stops before assertions because the baseline runner cannot resolve the existing `@/lib` alias from `packages/client/src/lib/local-notifications.ts`; the same failure reproduces on clean staging. Manual verification still requested: - Verify Roleplay Manual and Individual behavior with one enabled group character, plus Sequential behavior with disabled characters. - Verify Discovery Desk selection and catalog filters on desktop and mobile. - Rewind a Game turn with choices across swipes and edit a newly added HUD widget ID. - Ask Professor Mari to inspect a bounded chat message range. ## 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) ## UI evidence Manual browser verification is requested above; no static screenshots are attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Filter the agent catalog by conversation, roleplay, or game mode. - Open the catalog directly to a recommended agent. - Edit game widget IDs with automatic duplicate resolution. - Professor Mari can retrieve, paginate, and search chat data through expanded chat tools. - **Bug Fixes** - Improved roleplay controls when characters are disabled or only one remains. - Preserved game narration choices and position across rewinds and swipes. - Prevented stale narration results from affecting newer swipes. - Standardized summary and branch-count badge styling. <!-- 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:13:43 +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#6787
No description provided.