[PR #4736] [MERGED] fix: address assigned issue sweep #6481

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4718-4734


📝 Commits (6)

  • c84220e chore: start assigned issue sweep
  • ed4e89d fix: address assigned issue sweep
  • f73f82f fix: apply CodeRabbit review refinements
  • c649b57 fix: keep queued agent image settings consistent
  • 6666838 fix: serialize agent image setting writes
  • d23c409 fix: make agent removal terminal in image queue

📊 Changes

21 files changed (+665 additions, -92 deletions)

View changed files

📝 CHANGELOG.md (+9 -0)
📝 docs/extending/personal-extensions.md (+2 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+175 -42)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+10 -0)
📝 packages/client/src/components/layout/PersonalExtensionInjector.tsx (+3 -0)
📝 packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx (+37 -6)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts (+3 -3)
➕ packages/client/src/lib/personal-extension-traffic.ts (+82 -0)
➕ packages/client/src/lib/serialized-mutation-queue.ts (+18 -0)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 packages/server/src/routes/generate.routes.ts (+21 -9)
📝 packages/server/src/routes/generate/dry-run-route.ts (+2 -3)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+8 -4)
📝 packages/server/src/services/extensions/personal-server-extension-runtime.ts (+1 -1)
📝 packages/server/src/services/generation/custom-agent-image-settings.ts (+32 -0)
📝 packages/shared/src/types/chat.ts (+4 -3)
📝 scripts/regressions/extension-security.regression.ts (+2 -2)
📝 scripts/regressions/open-issues.regression.ts (+102 -0)
📝 scripts/regressions/prompt.regression.ts (+71 -15)
📝 scripts/regressions/roleplay-streaming.regression.ts (+30 -4)

...and 1 more files

📄 Description

Why

This sweep addresses every currently open issue assigned to SpicyMarinara. The fixes keep each concern narrow: extend existing settings and prompt paths, isolate one query observer, add one launcher guard, and preserve existing trust/runtime behavior.

What changed

  • Added per-chat style overrides for custom image agents with chat/default fallback in main and retry generation.
  • Added attributed marinara.fetch, session traffic totals, recent rate, and sustained high-traffic visibility for full-page extensions.
  • Moved tracker sprite lookups onto the limit-keyed message peek query.
  • Preserved speaker attribution in individual Conversation group history.
  • Added a user-overridable 2 GB Termux Node heap default for large profiles.
  • Locked failed-generation prompt reconciliation to durable submission IDs.
  • Committed Echo Chamber size when pointer capture is lost.
  • Preserved Narrative Director push-story instructions at each individual responder boundary.
  • Fixed server-extension onCleanup storage writes exposed by the extension security proof.

Issues

Closes #4718
Closes #4720
Closes #4724
Closes #4726
Closes #4730
Closes #4731
Closes #4733
Closes #4734

Automated evidence

  • pnpm check
  • pnpm regression:prompt
  • Open-issue and Roleplay streaming regression scripts
  • pnpm regression:extensions-security
  • pnpm regression:docs
  • pnpm version:check
  • bash -n start-termux.sh
  • Full Playwright smoke run: 200 passed, 99 skipped, one unrelated saturated-run mobile composer timeout; its isolated rerun passed in 5 seconds. The desktop Echo Chamber persistence case passed in the full run.

Manual verification

  • Manually verify custom image-agent style selection and deleted-profile fallback in Chat Settings.
  • Manually verify attributed extension traffic totals and the sustained-rate badge.
  • Manually verify Narrative Director natural/random pushes for manual and queued individual group responses with Secret Plot on and off.
  • Manually verify Termux startup and a large-profile generation on an affected Android device.

Notes

Validation boxes remain unchecked for human verification. English extension documentation was updated; #4737 tracks the required docs-i18n mirror.

Summary by CodeRabbit

  • New Features

    • Custom image agents support per-chat image connection and style overrides.
    • Full-page extensions support tracked fetch requests, traffic metrics, and sustained high-rate warnings.
    • Conversation groups retain speaker labels and receive Narrative Director guidance.
    • Termux startup applies a safe memory limit while preserving custom settings.
  • Bug Fixes

    • Improved tracker pagination, failed-generation recovery, resize persistence, prompt deduplication, instruction retention, and shutdown storage writes.
    • Custom image generation now honors configured style profiles.
  • Documentation

    • Documented extension fetch usage and traffic attribution.

