[PR #4362] [MERGED] Fix current agent, Roleplay, image, chat, and triage issues #6347

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4362
Author: @SpicyMarinara
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/issue-sweep-4350-4361


📝 Commits (8)

  • d846579 chore: start issue sweep #4350-#4361
  • 3dd98cd fix: address issue sweep #4350-#4361
  • 58fbd40 fix: apply CodeRabbit review feedback
  • c186df7 fix: finalize triage review routing
  • d4409d1 fix: ignore non-base pull request edits in triage
  • 4003cf3 fix: use base ref presence for triage edits
  • 94aab04 fix: rerun approval check for owner comments
  • 693f711 fix: detect edited PR base changes explicitly

📊 Changes

32 files changed (+619 additions, -130 deletions)

View changed files

📝 .github/workflows/pull-request-triage.yml (+16 -5)
📝 CHANGELOG.md (+6 -0)
📝 README.md (+1 -1)
📝 docs/FAQ.md (+2 -2)
📝 docs/TROUBLESHOOTING.md (+1 -1)
📝 docs/agents/built-in-agents.md (+4 -4)
📝 docs/connections/providers-reference.md (+1 -1)
📝 docs/game/storyboard.md (+2 -2)
📝 docs/media/illustrator-agent.md (+1 -1)
📝 docs/media/image-providers.md (+8 -2)
📝 docs/roleplay/narrative-director.md (+1 -1)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+150 -23)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+20 -2)
📝 packages/client/src/hooks/use-generate.ts (+15 -11)
📝 packages/client/src/lib/agent-cadence.ts (+8 -8)
📝 packages/client/src/localization/locales/en.json (+18 -7)
📝 packages/server/src/routes/agents.routes.ts (+10 -8)
📝 packages/server/src/routes/connections.routes.ts (+11 -0)
📝 packages/server/src/routes/generate.routes.ts (+45 -31)
📝 packages/server/src/routes/generate/lorebook-keeper-utils.ts (+1 -0)

...and 12 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote staging to main.

Linked issues

Closes #4350
Closes #4351
Closes #4353
Closes #4357
Closes #4360
Closes #4361

Why this change

The current issue sweep exposed six small but user-visible gaps: Z.AI image generation was unavailable, multi-character post-processing Agents could lose responder identity, Professor Mari chats could only be deleted individually, Roleplay sends waited on cache cancellation before painting, Run Interval semantics differed between Agents, and unrelated PR activity could duplicate the outside-contributor approval status.

What changed

  • Added a native Z.AI text-to-image adapter for GLM-Image and CogView 4 using the existing image request, safe download, model-list, connection, and debug logging paths.
  • Passed Name Prefix speaker segments to post-processing Agent prompts while preserving raw text for rewrite Agents.
  • Added compact selection and bulk deletion to Professor Mari chat history using the existing delete endpoint and confirmation dialog.
  • Inserted the optimistic Roleplay user message before awaiting query cancellation.
  • Centralized Run Interval gating on combined user and assistant message counts across built-in and custom Agents.
  • Filtered unrelated triage events so only one owner-approval status is produced for relevant staging activity.
  • Updated release notes, user documentation, localization, and focused regressions.

Validation evidence

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:issues
  • pnpm regression:roleplay
  • pnpm regression:docs
  • Pull Request Triage workflow YAML parse and git diff --check
  • pnpm smoke:ui: 165 passed and 88 intentionally skipped; one unrelated side-panel animation timing assertion missed under full-suite load and passed on an immediate isolated desktop rerun.

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

Manual verification needed

  • Manually verify Z.AI text-to-image generation with a live general API key.
  • Manually verify Professor Mari bulk selection and deletion on desktop and mobile.
  • Manually verify Roleplay sends render the user message immediately.
  • Manually verify outside-contributor owner approval transitions on GitHub.

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)

Translation follow-up: #4363

Summary by CodeRabbit

  • New Features
    • Added Z.AI as an image-generation provider, with model selection and setup guidance.
    • Professor Mari chat history now supports multi-selection and bulk deletion.
  • Bug Fixes
    • Submitted messages appear immediately while responses generate.
    • Agent and Roleplay intervals now count user and assistant messages.
    • Improved multi-character response formatting and Roleplay name-prefix handling.
    • Improved contributor approval and pull-request triage behavior.
  • Documentation
    • Updated storyboard, agent cadence, image-provider, and Z.AI setup documentation.

