mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #659] [MERGED] beholder: manage the local model, and say which one is answering #1076
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#1076
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/659
Author: @GetBeholder
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @GetBeholder
Base:
staging← Head:feat/beholder-local-model-slot📝 Commits (10+)
1840892beholder: port the slot editor, locks, Doctor and Help22a8066beholder: make locks enforce, not just mark2a67beetest(beholder): cover attribution when several characters are trackedd9f0da1beholder: make the panel usable before the first extraction073e293beholder: manage the local model, and say which one is answering8893606beholder: satisfy prettier on the local-model viewsf31832fbeholder: review fixes for the editor, locks and viewsb814ac4Merge remote-tracking branch 'origin/staging' into feat/beholder-local-model-slota5569b8beholder: resolve the chat the same way when reading and writing the prompt19c710dbeholder: bind the prompt save to the chat the view is showing📊 Changes
11 files changed (+865 additions, -63 deletions)
View changed files
➕
artifacts/beholder-1.3.7.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
packages/beholder/client.js(+346 -22)📝
packages/beholder/manifest.json(+3 -3)➕
packages/beholder/src/55-sidecar.js(+84 -0)📝
packages/beholder/src/60-views.js(+257 -19)📝
packages/beholder/src/style.css(+24 -0)📝
scripts/build-beholder-package.mjs(+1 -1)📝
tests/beholder-client-contract.regression.ts(+132 -0)📄 Description
Pull request
Linked issue
Closes #658
Why this change
Beholder is answered either by a general model through the agent's connection or by the small trained extractor in the engine's local model slot. The two need different prompts — five short per-lane calls versus one long one — and pairing either with the other's prompt degrades extraction badly.
The slot outranks the agent's connection server-side, and it does so silently. The Prompt view was inferring the model from the connection list, which is the wrong answer whenever the slot is serving. A bad extraction then reads as a bad model rather than a wrong setting.
What changed
Degrades quietly: an engine without the slot answers 404 to the status probe, the package stops asking, and behaviour is unchanged.
Package and security impact
beholder(1.3.6 → 1.3.7)uipermission, same client entrypoint. All calls are same-origin to/api/utility-sidecar.Validation
node scripts/validate-catalog.mjspassesgit diff --checkpassesCONTRIBUTING.mdManual verification notes
The server side this UI drives was exercised end to end against a real Engine on an isolated
DATA_DIR: a real 811 MB install from HuggingFace through the route, path-traversal and bad-input rejections over HTTP, an update check against the live repo, the slot starting on its own port with max GPU offload, and a real five-pass Beholder agent run answered entirely by the local model — with the main sidecar's config, model file and runtime record byte-for-byte unchanged (sha256) throughout.What is not done is clicking the new controls in a browser. That box stays unticked.
Automated coverage added to
tests/beholder-client-contract.regression.ts: the banner in both directions — including that it does not name the agent connection's model while the local slot is answering, which would point the user at the wrong thing; version labelling in all three states (installed, no oid, absent); the not-installed branch warning about a missing runtime and stating that the engine's own sidecar is unaffected; the installed-and-serving branch offering stop rather than a second install; that no sampling control appears in the hardware form; that current values round-trip into it, so saving cannot silently reset them; and that server-supplied strings — repo name, file name, routing reason — are escaped before reaching markup, on the same reasoning as the earliertitle=escaping fixes.Also confirmed the build is deterministic: rebuilding the parent branch reproduced its committed artifacts byte-for-byte.
Documentation impact
UI evidence (if applicable)
None captured — see above.
Summary by CodeRabbit
New Features
Bug Fixes
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.