[PR #8540] [MERGED] feat(agents): open an agent's chat settings from "In this chat" #8659

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

📋 Pull Request Information

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

Base: staging ← Head: feat/agents-in-chat-settings-button


📝 Commits (2)

  • 9e83189 feat(agents): open an agent's chat settings from "In this chat"
  • d77abc3 fix(agents): leave an open detail page before opening an agent's chat settings

📊 Changes

5 files changed (+75 additions, -5 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+12 -3)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+15 -0)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+43 -1)
📝 packages/client/src/lib/chat-floating-ui-events.ts (+4 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)

📄 Description

Linked issue

No linked issue. Maintainer-requested follow-up to #8522.

Why this change

In the Agents panel's In this chat section, an enabled agent has only a ✓ (remove from chat). A click on the row opens the agent's global settings. Its options for this chat are in the Chat Settings drawer, and to find them you must open the drawer, expand Agents and look for the agent.

What changed

  • An enabled agent in In this chat gets a second button (sliders icon) next to the ✓. It opens Chat Settings at that agent's menu for the current chat. Custom agents open their shared "Custom agents" menu.
  • The button reuses requestChatSettingsSectionOpen with a new agent:<id> target. ChatSettingsDrawer opens the Agents section, scrolls to it, then uses the existing scrollToAgentMenu, which also opens the agent's category.
  • If Chat Settings is already open, the request scrolls inside it. A repeat click on the same agent scrolls again.
  • On phones, the right panel closes first so that the drawer is visible.
  • The button shows only in local roleplay chats. Conversation, game and multiplayer chats do not have per-agent menus in this drawer.
  • New string: ui.panels.agentspanel.chatSettings ("{{name}} settings for this chat").

Known limit: agents without their own menu in Chat Settings (for example tracker agents) land at the top of the Agents section. A ponytail: comment in AgentsPanel.tsx names this limit and the upgrade path.

Validation

  • pnpm check passes locally. Its one lint warning (serverRun) is in code this PR does not touch.

  • pnpm localization:check passes.

  • A local reviewer pass found 3 issues (repeat click on an open drawer, the custom agent target, the button showing where no menu exists). All 3 are fixed here.

  • Not done: browser test.

  • Manually verify in the browser: in a roleplay chat with agents enabled, open the Agents panel → In this chat. Click the sliders button on Lorebook Keeper. Chat Settings opens at the Lorebook Keeper menu.

  • Manually verify with Chat Settings already open: click the button for another agent. The drawer scrolls to that agent, and a second click on the same agent scrolls again.

  • Manually verify a downloaded agent with chat settings (for example Long-Term Memory) and a custom agent (opens the "Custom agents" menu).

  • Manually verify that the button does not show in conversation, game and multiplayer chats.

  • Check at phone width (390 px): the panel closes, the drawer opens at the agent, and the copy/delete hover buttons do not cover the new button.

Docs and release impact

  • No docs changes needed

UI evidence

No screenshots yet. See the manual checks above.


🔄 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/8540 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/agents-in-chat-settings-button` --- ### 📝 Commits (2) - [`9e83189`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e83189f8d6eb444b87f97a66dc889bb7ccf2209) feat(agents): open an agent's chat settings from "In this chat" - [`d77abc3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d77abc3d5551c35895c4993c58ec63c990a2e47c) fix(agents): leave an open detail page before opening an agent's chat settings ### 📊 Changes **5 files changed** (+75 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+12 -3) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+15 -0) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+43 -1) 📝 `packages/client/src/lib/chat-floating-ui-events.ts` (+4 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) </details> ### 📄 Description ## Linked issue No linked issue. Maintainer-requested follow-up to #8522. ## Why this change In the Agents panel's **In this chat** section, an enabled agent has only a ✓ (remove from chat). A click on the row opens the agent's global settings. Its options for this chat are in the Chat Settings drawer, and to find them you must open the drawer, expand Agents and look for the agent. ## What changed - An enabled agent in **In this chat** gets a second button (sliders icon) next to the ✓. It opens Chat Settings at that agent's menu for the current chat. Custom agents open their shared "Custom agents" menu. - The button reuses `requestChatSettingsSectionOpen` with a new `agent:<id>` target. `ChatSettingsDrawer` opens the Agents section, scrolls to it, then uses the existing `scrollToAgentMenu`, which also opens the agent's category. - If Chat Settings is already open, the request scrolls inside it. A repeat click on the same agent scrolls again. - On phones, the right panel closes first so that the drawer is visible. - The button shows only in local roleplay chats. Conversation, game and multiplayer chats do not have per-agent menus in this drawer. - New string: `ui.panels.agentspanel.chatSettings` ("{{name}} settings for this chat"). Known limit: agents without their own menu in Chat Settings (for example tracker agents) land at the top of the Agents section. A `ponytail:` comment in `AgentsPanel.tsx` names this limit and the upgrade path. ## Validation - `pnpm check` passes locally. Its one lint warning (`serverRun`) is in code this PR does not touch. - `pnpm localization:check` passes. - A local reviewer pass found 3 issues (repeat click on an open drawer, the custom agent target, the button showing where no menu exists). All 3 are fixed here. - Not done: browser test. - [ ] Manually verify in the browser: in a roleplay chat with agents enabled, open the Agents panel → **In this chat**. Click the sliders button on Lorebook Keeper. Chat Settings opens at the Lorebook Keeper menu. - [ ] Manually verify with Chat Settings already open: click the button for another agent. The drawer scrolls to that agent, and a second click on the same agent scrolls again. - [ ] Manually verify a downloaded agent with chat settings (for example Long-Term Memory) and a custom agent (opens the "Custom agents" menu). - [ ] Manually verify that the button does not show in conversation, game and multiplayer chats. - [ ] Check at phone width (390 px): the panel closes, the drawer opens at the agent, and the copy/delete hover buttons do not cover the new button. ## Docs and release impact - [x] No docs changes needed ## UI evidence No screenshots yet. See the manual checks above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:46:18 +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#8659
No description provided.