[PR #681] [MERGED] beholder 1.3.9: stop the panel shrinking its own interface to half size #1082

Closed
opened 2026-10-21 05:02:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/681
Author: @GetBeholder
Created: 9/1/2026
Status: ✅ Merged
Merged: 9/1/2026
Merged by: @GetBeholder

Base: staging ← Head: beholder-1.3.9


📝 Commits (1)

  • 2111997 beholder 1.3.9: stop the panel shrinking its own interface to half size

📊 Changes

9 files changed (+101 additions, -35 deletions)

View changed files

➕ artifacts/beholder-1.3.9.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/beholder/client.js (+29 -7)
📝 packages/beholder/manifest.json (+3 -3)
📝 packages/beholder/src/80-dock.js (+27 -5)
📝 scripts/build-beholder-package.mjs (+1 -1)
📝 tests/beholder-client-contract.regression.ts (+23 -1)

📄 Description

Pull request

Linked issue

Closes #665

Why this change

  • Reported as "a bit small — might be my resolution". It was not the resolution: DPR 1 on a 1080p screen, and the panel was rendering its own interface at 52%.
  • The panel is overflow:hidden and scales its contents to fit instead of scrolling. The body holds ~844px of doll and the frame another ~178px, so showing everything at full size needs a window around 1020px tall — and it opened at 620. The geometry reported 100%, the fit pass then took it to 0.524, and slot labels rendered at 6.4px against a designed 12.2px.

What changed

  • BH_WINDOW_DEFAULT_HEIGHT was doing two jobs — the height a panel opens at and the height that counts as 100%. Raising it would have redefined full size and scaled everything back down, which is presumably why it never was. Split into BH_WINDOW_DEFAULT_HEIGHT (now 1040, clamped to the chat area) and BH_SCALE_REFERENCE_WIDTH/HEIGHT (unchanged at 500×620).
  • Shrink-to-fit had no floor — it would reach 0.24 if the arithmetic asked, which is 3px text. BH_CONTENT_MIN_SCALE = 0.85 stops it, and the body scrolls for the remainder. The scrolling half is required, not cosmetic: the body is overflow:hidden on desktop, so a floor alone would have clipped the doll instead of shrinking it.

Package and security impact

  • Affected package IDs: beholder
  • Engine compatibility impact: none (>=2.4.4 <4.0.0 unchanged). Layout-only.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none. Anyone who has dragged the panel to a size of their own keeps it — stored geometry still wins — and gets the readability floor rather than the taller default.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

test-catalog-lanes.mjs and validate-package-locales.mjs pass; formatting clean under the pinned Prettier. Modes-and-uninstall unticked for the same reason as before: chat modes and restart were exercised, uninstall cleanup was not.

Manual verification notes

Measured on a real engine with the built bundle, at two viewports:

viewport panel scale slot label scrolls
1920×1080 500×1005 0.98 12.0px no
1366×768 500×693 0.85 10.4px yes

Before: 500×620, scale 0.524, 6.4px, no scrolling and 210px of the doll simply clipped away by the scale.

The mobile path is untouched — it already had overflow-y:auto and its own geometry — and the 107-check browser suite still passes, including the narrow-layout checks that would catch the panel becoming unreachable.

Two invariants are pinned in beholder-client-contract.regression.ts: that the reference size and the opening size remain different constants, and that the floor and the scrolling body both exist. Either could be quietly undone by someone tidying up two constants that look redundant, and the symptom — text at half size — is the kind of thing people assume is their monitor.

Worth stating plainly: part of this was self-inflicted. The note box and the model-answering strip added in #664 are part of that 178px of frame, so that PR made the squeeze worse than it already was.

Documentation impact

  • No documentation changes needed

🤖 Generated with Claude Code

https://claude.ai/code/session_01992DGH2exasKGaJiqRnteC

Summary by CodeRabbit

  • New Features

    • Increased the Beholder desktop panel’s default height for improved content visibility.
    • Added vertical scrolling when content cannot fit at the minimum readable scale.
    • Improved content scaling for more consistent readability across panel sizes.
  • Bug Fixes

    • Prevented desktop content from shrinking below a usable scale.
  • Chores

    • Updated the Beholder package to version 1.3.9.

🔄 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-Agents/pull/681 **Author:** [@GetBeholder](https://github.com/GetBeholder) **Created:** 9/1/2026 **Status:** ✅ Merged **Merged:** 9/1/2026 **Merged by:** [@GetBeholder](https://github.com/GetBeholder) **Base:** `staging` ← **Head:** `beholder-1.3.9` --- ### 📝 Commits (1) - [`2111997`](https://github.com/Pasta-Devs/Marinara-Agents/commit/21119973bd3234eece6c6d1fe27da06216d27f94) beholder 1.3.9: stop the panel shrinking its own interface to half size ### 📊 Changes **9 files changed** (+101 additions, -35 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/beholder-1.3.9.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/beholder/client.js` (+29 -7) 📝 `packages/beholder/manifest.json` (+3 -3) 📝 `packages/beholder/src/80-dock.js` (+27 -5) 📝 `scripts/build-beholder-package.mjs` (+1 -1) 📝 `tests/beholder-client-contract.regression.ts` (+23 -1) </details> ### 📄 Description # Pull request ## Linked issue Closes #665 ## Why this change - Reported as "a bit small — might be my resolution". It was not the resolution: DPR 1 on a 1080p screen, and the panel was rendering its own interface at **52%**. - The panel is `overflow:hidden` and scales its contents to fit instead of scrolling. The body holds ~844px of doll and the frame another ~178px, so showing everything at full size needs a window around **1020px tall** — and it opened at **620**. The geometry reported 100%, the fit pass then took it to 0.524, and slot labels rendered at **6.4px** against a designed 12.2px. ## What changed - **`BH_WINDOW_DEFAULT_HEIGHT` was doing two jobs** — the height a panel opens at *and* the height that counts as 100%. Raising it would have redefined full size and scaled everything back down, which is presumably why it never was. Split into `BH_WINDOW_DEFAULT_HEIGHT` (now 1040, clamped to the chat area) and `BH_SCALE_REFERENCE_WIDTH/HEIGHT` (unchanged at 500×620). - **Shrink-to-fit had no floor** — it would reach 0.24 if the arithmetic asked, which is 3px text. `BH_CONTENT_MIN_SCALE = 0.85` stops it, and the body scrolls for the remainder. The scrolling half is required, not cosmetic: the body is `overflow:hidden` on desktop, so a floor alone would have clipped the doll instead of shrinking it. ## Package and security impact - Affected package IDs: `beholder` - Engine compatibility impact: none (`>=2.4.4 <4.0.0` unchanged). Layout-only. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. Anyone who has dragged the panel to a size of their own keeps it — stored geometry still wins — and gets the readability floor rather than the taller default. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` `test-catalog-lanes.mjs` and `validate-package-locales.mjs` pass; formatting clean under the pinned Prettier. Modes-and-uninstall unticked for the same reason as before: chat modes and restart were exercised, uninstall cleanup was not. ### Manual verification notes Measured on a real engine with the built bundle, at two viewports: | viewport | panel | scale | slot label | scrolls | |---|---|---|---|---| | 1920×1080 | 500×1005 | 0.98 | **12.0px** | no | | 1366×768 | 500×693 | 0.85 | **10.4px** | yes | Before: 500×620, scale 0.524, **6.4px**, no scrolling and 210px of the doll simply clipped away by the scale. The mobile path is untouched — it already had `overflow-y:auto` and its own geometry — and the 107-check browser suite still passes, including the narrow-layout checks that would catch the panel becoming unreachable. Two invariants are pinned in `beholder-client-contract.regression.ts`: that the reference size and the opening size remain different constants, and that the floor and the scrolling body both exist. Either could be quietly undone by someone tidying up two constants that look redundant, and the symptom — text at half size — is the kind of thing people assume is their monitor. Worth stating plainly: part of this was self-inflicted. The note box and the model-answering strip added in #664 are part of that 178px of frame, so that PR made the squeeze worse than it already was. ## Documentation impact - [x] No documentation changes needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01992DGH2exasKGaJiqRnteC <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Increased the Beholder desktop panel’s default height for improved content visibility. * Added vertical scrolling when content cannot fit at the minimum readable scale. * Improved content scaling for more consistent readability across panel sizes. * **Bug Fixes** * Prevented desktop content from shrinking below a usable scale. * **Chores** * Updated the Beholder package to version 1.3.9. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:02:17 +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-Agents#1082
No description provided.