[PR #4952] [MERGED] fix: resolve assigned Professor Mari, image, agent, and lorebook issues #6552

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4947-4951


📝 Commits (3)

  • 75531d7 chore: start assigned issue sweep 4947-4951
  • d7d39ab fix: resolve assigned issue sweep
  • 9d4356b fix: enforce agent limit inside batch execution

📊 Changes

11 files changed (+228 additions, -44 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+6 -1)
📝 packages/client/src/hooks/use-lorebooks.ts (+1 -0)
📝 packages/server/src/services/agents/agent-concurrency.ts (+29 -0)
📝 packages/server/src/services/agents/agent-executor.ts (+38 -28)
📝 packages/server/src/services/agents/agent-pipeline.ts (+30 -10)
📝 packages/server/src/services/game/game-asset-generation.ts (+18 -4)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+0 -1)
📝 scripts/regressions/agent-runtime.regression.ts (+66 -0)
📝 scripts/regressions/open-issues.regression.ts (+19 -0)
📝 scripts/regressions/prompt.regression.ts (+16 -0)

📄 Description

Linked issues

Closes #4947
Closes #4948
Closes #4949
Closes #4950
Closes #4951

Why this change

This assigned-issue sweep fixes five user-visible regressions in Professor Mari, Game image prompting, Agent scheduling, and lorebook context cleanup. The changes preserve existing behavior while correcting the narrow boundaries where canceled state, provider-ready prompt data, connection limits, or deleted context were lost.

What changed

  • Keep canceled Professor Mari prompts out of the composer and accept the first message edit after generation; the existing latest-response retry remains available.
  • Preserve complete LLM-directed Game image prompts through style compilation and prompt review.
  • Require a concrete mutation claim before the Professor Mari workspace verification guard can fire.
  • Share the saved Max Parallel Agent Jobs ceiling across every provider request on the same connection, including isolated and mixed batch execution.
  • Refresh cached chat metadata after lorebook deletion so Active Context removes the deleted attachment immediately.
  • Add focused regressions and Unreleased changelog entries for all five issues.

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

Automated evidence:

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:agent-runtime
  • pnpm build:shared && pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts
  • GitHub pnpm-validate
  • GitHub container-build-test
  • CodeRabbit review, including follow-up review with no new actionable comments

Manual verification notes

  • Manually verify cancel, edit, and latest-response retry in embedded and floating Professor Mari.
  • Manually review a complete dynamic Game image prompt with a tagged style profile.
  • Manually verify same-connection post-processing agents do not exceed their saved parallel limit.
  • Manually delete an active chat lorebook and inspect Active Context.

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

Unreleased changelog entries are included. No user-facing documentation pages or release metadata changed.

UI evidence

No visual design changed; UI screenshots are not applicable to this behavior and state-management sweep.


🔄 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/4952 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/12/2026 **Status:** ✅ Merged **Merged:** 8/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4947-4951` --- ### 📝 Commits (3) - [`75531d7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/75531d754b0b92c915a75bf3bf42cdb0a357eb81) chore: start assigned issue sweep 4947-4951 - [`d7d39ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7d39abb98415bb3d7407654c1ee069c959dff76) fix: resolve assigned issue sweep - [`9d4356b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9d4356ba46f972444571e81d04551092825add7c) fix: enforce agent limit inside batch execution ### 📊 Changes **11 files changed** (+228 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+6 -1) 📝 `packages/client/src/hooks/use-lorebooks.ts` (+1 -0) 📝 `packages/server/src/services/agents/agent-concurrency.ts` (+29 -0) 📝 `packages/server/src/services/agents/agent-executor.ts` (+38 -28) 📝 `packages/server/src/services/agents/agent-pipeline.ts` (+30 -10) 📝 `packages/server/src/services/game/game-asset-generation.ts` (+18 -4) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+0 -1) 📝 `scripts/regressions/agent-runtime.regression.ts` (+66 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+19 -0) 📝 `scripts/regressions/prompt.regression.ts` (+16 -0) </details> ### 📄 Description ## Linked issues Closes #4947 Closes #4948 Closes #4949 Closes #4950 Closes #4951 ## Why this change This assigned-issue sweep fixes five user-visible regressions in Professor Mari, Game image prompting, Agent scheduling, and lorebook context cleanup. The changes preserve existing behavior while correcting the narrow boundaries where canceled state, provider-ready prompt data, connection limits, or deleted context were lost. ## What changed - Keep canceled Professor Mari prompts out of the composer and accept the first message edit after generation; the existing latest-response retry remains available. - Preserve complete LLM-directed Game image prompts through style compilation and prompt review. - Require a concrete mutation claim before the Professor Mari workspace verification guard can fire. - Share the saved Max Parallel Agent Jobs ceiling across every provider request on the same connection, including isolated and mixed batch execution. - Refresh cached chat metadata after lorebook deletion so Active Context removes the deleted attachment immediately. - Add focused regressions and Unreleased changelog entries for all five issues. ## 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 Automated evidence: - pnpm check - pnpm regression:prompt - pnpm regression:agent-runtime - pnpm build:shared && pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts - GitHub pnpm-validate - GitHub container-build-test - CodeRabbit review, including follow-up review with no new actionable comments ### Manual verification notes - Manually verify cancel, edit, and latest-response retry in embedded and floating Professor Mari. - Manually review a complete dynamic Game image prompt with a tagged style profile. - Manually verify same-connection post-processing agents do not exceed their saved parallel limit. - Manually delete an active chat lorebook and inspect Active Context. ## 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 Unreleased changelog entries are included. No user-facing documentation pages or release metadata changed. ## UI evidence No visual design changed; UI screenshots are not applicable to this behavior and state-management sweep. --- <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:30 +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#6552
No description provided.