Repository navigation
feat(beam): open a reviewed screenshot from a shared snapshot - #205257
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR adds a reviewed PNG to Beam publications and displays a downloadable preview beside the shared transcript. Example: A publisher shares a conversation with gateway-setup.png.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review The prior eviction finding is resolved, and no new actionable defects were found. This maintainer-authored feature should remain open for normal CI and landing. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherBeam receives authenticated publications, persists their transcript and image through plugin-state transactions, and exposes authorized reads to the Control UI through session catalogs. flowchart LR
A[Beam CLI bundle] --> B[Authenticated Beam receiver]
B --> C[Publication transaction]
C --> D[Snapshot and image storage]
D --> E[Authorized catalog read]
E --> F[Control UI preview and download]
Technical reviewBest possible solution: Keep snapshot and image writes and cleanup in Beam’s existing publication transaction, with the snapshot retention owner selecting eviction victims. Do we have a high-confidence way to reproduce the issue? This is a feature addition; current-main source confirms that Beam publications have no screenshot storage or catalog preview path. Is this the best way to solve the issue? The extension reuses publication, storage, authorization, and catalog owners, while opt-in image reads preserve text-only export and continuation semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 935d07d538ed. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +259, Tests +236, Docs +15. Total +510 across 28 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 25, 2026, 5:47 AM ET / 10:47 UTC (Revision 2). |
|
@clawsweeper re-review The eviction fix and release-upgrade proof are ready on |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…aw#205257) * feat(beam): show a reviewed screenshot in shared snapshots * docs(beam): clarify the receiver accepts reviewed PNG bytes * fix(beam): remove the screenshot on text-only publication * fix(beam): use the canonical filename character class * fix(beam): evict screenshot bytes with their snapshot
What Problem This Solves
A colleague can open a Beam conversation in OpenClaw, but a screenshot from that conversation currently travels separately. The transcript and image need to follow the same publication access and expiry.
User Impact
Enable the Beam plugin, create a v2 bundle containing one reviewed PNG, and share it with the companion CLI. The resulting link displays the conversation and lets an authorized reader download the original image. Sharing the text packet again removes the previous PNG. Handing off a matching snapshot preserves the existing preview. The receiver accepts up to 512 KiB and 16,777,216 pixels per image. PNG metadata is preserved.
Why This Change Was Made
The plugin stores the snapshot, image and publication receipt in one operation. A separate digest covers the filename and PNG bytes. Session catalogs gain an optional preview image on explicit reads. List results contain its digest, while pull, continuation and text exports keep the original packet semantics.
Evidence
Focused plugin tests covered write replay, an image-only update, byte-for-byte reads, a second reader, revoked access and archive cleanup. Chromium decoded the PNG from a Visitor-owned link and verified the download filename. The public Gateway protocol check passed, including deterministic Swift and Kotlin generation. On Blacksmith Testbox, the Go CLI shared through a built Gateway with its pinned native cleaner. The teammate retrieved the packet and PNG, still saw the image after restart, then lost access when removed from the trusted-proxy allowlist. The publisher retained access. Reading made zero model calls. On the updated sender and receiver, explicitly sharing the packet alone also preserved the publication link and original text, removed the stored PNG, and returned 404 for the publisher’s subsequent image read. The packaged test passed in 29.27 seconds.
Local autoreview examined
69b78d62411..c53543221dfthrough P3 and returned scoped-clean. It did not execute the project. See the Testbox workflow. The companion CLI is in openclaw/beam#11.The retention fix in
f64311bc28bpreserves the seven-day, 500-snapshot catalog. The plugin-state transaction now lets a write evict matching keys from a second writable namespace. Both Beam upload protocols use the keys the snapshot store actually evicts. The real SQLite regressions cover screenshot and text insertions at capacity, companion write authority, and transaction rollback.On the retention and upgrade Testbox,
TestAuditScreenshotCapacitypassed in 564.73 seconds. The production CLI opened the first and 501st rich publications. The other 499 went through the authenticated Gateway with its normal rate limit. SQLite confirmed both oldest rows were gone and neighboring images remained readable.TestAuditReleasedScreenshotUpgradepassed in 28.82 seconds using the installed[email protected]package. Both stable text snapshots retained their bytes, original publisher, and generation, including a released handoff. Gateway settings survived. The teammate could read the new PNG. The packaged two-person restart, revocation, and text-only replacement scenario also passed in 28.47 seconds. The SDK compatibility check passed against the shipped release.Shared snapshot in Chromium
The same Visitor-owned snapshot and public OpenClaw setup screenshot at 1280 × 720. The fixture supplies Gateway responses to the real Control UI. Before uses
69b78d62411. After uses0ab0385925a, which contains the viewer in this PR.