[PR #4573] [MERGED] Fix assigned issue sweep for folders, assets, and agent menus #6429

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issue-sweep-4568-4570


📝 Commits (4)

  • e9aad66 Remember agent menu collapse state
  • a021494 Randomize equally matched game assets
  • cec637e Let Helper Mari move characters into folders
  • b70189a Address character folder review feedback

📊 Changes

5 files changed (+287 additions, -13 deletions)

View changed files

📝 packages/client/src/components/chat/AgentSettingsControls.tsx (+11 -2)
📝 packages/client/src/lib/asset-fuzzy-match.ts (+6 -3)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+123 -1)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+11 -6)
📝 scripts/regressions/open-issues.regression.ts (+136 -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 issues

Closes #4568
Closes #4569
Closes #4570

Why this change

Three assigned workflows were behaving inconsistently: Professor Mari could not place characters into folders, equally good fuzzy game-asset matches always favored the first file, and Game mode agent menus forgot their collapsed state whenever Chat Settings reopened.

What changed

  • Added structured character-folder listing and moves to Professor Mari's app_data tool. Moves use the existing reversible mutation journal, remove stale membership from other folders, and reject ambiguous folder names.
  • Randomly select among equally scored fuzzy asset matches while keeping exact matches and generated-background fallback unchanged.
  • Persist each agent settings card's expanded/collapsed state through the existing Chat Settings preference map.
  • Added real temporary-database regression coverage for listing folders and moving a character between them.

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

Focused automated checks completed:

  • pnpm build:shared && pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client exec eslint src/components/chat/AgentSettingsControls.tsx src/lib/asset-fuzzy-match.ts
  • Deterministic inline coverage for first/last equal-score fuzzy candidates and unknown-background fallback
  • git diff --check

Manual verification notes

  • Manual browser verification remains for the maintainer. The folder behavior is covered through the real temporary-database mutation path; the UI changes are small state and selection-logic fixes.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No user-facing documentation, localization copy, or release metadata changed.

UI evidence (if applicable)

No visual redesign. The agent-menu change only restores a previously selected collapsed state.

Summary by CodeRabbit

  • New Features

    • Organize characters into folders and move them between folders by name or ID.
    • List and manage character folders through the assistant.
    • Settings cards now remember their expanded or collapsed state.
  • Improvements

    • Asset matching now randomly selects among equally suitable matches.
  • Bug Fixes

    • Improved folder moves with validation for missing folders, duplicate names, and concurrent updates.

🔄 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/4573 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issue-sweep-4568-4570` --- ### 📝 Commits (4) - [`e9aad66`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e9aad663a9389d915c585b58065bf53fe061fdf8) Remember agent menu collapse state - [`a021494`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a021494619cc3bd47a267b8738d094ffaaa1f146) Randomize equally matched game assets - [`cec637e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cec637ec607e02d23ecd7a475d3db6e08183243c) Let Helper Mari move characters into folders - [`b70189a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b70189a7635ccf66a87638ba617593375c9a0e67) Address character folder review feedback ### 📊 Changes **5 files changed** (+287 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/AgentSettingsControls.tsx` (+11 -2) 📝 `packages/client/src/lib/asset-fuzzy-match.ts` (+6 -3) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+123 -1) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+11 -6) 📝 `scripts/regressions/open-issues.regression.ts` (+136 -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`. ## Linked issues Closes #4568 Closes #4569 Closes #4570 ## Why this change Three assigned workflows were behaving inconsistently: Professor Mari could not place characters into folders, equally good fuzzy game-asset matches always favored the first file, and Game mode agent menus forgot their collapsed state whenever Chat Settings reopened. ## What changed - Added structured character-folder listing and moves to Professor Mari's `app_data` tool. Moves use the existing reversible mutation journal, remove stale membership from other folders, and reject ambiguous folder names. - Randomly select among equally scored fuzzy asset matches while keeping exact matches and generated-background fallback unchanged. - Persist each agent settings card's expanded/collapsed state through the existing Chat Settings preference map. - Added real temporary-database regression coverage for listing folders and moving a character between them. ## 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` Focused automated checks completed: - `pnpm build:shared && pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client exec eslint src/components/chat/AgentSettingsControls.tsx src/lib/asset-fuzzy-match.ts` - Deterministic inline coverage for first/last equal-score fuzzy candidates and unknown-background fallback - `git diff --check` ### Manual verification notes - Manual browser verification remains for the maintainer. The folder behavior is covered through the real temporary-database mutation path; the UI changes are small state and selection-logic fixes. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No user-facing documentation, localization copy, or release metadata changed. ## UI evidence (if applicable) No visual redesign. The agent-menu change only restores a previously selected collapsed state. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Organize characters into folders and move them between folders by name or ID. * List and manage character folders through the assistant. * Settings cards now remember their expanded or collapsed state. * **Improvements** * Asset matching now randomly selects among equally suitable matches. * **Bug Fixes** * Improved folder moves with validation for missing folders, duplicate names, and concurrent updates. <!-- 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:10:20 +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#6429
No description provided.