[PR #8150] [MERGED] fix(agents): filter modes and clarify custom agent limits #8127

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8150
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/agents-library-controls


📝 Commits (3)

  • ceed0ca chore: start agent library controls issue work
  • c2914cf fix(agents): align mode filters and custom controls
  • 3fe8549 test(agents): cover renamed official configurations

📊 Changes

4 files changed (+245 additions, -25 deletions)

View changed files

➕ e2e/agent-library-controls.e2e.ts (+196 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+19 -0)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+28 -25)
📝 packages/client/src/localization/locales/en.json (+2 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #8146
Closes #8149
Partially addresses #8148: only the new custom-agent notice. Per-chat lorebook attachments are owned by a separate coordinated change, so this PR does not close #8148.

Owner: @SpicyMarinara; implemented by Codex.

Why this change

The installed Agents library checked only optional manifest mode restrictions, so it still showed Roleplay-only agents under Conversation and Game despite the runtime's stricter mode policy. Copying official agents also suggested that a prompt-based custom copy could inherit their dedicated functions.

What changed

  • You can no longer copy official agents, including installed package agents, from either the root or folder list. Custom agents retain Copy, and the action waits until package metadata is loaded so eligibility is known.
  • Conversation, Roleplay and Game filters use the shared runtime availability policy, preserve agents that support several modes, and combine with text search in root and folder views.
  • New custom-agent creation shows an accent-colored, theme-aware notice above Description explaining official agents' backend-supported functions. Its localized X control dismisses the notice without losing draft changes; it appears only for new custom agents.
  • Added browser regressions for mode filtering/search, root and folder copying, delayed package metadata, keyboard activation, and notice wrapping/dismissal in dark and light themes.

Validation

Final head: 3fe8549c6e0328ed3549140aa06f03839dfb5d01, Node 24.22.1 and pinned pnpm 12.15.0 through a task-local Corepack wrapper. Production code was validated at c2914cfc817133bb86d6754e195c047da850358c; the final commit only strengthens the official-agent test fixture, with E2E type checking and the full focused browser matrix rerun afterward.

  • pnpm check: passed, including localization, formatting, lint/type checks and the production build. The existing HomeProfessorMariChat.tsx missing-effect-dependency warning remains unrelated.
  • pnpm regression:ui e2e/agent-library-controls.e2e.ts e2e/agent-apps-category.e2e.ts --workers=2: 21/21 passed across desktop Chromium, mobile Chromium and mobile WebKit.
  • pnpm smoke:ui: 7/7 passed after the final code change.
  • node scripts/run-regressions.mjs --filter agent-duplicate-defaults: 1/1 passed, preserving custom-agent copy defaults.
  • git diff --check: passed.
  • Baseline reproduction on unchanged staging: Conversation incorrectly included Narrative Director/Music DJ, and official Copy was present in both root and folder views. The focused browser assertions failed on those behaviors before the patch.
  • Local CodeRabbit: completed on the full implementation, with a valid Copy-during-registry-load finding fixed and reviewed again. The final pass had two minor suggestions intentionally declined: removing the backend explanation contradicts the explicit request in #8148; the alleged package-owned custom-card path is excluded by the registry-derived type classification. useCapabilityAgentRegistry installs every manifest in BUILT_IN_AGENTS before publishing its result, customAgents excludes those types, and folder cards use the same metadata. The browser fixture now includes a renamed persisted official config and delayed metadata, and verifies that official Copy remains absent. This is not a claim of zero review findings.

The browser runs used controlled API fixtures and disposable app data on isolated ports 7840–7843. Screenshot inspection covered desktop dark/light themes and iPhone-sized WebKit. Native-device and container execution are not claimed by this PR.

  • 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

  • Manually verify installed official packages and custom agents under each mode filter, with search and folders.
  • Manually verify Copy is absent on official agents and still creates custom copies.
  • Manually verify the notice with your preferred accent and theme, and dismiss it after editing the draft.
  • Manually verify the changed controls on a physical phone; automated mobile runs are browser emulation.

Docs and release impact

This changes existing library controls and adds inline creation guidance. It does not alter downloadable agent definitions or release metadata.

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

UI evidence

Before/after screenshot gallery, including desktop light/dark and mobile WebKit

Source gist. The published HTML matches the local gallery bytes; screenshots are temporary PR evidence and are not committed to the repository.


🔄 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/8150 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/agents-library-controls` --- ### 📝 Commits (3) - [`ceed0ca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ceed0caf6ec7af25b7cb6eef498a6aa771b196ce) chore: start agent library controls issue work - [`c2914cf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c2914cfc817133bb86d6754e195c047da850358c) fix(agents): align mode filters and custom controls - [`3fe8549`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3fe8549c6e0328ed3549140aa06f03839dfb5d01) test(agents): cover renamed official configurations ### 📊 Changes **4 files changed** (+245 additions, -25 deletions) <details> <summary>View changed files</summary> ➕ `e2e/agent-library-controls.e2e.ts` (+196 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+19 -0) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+28 -25) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #8146 Closes #8149 Partially addresses #8148: only the new custom-agent notice. Per-chat lorebook attachments are owned by a separate coordinated change, so this PR does not close #8148. Owner: @SpicyMarinara; implemented by Codex. ## Why this change The installed Agents library checked only optional manifest mode restrictions, so it still showed Roleplay-only agents under Conversation and Game despite the runtime's stricter mode policy. Copying official agents also suggested that a prompt-based custom copy could inherit their dedicated functions. ## What changed - You can no longer copy official agents, including installed package agents, from either the root or folder list. Custom agents retain Copy, and the action waits until package metadata is loaded so eligibility is known. - Conversation, Roleplay and Game filters use the shared runtime availability policy, preserve agents that support several modes, and combine with text search in root and folder views. - New custom-agent creation shows an accent-colored, theme-aware notice above Description explaining official agents' backend-supported functions. Its localized X control dismisses the notice without losing draft changes; it appears only for new custom agents. - Added browser regressions for mode filtering/search, root and folder copying, delayed package metadata, keyboard activation, and notice wrapping/dismissal in dark and light themes. ## Validation Final head: `3fe8549c6e0328ed3549140aa06f03839dfb5d01`, Node 24.22.1 and pinned pnpm 12.15.0 through a task-local Corepack wrapper. Production code was validated at `c2914cfc817133bb86d6754e195c047da850358c`; the final commit only strengthens the official-agent test fixture, with E2E type checking and the full focused browser matrix rerun afterward. - `pnpm check`: passed, including localization, formatting, lint/type checks and the production build. The existing `HomeProfessorMariChat.tsx` missing-effect-dependency warning remains unrelated. - `pnpm regression:ui e2e/agent-library-controls.e2e.ts e2e/agent-apps-category.e2e.ts --workers=2`: 21/21 passed across desktop Chromium, mobile Chromium and mobile WebKit. - `pnpm smoke:ui`: 7/7 passed after the final code change. - `node scripts/run-regressions.mjs --filter agent-duplicate-defaults`: 1/1 passed, preserving custom-agent copy defaults. - `git diff --check`: passed. - Baseline reproduction on unchanged staging: Conversation incorrectly included Narrative Director/Music DJ, and official Copy was present in both root and folder views. The focused browser assertions failed on those behaviors before the patch. - Local CodeRabbit: completed on the full implementation, with a valid Copy-during-registry-load finding fixed and reviewed again. The final pass had two minor suggestions intentionally declined: removing the backend explanation contradicts the explicit request in #8148; the alleged package-owned custom-card path is excluded by the registry-derived type classification. `useCapabilityAgentRegistry` installs every manifest in `BUILT_IN_AGENTS` before publishing its result, `customAgents` excludes those types, and folder cards use the same metadata. The browser fixture now includes a renamed persisted official config and delayed metadata, and verifies that official Copy remains absent. This is not a claim of zero review findings. The browser runs used controlled API fixtures and disposable app data on isolated ports 7840–7843. Screenshot inspection covered desktop dark/light themes and iPhone-sized WebKit. Native-device and container execution are not claimed by this PR. - [ ] `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 - Manually verify installed official packages and custom agents under each mode filter, with search and folders. - Manually verify Copy is absent on official agents and still creates custom copies. - Manually verify the notice with your preferred accent and theme, and dismiss it after editing the draft. - Manually verify the changed controls on a physical phone; automated mobile runs are browser emulation. ## Docs and release impact This changes existing library controls and adds inline creation guidance. It does not alter downloadable agent definitions or release metadata. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) ## UI evidence [Before/after screenshot gallery, including desktop light/dark and mobile WebKit](https://gist.githack.com/SpicyMarinara/2a35e09624d6148b1a44d16f7f92e365/raw/95327cf9b6d3bf30662f709620bc3f626c9727e1/marinara-agents-ui-proof-8150.html) [Source gist](https://gist.github.com/SpicyMarinara/2a35e09624d6148b1a44d16f7f92e365). The published HTML matches the local gallery bytes; screenshots are temporary PR evidence and are not committed to the repository. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:36 +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#8127
No description provided.