[PR #8449] [MERGED] feat(agents): chat-aware Agents panel for the Agent Organizer #8608

Closed
opened 2026-11-07 16:45:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8449
Author: @Gunterlie
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @Gunterlie

Base: agentstore-engine ← Head: feat/agent-organizer-panel


📝 Commits (2)

  • 80d7d50 feat(agents): chat groups, add/remove buttons and Organizer card in the Agents panel
  • a8fe4c0 fix(agents): review fixes for the Agents panel chat groups

📊 Changes

3 files changed (+261 additions, -141 deletions)

View changed files

📝 packages/client/src/components/chat/ChatResourceActionButton.tsx (+4 -2)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+247 -134)
📝 packages/client/src/localization/locales/en.json (+10 -5)

📄 Description

Why

The Agents panel is where you put agents into a chat, but it did not show which agents a chat already uses. The only add button appeared on hover, and the panel also listed Home screen apps that do not belong in a chat. This PR is step 2 of the Engine side of the Agent Organizer plan (step 1: #8440). It makes the panel a short, chat-aware list and moves store tasks, including uninstall, to the Agent Organizer.

What changed

  • Agent Organizer button: store icon, plus a badge with the number of updates ("1 update").
  • Chat groups: while a chat is open, built-in agents split into In this chat (with the chat name) and Not in this chat ("Drag one into the chat, or use its add button."). With no chat open, the groups stay Writing, Trackers and Misc. Empty groups hide.
  • Row buttons: every row shows a 28 px button. + adds the agent through the same path as drag and drop (toast, Undo, agent setup). It reuses the shared ChatResourceActionButton, which gets an optional icon prop. A check removes the agent from the chat, with Undo, the same way the Omnibar does. Undo puts back only the removed agent. Agent memory stays.
  • Chats with agents switched off: no agent counts as in the chat, so + turns agents back on.
  • Rows: store icon and store tagline on one line. The category line is gone.
  • No apps: Home screen apps no longer show in the panel, folders included. They open from their Home tab.
  • No uninstall in the panel: installed agents lose the trash button. Uninstall stays in the Agent Organizer. Custom agents keep Delete.
  • Footer: "Need more? Browse N agents in the Agent Organizer." opens the Organizer.
  • Copy: new en.json keys. 5 empty-group keys that nothing uses now are removed.

Left out on purpose: a drag grip (the whole row can already be dragged), the character name in the chat hint, and the agent count in the search placeholder.

Validation

  • pnpm check
  • pnpm localization:check
  • Client tsc and ESLint after the review fixes
  • Screenshots on a local dev server at 1440, 768 and 390 px: panel without a chat, in a chat, after +, and after remove with Undo. No console errors and no horizontal overflow.
  • Local CodeRabbit review, 3 findings:
    • Fixed: Undo restored more than the removed agent.
    • Fixed: apps still showed inside folders.
    • Not changed: make the footer one sentence. The text keeps the approved mockup copy.
  • Opus review: fixed agents that showed as "In this chat" when the chat has agents switched off.

Manual checks

  • Manually verify the panel in a Conversation chat and a Roleplay chat, in both visual themes.
  • Manually verify + adds an agent and opens its setup when it needs one, and that Undo removes it again.
  • Manually verify the check removes an agent, and that Undo after removing two agents in a row brings back only the second one.
  • Manually verify a chat with agents switched off: no "In this chat" group, and + switches agents on.
  • Manually verify an agent in a folder: the add and remove buttons work, and no app shows.
  • Manually verify on a phone: rows do not overlap their buttons, and touch targets work.

No linked issue: this is planned roadmap work (Agent Organizer plan). Step PRs go into agentstore-engine, then one PR goes to staging.


🔄 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/8449 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `agentstore-engine` ← **Head:** `feat/agent-organizer-panel` --- ### 📝 Commits (2) - [`80d7d50`](https://github.com/Pasta-Devs/Marinara-Engine/commit/80d7d50a217f79b74971fdb82e1179d53fec966b) feat(agents): chat groups, add/remove buttons and Organizer card in the Agents panel - [`a8fe4c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a8fe4c09df14688f74c5d8cb1d994fdbdae99f94) fix(agents): review fixes for the Agents panel chat groups ### 📊 Changes **3 files changed** (+261 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatResourceActionButton.tsx` (+4 -2) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+247 -134) 📝 `packages/client/src/localization/locales/en.json` (+10 -5) </details> ### 📄 Description ## Why The Agents panel is where you put agents into a chat, but it did not show which agents a chat already uses. The only add button appeared on hover, and the panel also listed Home screen apps that do not belong in a chat. This PR is step 2 of the Engine side of the Agent Organizer plan (step 1: #8440). It makes the panel a short, chat-aware list and moves store tasks, including uninstall, to the Agent Organizer. ## What changed - **Agent Organizer button:** store icon, plus a badge with the number of updates ("1 update"). - **Chat groups:** while a chat is open, built-in agents split into **In this chat** (with the chat name) and **Not in this chat** ("Drag one into the chat, or use its add button."). With no chat open, the groups stay Writing, Trackers and Misc. Empty groups hide. - **Row buttons:** every row shows a 28 px button. **+** adds the agent through the same path as drag and drop (toast, Undo, agent setup). It reuses the shared `ChatResourceActionButton`, which gets an optional `icon` prop. A **check** removes the agent from the chat, with Undo, the same way the Omnibar does. Undo puts back only the removed agent. Agent memory stays. - **Chats with agents switched off:** no agent counts as in the chat, so + turns agents back on. - **Rows:** store icon and store tagline on one line. The category line is gone. - **No apps:** Home screen apps no longer show in the panel, folders included. They open from their Home tab. - **No uninstall in the panel:** installed agents lose the trash button. Uninstall stays in the Agent Organizer. Custom agents keep Delete. - **Footer:** "Need more? Browse N agents in the Agent Organizer." opens the Organizer. - **Copy:** new `en.json` keys. 5 empty-group keys that nothing uses now are removed. Left out on purpose: a drag grip (the whole row can already be dragged), the character name in the chat hint, and the agent count in the search placeholder. ## Validation - `pnpm check` - `pnpm localization:check` - Client `tsc` and ESLint after the review fixes - Screenshots on a local dev server at 1440, 768 and 390 px: panel without a chat, in a chat, after +, and after remove with Undo. No console errors and no horizontal overflow. - Local CodeRabbit review, 3 findings: - Fixed: Undo restored more than the removed agent. - Fixed: apps still showed inside folders. - Not changed: make the footer one sentence. The text keeps the approved mockup copy. - Opus review: fixed agents that showed as "In this chat" when the chat has agents switched off. ## Manual checks - [ ] Manually verify the panel in a Conversation chat and a Roleplay chat, in both visual themes. - [ ] Manually verify + adds an agent and opens its setup when it needs one, and that Undo removes it again. - [ ] Manually verify the check removes an agent, and that Undo after removing two agents in a row brings back only the second one. - [ ] Manually verify a chat with agents switched off: no "In this chat" group, and + switches agents on. - [ ] Manually verify an agent in a folder: the add and remove buttons work, and no app shows. - [ ] Manually verify on a phone: rows do not overlap their buttons, and touch targets work. No linked issue: this is planned roadmap work (Agent Organizer plan). Step PRs go into `agentstore-engine`, then one PR goes to `staging`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:57 +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#8608
No description provided.