[PR #3150] [MERGED] [codex] Add server extensions and chat settings fixes #5816

Closed
opened 2026-10-22 04:19:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: codex/echo-chamber-agent-behavior


📝 Commits (3)

  • 4210be3 Add server extensions and chat settings fixes
  • dd38c52 Merge branch 'staging' into codex/echo-chamber-agent-behavior
  • 28b9505 Address CodeRabbit feedback on server extensions

📊 Changes

21 files changed (+1214 additions, -149 deletions)

View changed files

📝 docs/EXTENSIONS.md (+70 -8)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+14 -1)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+12 -15)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+0 -7)
📝 packages/client/src/components/chat/RoleplayHUDActionsMenu.tsx (+59 -38)
📝 packages/client/src/components/layout/CustomThemeInjector.tsx (+8 -2)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+147 -18)
📝 packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx (+127 -1)
📝 packages/client/src/features/chat-settings/sections/DiscordMirrorSection.tsx (+7 -2)
📝 packages/client/src/lib/extension-transfer.ts (+30 -12)
📝 packages/server/src/app.ts (+10 -3)
📝 packages/server/src/db/migrate.ts (+12 -0)
📝 packages/server/src/db/schema/extensions.ts (+2 -0)
📝 packages/server/src/routes/extensions.routes.ts (+23 -7)
📝 packages/server/src/routes/generate.routes.ts (+326 -27)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+6 -1)
➕ packages/server/src/services/extensions/server-extension-runtime.ts (+311 -0)
📝 packages/server/src/services/generation/prompt-message-scope.ts (+1 -0)
📝 packages/server/src/services/storage/extensions.storage.ts (+14 -2)
📝 packages/shared/src/schemas/extension.schema.ts (+23 -1)

...and 1 more files

📄 Description

Linked issue

No linked issue yet; this PR was opened from maintainer request in chat. A tracking issue should be opened before final submission if needed.

Why this change

This bundles the recent maintainer-requested fixes for Roleplay agent behavior, image captioning for non-vision chat models, connected-chat settings polish, and the new trusted server-side extension capability in Settings -> Extensions.

What changed

  • Removed the Echo Chamber on/off affordances from Roleplay HUD paths so Echo Chamber follows agent membership in the chat.
  • Kept agent activity focused on the selected agent's latest trigger and made the custom-output activity area collapsible.
  • Added Image Captioning advanced parameters and server prompt plumbing so images can be described through a selected connection when the chat model does not support images.
  • Removed the extra Connected Chats spacing between Allow character DMs and Discord mirror settings.
  • Added browser/server extension runtime metadata, DB migration fields, server-extension import/export support, trusted server runtime startup/reload handling, and docs.
  • Prevented server extensions from being injected by the browser extension loader.

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 notes

Automated checks run by Codex:

  • pnpm --filter @marinara-engine/shared lint
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm --filter @marinara-engine/client build
  • pnpm check
  • git diff --check
  • Schema smoke: valid server extension accepted; server extension without serverJs rejected.

Manual browser verification is still needed before marking this PR ready for review.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Docs updated:

  • docs/EXTENSIONS.md documents browser vs trusted server extensions, server manifest fields, import notes, and runtime helper APIs.

No version or release metadata changes included.

UI evidence (if applicable)

Not captured yet. Recommended manual evidence before review:

  • Settings -> Extensions with Browser/Server extension rows and server status badge.
  • Roleplay HUD agent menu with Echo Chamber removal behavior.
  • Chat Settings advanced Image Captioning toggle and connection selector.

Summary by CodeRabbit

  • New Features

    • Added support for server-based extensions alongside browser extensions, including clearer import, enablement, and status handling in the app.
    • Added image captioning controls in chat settings and caption-aware image handling during conversation generation.
    • Improved roleplay activity views to show the latest relevant custom agent output.
  • Bug Fixes

    • Fixed extension injection so server extensions no longer load browser-only styles or scripts.
    • Improved extension updates so server extensions reload automatically when changed.
  • Documentation

    • Expanded extension documentation with updated package format, capability details, and server extension examples.

