[PR #8945] [MERGED] fix(client): lay out Custom Agents settings like the other agent menus #8899

Closed
opened 2026-11-07 20:43:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/custom-agents-checkbox


📝 Commits (2)

  • 555efd2 fix(client): lay out Custom Agents settings like the other agent menus
  • 59ae4f8 test(e2e): pin custom agent lorebook switch to the card edge

📊 Changes

2 files changed (+9 additions, -4 deletions)

View changed files

📝 e2e/agent-lorebook-attachment.e2e.ts (+4 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+5 -4)

📄 Description

Linked issue

Closes #8932

Why this change

In RolePlay settings, the Custom Agents section looked broken: its "Attach lorebook for the specific agent" switch sat in a box inside a box of the same colour, pressed against the agent's description. Every other agent card puts that switch straight on the card. The Custom Agents card (renderActiveCustomAgentSettingsCard) wrapped each attached agent in its own bordered box. That box was styled like the switch's own box, and c0fe8a3e2d added the switch inside it with no spacing.

What changed

  • packages/client/src/components/chat/ChatSettingsDrawer.tsx:
    • Each custom agent is no longer boxed. Its header row (name, tokens, re-run, snapshot, remove) and its controls sit on the card like the other agent menus.
    • A thin divider separates agents when several are attached.
    • The chunked-backfill and image-connection blocks lose their one-off margins and use the card's spacing.
    • The same card is used in Conversation and Game mode, so they get the fix too.
    • No text, labels or accessible names changed.
  • e2e/agent-lorebook-attachment.e2e.ts: the custom agent's switch has the same x and width as Prose Guardian's, which pins the layout.

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

Run by the agents (not a substitute for the boxes above):

  • pnpm check: exit 0. The 15 regressions that read the drawer or cover agent lorebooks pass.
  • e2e/agent-lorebook-attachment.e2e.ts on desktop-chromium and mobile-chromium, light and dark: 4 passed.
  • With the staging drawer restored, the new check fails: the switch is offset by 12.75 px.
  • Note: PRs to staging don't run this e2e in CI (only manual dispatch, PRs to main and the nightly run).

Still to verify by hand:

  • Manually verify in RolePlay → Chat Settings → Agents that a chat with one and with two custom agents shows each agent's controls and the Attach lorebook switch on the card, in line with Prose Guardian's, with a divider between agents.
  • Manually verify the same in Conversation and Game mode, and at phone width.

Docs and release impact

  • No docs changes needed

🤖 Generated with Claude Code


🔄 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/8945 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/custom-agents-checkbox` --- ### 📝 Commits (2) - [`555efd2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/555efd2c561e8ccddd90d3421aaf1976da4f26cd) fix(client): lay out Custom Agents settings like the other agent menus - [`59ae4f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/59ae4f81c5e6779b66c408853c074c72ec260b44) test(e2e): pin custom agent lorebook switch to the card edge ### 📊 Changes **2 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `e2e/agent-lorebook-attachment.e2e.ts` (+4 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+5 -4) </details> ### 📄 Description ## Linked issue Closes #8932 ## Why this change In RolePlay settings, the Custom Agents section looked broken: its "Attach lorebook for the specific agent" switch sat in a box inside a box of the same colour, pressed against the agent's description. Every other agent card puts that switch straight on the card. The Custom Agents card (`renderActiveCustomAgentSettingsCard`) wrapped each attached agent in its own bordered box. That box was styled like the switch's own box, and c0fe8a3e2d added the switch inside it with no spacing. ## What changed - `packages/client/src/components/chat/ChatSettingsDrawer.tsx`: - Each custom agent is no longer boxed. Its header row (name, tokens, re-run, snapshot, remove) and its controls sit on the card like the other agent menus. - A thin divider separates agents when several are attached. - The chunked-backfill and image-connection blocks lose their one-off margins and use the card's spacing. - The same card is used in Conversation and Game mode, so they get the fix too. - No text, labels or accessible names changed. - `e2e/agent-lorebook-attachment.e2e.ts`: the custom agent's switch has the same x and width as Prose Guardian's, which pins the layout. ## 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 Run by the agents (not a substitute for the boxes above): - `pnpm check`: exit 0. The 15 regressions that read the drawer or cover agent lorebooks pass. - `e2e/agent-lorebook-attachment.e2e.ts` on desktop-chromium and mobile-chromium, light and dark: 4 passed. - With the staging drawer restored, the new check fails: the switch is offset by 12.75 px. - Note: PRs to `staging` don't run this e2e in CI (only manual dispatch, PRs to `main` and the nightly run). Still to verify by hand: - Manually verify in RolePlay → Chat Settings → Agents that a chat with one and with two custom agents shows each agent's controls and the Attach lorebook switch on the card, in line with Prose Guardian's, with a divider between agents. - Manually verify the same in Conversation and Game mode, and at phone width. ## Docs and release impact - [x] No docs changes needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi changed title from [PR #8945] fix(client): lay out Custom Agents settings like the other agent menus to [PR #8945] [MERGED] fix(client): lay out Custom Agents settings like the other agent menus 2026-11-07 21:50:03 +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#8899
No description provided.