🔄 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/4362 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-sweep-4350-4361` --- ### 📝 Commits (8) - [`d846579`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d8465795ff71008f16785d603ba3b606480f93ba) chore: start issue sweep #4350-#4361 - [`3dd98cd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3dd98cd4ab8c6ab221aa2ae8fe8795d137e6ba60) fix: address issue sweep #4350-#4361 - [`58fbd40`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58fbd405facd8c0b000e6eebfde264c0ed03074c) fix: apply CodeRabbit review feedback - [`c186df7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c186df78a1c9abbb9ce03e28c33adfaa4a9d464e) fix: finalize triage review routing - [`d4409d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d4409d16a96103dbe8a0c65f739d82b55d488ef1) fix: ignore non-base pull request edits in triage - [`4003cf3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4003cf31fbe50932f44d131d3ccc6f73c25a5b3d) fix: use base ref presence for triage edits - [`94aab04`](https://github.com/Pasta-Devs/Marinara-Engine/commit/94aab0493b4b84bb5ffd4c0ac6a6a20669a36553) fix: rerun approval check for owner comments - [`693f711`](https://github.com/Pasta-Devs/Marinara-Engine/commit/693f711e32ef7bc0dcae6ce084774869fba8db1d) fix: detect edited PR base changes explicitly ### 📊 Changes **32 files changed** (+619 additions, -130 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-triage.yml` (+16 -5) 📝 `CHANGELOG.md` (+6 -0) 📝 `README.md` (+1 -1) 📝 `docs/FAQ.md` (+2 -2) 📝 `docs/TROUBLESHOOTING.md` (+1 -1) 📝 `docs/agents/built-in-agents.md` (+4 -4) 📝 `docs/connections/providers-reference.md` (+1 -1) 📝 `docs/game/storyboard.md` (+2 -2) 📝 `docs/media/illustrator-agent.md` (+1 -1) 📝 `docs/media/image-providers.md` (+8 -2) 📝 `docs/roleplay/narrative-director.md` (+1 -1) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+150 -23) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+20 -2) 📝 `packages/client/src/hooks/use-generate.ts` (+15 -11) 📝 `packages/client/src/lib/agent-cadence.ts` (+8 -8) 📝 `packages/client/src/localization/locales/en.json` (+18 -7) 📝 `packages/server/src/routes/agents.routes.ts` (+10 -8) 📝 `packages/server/src/routes/connections.routes.ts` (+11 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+45 -31) 📝 `packages/server/src/routes/generate/lorebook-keeper-utils.ts` (+1 -0) _...and 12 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote `staging` to `main`. ## Linked issues Closes #4350 Closes #4351 Closes #4353 Closes #4357 Closes #4360 Closes #4361 ## Why this change The current issue sweep exposed six small but user-visible gaps: Z.AI image generation was unavailable, multi-character post-processing Agents could lose responder identity, Professor Mari chats could only be deleted individually, Roleplay sends waited on cache cancellation before painting, Run Interval semantics differed between Agents, and unrelated PR activity could duplicate the outside-contributor approval status. ## What changed - Added a native Z.AI text-to-image adapter for GLM-Image and CogView 4 using the existing image request, safe download, model-list, connection, and debug logging paths. - Passed Name Prefix speaker segments to post-processing Agent prompts while preserving raw text for rewrite Agents. - Added compact selection and bulk deletion to Professor Mari chat history using the existing delete endpoint and confirmation dialog. - Inserted the optimistic Roleplay user message before awaiting query cancellation. - Centralized Run Interval gating on combined user and assistant message counts across built-in and custom Agents. - Filtered unrelated triage events so only one owner-approval status is produced for relevant staging activity. - Updated release notes, user documentation, localization, and focused regressions. ## Validation evidence - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:issues` - `pnpm regression:roleplay` - `pnpm regression:docs` - Pull Request Triage workflow YAML parse and `git diff --check` - `pnpm smoke:ui`: 165 passed and 88 intentionally skipped; one unrelated side-panel animation timing assertion missed under full-suite load and passed on an immediate isolated desktop rerun. ## 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` ### Manual verification needed - Manually verify Z.AI text-to-image generation with a live general API key. - Manually verify Professor Mari bulk selection and deletion on desktop and mobile. - Manually verify Roleplay sends render the user message immediately. - Manually verify outside-contributor owner approval transitions on GitHub. ## 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) Translation follow-up: #4363 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Z.AI as an image-generation provider, with model selection and setup guidance. * Professor Mari chat history now supports multi-selection and bulk deletion. * **Bug Fixes** * Submitted messages appear immediately while responses generate. * Agent and Roleplay intervals now count user and assistant messages. * Improved multi-character response formatting and Roleplay name-prefix handling. * Improved contributor approval and pull-request triage behavior. * **Documentation** * Updated storyboard, agent cadence, image-provider, and Z.AI setup documentation. <!-- 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:09:33 +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#6347
No description provided.