🔄 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/4736 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/7/2026 **Status:** ✅ Merged **Merged:** 8/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4718-4734` --- ### 📝 Commits (6) - [`c84220e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c84220e5e3477a8c063b2ce0270fe2610b723d5c) chore: start assigned issue sweep - [`ed4e89d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed4e89dd2f2f1c36d064ecb0406797850befd8a7) fix: address assigned issue sweep - [`f73f82f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f73f82fa68d1e93760585c9411c0469123be6edc) fix: apply CodeRabbit review refinements - [`c649b57`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c649b572eb7be01d0d55716e69b56f6cf787cc20) fix: keep queued agent image settings consistent - [`6666838`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6666838575aa646cc224e61441f448b4bdbce0c1) fix: serialize agent image setting writes - [`d23c409`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d23c4097fcd92fbee2e6f10b27af34e503099d1b) fix: make agent removal terminal in image queue ### 📊 Changes **21 files changed** (+665 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+9 -0) 📝 `docs/extending/personal-extensions.md` (+2 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+175 -42) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+10 -0) 📝 `packages/client/src/components/layout/PersonalExtensionInjector.tsx` (+3 -0) 📝 `packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx` (+37 -6) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts` (+3 -3) ➕ `packages/client/src/lib/personal-extension-traffic.ts` (+82 -0) ➕ `packages/client/src/lib/serialized-mutation-queue.ts` (+18 -0) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+21 -9) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+2 -3) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+8 -4) 📝 `packages/server/src/services/extensions/personal-server-extension-runtime.ts` (+1 -1) 📝 `packages/server/src/services/generation/custom-agent-image-settings.ts` (+32 -0) 📝 `packages/shared/src/types/chat.ts` (+4 -3) 📝 `scripts/regressions/extension-security.regression.ts` (+2 -2) 📝 `scripts/regressions/open-issues.regression.ts` (+102 -0) 📝 `scripts/regressions/prompt.regression.ts` (+71 -15) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+30 -4) _...and 1 more files_ </details> ### 📄 Description ## Why This sweep addresses every currently open issue assigned to SpicyMarinara. The fixes keep each concern narrow: extend existing settings and prompt paths, isolate one query observer, add one launcher guard, and preserve existing trust/runtime behavior. ## What changed - Added per-chat style overrides for custom image agents with chat/default fallback in main and retry generation. - Added attributed `marinara.fetch`, session traffic totals, recent rate, and sustained high-traffic visibility for full-page extensions. - Moved tracker sprite lookups onto the limit-keyed message peek query. - Preserved speaker attribution in individual Conversation group history. - Added a user-overridable 2 GB Termux Node heap default for large profiles. - Locked failed-generation prompt reconciliation to durable submission IDs. - Committed Echo Chamber size when pointer capture is lost. - Preserved Narrative Director push-story instructions at each individual responder boundary. - Fixed server-extension `onCleanup` storage writes exposed by the extension security proof. ## Issues Closes #4718 Closes #4720 Closes #4724 Closes #4726 Closes #4730 Closes #4731 Closes #4733 Closes #4734 ## Automated evidence - `pnpm check` - `pnpm regression:prompt` - Open-issue and Roleplay streaming regression scripts - `pnpm regression:extensions-security` - `pnpm regression:docs` - `pnpm version:check` - `bash -n start-termux.sh` - Full Playwright smoke run: 200 passed, 99 skipped, one unrelated saturated-run mobile composer timeout; its isolated rerun passed in 5 seconds. The desktop Echo Chamber persistence case passed in the full run. ## Manual verification - [ ] Manually verify custom image-agent style selection and deleted-profile fallback in Chat Settings. - [ ] Manually verify attributed extension traffic totals and the sustained-rate badge. - [ ] Manually verify Narrative Director natural/random pushes for manual and queued individual group responses with Secret Plot on and off. - [ ] Manually verify Termux startup and a large-profile generation on an affected Android device. ## Notes Validation boxes remain unchecked for human verification. English extension documentation was updated; #4737 tracks the required docs-i18n mirror. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Custom image agents support per-chat image connection and style overrides. - Full-page extensions support tracked fetch requests, traffic metrics, and sustained high-rate warnings. - Conversation groups retain speaker labels and receive Narrative Director guidance. - Termux startup applies a safe memory limit while preserving custom settings. - **Bug Fixes** - Improved tracker pagination, failed-generation recovery, resize persistence, prompt deduplication, instruction retention, and shutdown storage writes. - Custom image generation now honors configured style profiles. - **Documentation** - Documented extension fetch usage and traffic attribution. <!-- 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:50 +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#6481
No description provided.