[GH-ISSUE #1474] Beholder: opened from the shortcut, a click elsewhere in the chat closes it #750

Closed
opened 2026-10-20 17:30:22 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1474

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When Beholder is opened from its shortcut (the Beholder bubble's window in a Roleplay chat), a click anywhere else in the chat closes Beholder. Pasta-Devs/Marinara-Agents#1469 (Beholder 1.3.13) stopped the first-open note and the build menu from doing this, which fixed Pasta-Devs/Marinara-Engine#7800, but any other click outside the shortcut's window still closes the whole panel.

Maintainer decision (SpicyMarinara, 2026-10-19): a click elsewhere in the chat must not close Beholder. Once its panel is open, it stays open until the user closes it.

Affected package

beholder (1.3.13)

Expected behavior

  • Clicking elsewhere in the chat may minimize the shortcut's window, but Beholder's panel stays open.
  • The panel stays open until the user closes it (its x, or the shortcut's eye button, which toggles it).
  • Opening the shortcut again while the panel is open shows the existing panel as open. It never makes a second copy.
  • Opening from the Tracker Panel works as it does today.
  • When the panel finally closes, it leaves no listeners, timers or page elements behind.

Actual behavior

The shortcut's window minimizes and Beholder's panel closes with it.

Steps to reproduce

  1. Open a Roleplay chat with the Beholder agent on.
  2. Open the Beholder bubble's window and press its eye button. Beholder's panel opens.
  3. Click anywhere in the chat outside that window and outside the panel, for example on a message.
  4. Beholder's panel closes.

Environment

  • Marinara Engine version: 2.5.0 / staging
  • Package version: beholder 1.3.13
  • Install type: any
  • OS + version: any
  • Browser or app shell: any (desktop window and phone sheet)

Additional context

Cause, from the code:

  • A press outside the Engine's shortcut control window minimizes it, and a minimized window unmounts its content, including the marinara-capability-beholder host element.
  • The element's disconnectedCallback calls BH.dock.releaseHost(), which closes Beholder once no host element is left.
  • BH.dock.registerHost() only counts host elements inside .rpg-chat-area. Since Engine 2.5.0 both the shortcut's window and the Tracker Panel launcher are outside it, so no host is ever counted, and releasing any one host closes the panel even while another host is still mounted.

Ownership: package-side. Beholder decides to close itself when its host goes away; the Engine is right to unmount a minimized window's content.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1474 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When Beholder is opened from its shortcut (the Beholder bubble's window in a Roleplay chat), a click anywhere else in the chat closes Beholder. Pasta-Devs/Marinara-Agents#1469 (Beholder 1.3.13) stopped the first-open note and the build menu from doing this, which fixed Pasta-Devs/Marinara-Engine#7800, but any other click outside the shortcut's window still closes the whole panel. Maintainer decision (SpicyMarinara, 2026-10-19): a click elsewhere in the chat must not close Beholder. Once its panel is open, it stays open until the user closes it. ## Affected package `beholder` (1.3.13) ## Expected behavior - Clicking elsewhere in the chat may minimize the shortcut's window, but Beholder's panel stays open. - The panel stays open until the user closes it (its x, or the shortcut's eye button, which toggles it). - Opening the shortcut again while the panel is open shows the existing panel as open. It never makes a second copy. - Opening from the Tracker Panel works as it does today. - When the panel finally closes, it leaves no listeners, timers or page elements behind. ## Actual behavior The shortcut's window minimizes and Beholder's panel closes with it. ## Steps to reproduce 1. Open a Roleplay chat with the Beholder agent on. 2. Open the Beholder bubble's window and press its eye button. Beholder's panel opens. 3. Click anywhere in the chat outside that window and outside the panel, for example on a message. 4. Beholder's panel closes. ## Environment - Marinara Engine version: 2.5.0 / `staging` - Package version: beholder 1.3.13 - Install type: any - OS + version: any - Browser or app shell: any (desktop window and phone sheet) ## Additional context Cause, from the code: - A press outside the Engine's shortcut control window minimizes it, and a minimized window unmounts its content, including the `marinara-capability-beholder` host element. - The element's `disconnectedCallback` calls `BH.dock.releaseHost()`, which closes Beholder once no host element is left. - `BH.dock.registerHost()` only counts host elements inside `.rpg-chat-area`. Since Engine 2.5.0 both the shortcut's window and the Tracker Panel launcher are outside it, so no host is ever counted, and releasing any one host closes the panel even while another host is still mounted. Ownership: package-side. Beholder decides to close itself when its host goes away; the Engine is right to unmount a minimized window's content. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:30:22 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 19, 2026):

Fixed on staging by #1475; update Beholder from the catalog to get it.

<!-- gh-comment-id:6266578425 --> @SpicyMarinara commented on GitHub (Oct 19, 2026): Fixed on staging by #1475; update Beholder from the catalog to get it.
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-Agents#750
No description provided.