mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1475] [MERGED] fix(beholder): keep Beholder open when its shortcut window minimizes (1.3.14) #1479
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1479
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-Agents/pull/1475
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/beholder-stay-open📝 Commits (2)
c3c3daffix(beholder): keep Beholder open when its shortcut window minimizes (1.3.14)f5dc837Merge branch 'staging' into fix/beholder-stay-open📊 Changes
15 files changed (+545 additions, -35 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+3 -1)➕
artifacts/beholder-1.3.14.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -0)📝
packages/beholder/CHANGELOG.md(+4 -0)📝
packages/beholder/client.js(+67 -7)📝
packages/beholder/manifest.json(+3 -3)📝
packages/beholder/src/76-onboard.js(+12 -2)📝
packages/beholder/src/80-dock.js(+53 -3)📝
scripts/build-beholder-package.mjs(+1 -1)➕
tests/beholder-host-release.regression.ts(+366 -0)📄 Description
Pull request
Linked issue
Closes #1474
Follows Pasta-Devs/Marinara-Agents#1469 (Beholder 1.3.13), which fixed Pasta-Devs/Marinara-Engine#7800 for the first-open note and the build menu only.
Why this change
marinara-capability-beholderhost element, andBH.dock.releaseHost()then closed Beholder. Pasta-Devs/Marinara-Agents#1469 only exempted the note and the build menu, so a click on a message, the composer or the chat background still closed Beholder.registerHost()only counted host elements inside.rpg-chat-area. Since Engine 2.5.0 the shortcut window and the Tracker Panel launcher are both outside it, so no host was ever counted. Releasing either one closed Beholder even while the other was still mounted.What changed
packages/beholder/src/80-dock.jsregisterHost()counts every host element, wherever it sits. Only an element inside the chat area still decides where the panel lives.releaseHost()no longer closes an open panel when the last host goes. It closes only a panel that is already closed, or one whose chat is gone.showsOwnChat()reads the chat id that the composer in the panel's own chat area carries ([data-chat-composer][data-chat-id], Engine 2.5.0 and later). AMutationObserver(watchHostless()) closes the panel once that chat changes or the chat view goes away, so a stale panel never shows the old chat or writes notes, edits or builds to it. A returning host orclose()disconnects the observer.showsOwnChat()is false and the panel closes with its host as before.close()disconnects that observer and callsBH.onboard.hide()instead of removing the note node directly.packages/beholder/src/76-onboard.js: newhide(). Closing Beholder while the first-open note is up now also removes the note's windowresizelistener. Before, only the node was removed and the listener stayed. The note is still not marked as read.tests/beholder-host-release.regression.ts(new): loads the real76-onboard.jsand80-dock.jsagainst a small fake page. It covers: the host is released while the panel is open, so the panel stays open; unrelated page changes keep it open; the shortcut again toggles the same single panel; closing later leaves no observer, note,resizelistener or pending frame; a hostless chat switch closes the panel; leaving the chat view closes it; with the Tracker Panel host still mounted, nothing is watched; an Engine without the composer chat id closes as before; a closed panel stays closed. It fails on the 1.3.13 source at "losing the host after a click elsewhere must not close the panel"..github/workflows/pull-request-checks.yml: the Beholder contract step also runs the new regression.packages/beholder/CHANGELOG.mdentry.node scripts/build-beholder-package.mjs:packages/beholder/client.js,manifest.json,artifacts/beholder-1.3.14.zip, and thecatalog/lanes and notes.Package and security impact
beholder>=2.4.4 <4.0.0). The new behaviour uses the composer'sdata-chat-id, which Engine 2.5.0 and later render. Older Engines fall back to the previous behaviour.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
npm run check: Prettier clean; ESLint 0 errors (811 existing repo-wide warnings, none in the touched files)node scripts/validate-catalog.mjs: passed (v2=39, v3=39)node scripts/test-catalog-lanes.mjs: passednode scripts/validate-package-locales.mjs: passednode scripts/tests/catalog-release-notes.regression.mjs: OKnpx tsx tests/beholder-client-contract.regression.ts: passednpx tsx tests/beholder-host-release.regression.ts: passed. The same file run against the 1.3.13 source fails at the "panel stays open" assertion.npx tsx tests/beholder-parity.regression.ts: 239/239node scripts/build-beholder-package.mjsrun twice: byte-identical output; the artifact'sclient.jsmatchespackages/beholder/client.jsgit diff --check: cleanclient.jsin headless Chromium, on a page shaped like Engine 2.5.0's Roleplay chat (a chat area with a named composer, the shortcut window outside it). 1.3.14 passed all 11 steps: open; host removed and panel still open; unrelated changes keep it open; shortcut again shows it pressed and toggles the single panel shut; the x closes it and removes the note and note box; a hostless chat switch closes it; leaving the chat view closes it; no page errors. 1.3.13 fails at "panel stays open". This was not a real Engine; see the manual list below.Manual verification notes
marinara.beholder.onboarded: open from the shortcut, close Beholder with the first-open note still up. The note goes away and shows again on the next open.Known behaviour, not changed here: switching the Beholder agent off in Chat Settings while its panel is open leaves the panel open until the user closes it. With no host mounted, the package cannot tell "switched off" apart from "shortcut window minimized". If that should close Beholder, the Engine would need to signal it, for example by keeping the minimized control window's content mounted. That would be a separate Engine change.
Documentation impact
The agent found no documentation that describes Beholder closing with its shortcut window.
UI evidence (if applicable)
None from the agent.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.