🔄 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/3150 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/2/2026 **Status:** ✅ Merged **Merged:** 7/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/echo-chamber-agent-behavior` --- ### 📝 Commits (3) - [`4210be3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4210be3142e92d36c91ec3fe252d564c6dbc42c2) Add server extensions and chat settings fixes - [`dd38c52`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dd38c526515a4254ae9fc55ece480c0339c7b71d) Merge branch 'staging' into codex/echo-chamber-agent-behavior - [`28b9505`](https://github.com/Pasta-Devs/Marinara-Engine/commit/28b950584168d89c1d2888ae90297565f095684c) Address CodeRabbit feedback on server extensions ### 📊 Changes **21 files changed** (+1214 additions, -149 deletions) <details> <summary>View changed files</summary> 📝 `docs/EXTENSIONS.md` (+70 -8) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+14 -1) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+12 -15) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+0 -7) 📝 `packages/client/src/components/chat/RoleplayHUDActionsMenu.tsx` (+59 -38) 📝 `packages/client/src/components/layout/CustomThemeInjector.tsx` (+8 -2) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+147 -18) 📝 `packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx` (+127 -1) 📝 `packages/client/src/features/chat-settings/sections/DiscordMirrorSection.tsx` (+7 -2) 📝 `packages/client/src/lib/extension-transfer.ts` (+30 -12) 📝 `packages/server/src/app.ts` (+10 -3) 📝 `packages/server/src/db/migrate.ts` (+12 -0) 📝 `packages/server/src/db/schema/extensions.ts` (+2 -0) 📝 `packages/server/src/routes/extensions.routes.ts` (+23 -7) 📝 `packages/server/src/routes/generate.routes.ts` (+326 -27) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+6 -1) ➕ `packages/server/src/services/extensions/server-extension-runtime.ts` (+311 -0) 📝 `packages/server/src/services/generation/prompt-message-scope.ts` (+1 -0) 📝 `packages/server/src/services/storage/extensions.storage.ts` (+14 -2) 📝 `packages/shared/src/schemas/extension.schema.ts` (+23 -1) _...and 1 more files_ </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue yet; this PR was opened from maintainer request in chat. A tracking issue should be opened before final submission if needed. ## Why this change This bundles the recent maintainer-requested fixes for Roleplay agent behavior, image captioning for non-vision chat models, connected-chat settings polish, and the new trusted server-side extension capability in Settings -> Extensions. ## What changed - Removed the Echo Chamber on/off affordances from Roleplay HUD paths so Echo Chamber follows agent membership in the chat. - Kept agent activity focused on the selected agent's latest trigger and made the custom-output activity area collapsible. - Added Image Captioning advanced parameters and server prompt plumbing so images can be described through a selected connection when the chat model does not support images. - Removed the extra Connected Chats spacing between Allow character DMs and Discord mirror settings. - Added browser/server extension runtime metadata, DB migration fields, server-extension import/export support, trusted server runtime startup/reload handling, and docs. - Prevented server extensions from being injected by the browser extension loader. ## 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 notes Automated checks run by Codex: - `pnpm --filter @marinara-engine/shared lint` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client lint` - `pnpm --filter @marinara-engine/client build` - `pnpm check` - `git diff --check` - Schema smoke: valid server extension accepted; server extension without `serverJs` rejected. Manual browser verification is still needed before marking this PR ready for review. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Docs updated: - `docs/EXTENSIONS.md` documents browser vs trusted server extensions, server manifest fields, import notes, and runtime helper APIs. No version or release metadata changes included. ## UI evidence (if applicable) Not captured yet. Recommended manual evidence before review: - Settings -> Extensions with Browser/Server extension rows and server status badge. - Roleplay HUD agent menu with Echo Chamber removal behavior. - Chat Settings advanced Image Captioning toggle and connection selector. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for server-based extensions alongside browser extensions, including clearer import, enablement, and status handling in the app. * Added image captioning controls in chat settings and caption-aware image handling during conversation generation. * Improved roleplay activity views to show the latest relevant custom agent output. * **Bug Fixes** * Fixed extension injection so server extensions no longer load browser-only styles or scripts. * Improved extension updates so server extensions reload automatically when changed. * **Documentation** * Expanded extension documentation with updated package format, capability details, and server extension examples. <!-- 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-22 04:19:47 +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#5816
No description provided.