mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8540] [MERGED] feat(agents): open an agent's chat settings from "In this chat" #8659
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8659
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
9e83189feat(agents): open an agent's chat settings from "In this chat"d77abc3fix(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
requestChatSettingsSectionOpenwith a newagent:<id>target.ChatSettingsDraweropens the Agents section, scrolls to it, then uses the existingscrollToAgentMenu, which also opens the agent's category.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 inAgentsPanel.tsxnames this limit and the upgrade path.Validation
pnpm checkpasses locally. Its one lint warning (serverRun) is in code this PR does not touch.pnpm localization:checkpasses.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
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.