Skip to content

feat(beam): open a reviewed screenshot from a shared snapshot - #205257

Merged
vincentkoc merged 5 commits into
mainfrom
feat/beam-share-screenshot
Nov 25, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
feat/beam-share-screenshot

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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..c53543221df through 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 f64311bc28b preserves 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, TestAuditScreenshotCapacity passed 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. TestAuditReleasedScreenshotUpgrade passed 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 uses 0ab0385925a, which contains the viewer in this PR.

Before After
Conversation without a screenshot Conversation with the setup screenshot and download link
Before, annotated After, annotated
Transcript shown by the previous viewer Preview and filename highlighted in the updated viewer

@vincentkoc vincentkoc self-assigned this Nov 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime plugin: beam Beam session sharing plugin size: L labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:other This issue has meaningful maintainer-visible impact outside the owned taxonomy. labels Nov 25, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The shared link displays only the transcript, so the image must travel separately.
  • After: The link displays the PNG preview and download filename under the publication’s existing access and retention rules.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, bounded feature with the previous retention defect repaired, distinct regression coverage, and supplied production-entry-point and stable-upgrade evidence.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): Inspected before/after Control UI screenshots show the viewer change; supplied packaged CLI/Gateway results cover sharing, restart, access removal, text-only replacement, and capacity eviction on the repaired head, with raw log retrieval limited by sandbox egress.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Readers must currently obtain a conversation’s screenshot separately from its shared Beam transcript.
Reason: One bounded, reviewed image gains the transcript’s existing access and retention lifecycle, and the maintainer-authored PR establishes direction.

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: f64311bc28bf7e8472b690a8138f070e70441235

Before merge

None.

Findings

None.

Agent review details

How this fits together

Beam 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]
Loading

Technical review

Best 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

  • Beam’s original text-only boundary changes intended behavior with a stated reason (bbc73c3: Share normalized conversation text without granting remote filesystem, terminal, or source-machine control.)
  • Conditional publication receipts keeps the original intent (a0c9dab: Commit reviewed packet bytes and replayable receipts atomically while preserving publication ownership and strong revision checks.)
  • Worker-owned plugin-state operations keeps the original intent (2cd5dea: Execute complete state operations in one synchronous worker transaction under captured namespace write authority.)
  • Retained Solid chat rendering keeps the original intent (5dd456a: Keep session and request authority in plain TypeScript owners while Solid renders the retained chat pane.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned review scope: Reviewed the introduced merge-base-to-head diff and the repair since the previous reviewed head; base-only changes were excluded from PR ownership. (f64311bc28bf)
  • Previous eviction finding resolved: Both upload protocols use persistBeamUpload, which requests deletion of matching image keys when the snapshot owner evicts rows; publication operations consistently place images at store index 2. (extensions/beam/upload-operation-api.ts:232, f64311bc28bf)
  • Atomic cleanup and write authority: The kernel requires writable authority for the companion namespace and deletes the exact keys selected by existing retention logic within the transaction. (src/plugin-state/plugin-state-operation.kernel.ts:197, f64311bc28bf)
  • Distinct regression coverage: The SQLite capacity regression gives snapshots and images different insertion orders, then checks rich v2, text-only v2, and v1 eviction; the kernel regression separately covers denied companion writes and rollback. (extensions/beam/src/guest-upload.test.ts:148, f64311bc28bf)
  • Visual proof inspected: All four downloaded images were inspected. The before/after pair shows the PNG preview and filename link in the real Control UI with fixture-supplied Gateway responses; it does not independently prove backend access behavior. (ui/src/pages/chat/chat-view-transcript.tsx:24, f64311bc28bf)
  • Capacity and stable-upgrade evidence: The current PR body and author’s re-review comment report successful 501st-publication, restart, revocation, text-only replacement, and v2026.11.10 upgrade scenarios, preserving stable snapshot bytes, publisher identity, generation, released handoff, and Gateway settings. The linked Testbox workflow is canceled overall, so it is not treated as a green CI run. (f64311bc28bf)

Likely related people:

  • Peter Steinberger: Raw commit 2cd5dea adds src/plugin-state/plugin-state-operation.kernel.ts:170 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2cd5dea12c86; files: src/plugin-state/plugin-state-operation.kernel.ts)

PR surface

Source +259, Tests +236, Docs +15. Total +510 across 28 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 20 352 93 +259
Tests 6 253 17 +236
Docs 2 17 2 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 622 112 +510

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is linked_artifact.

Label justifications:

  • merge-risk: 🚨 compatibility: The PR additively expands the public catalog protocol and plugin-state transaction options; the maintainer-authored direction and supplied stable-upgrade and SDK compatibility evidence address the intended expansion without removing existing contracts.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-25T10:17:19.938Z sha 0743611 :: blocked before merge. :: [P2] Coordinate image eviction with snapshot eviction

Reviewed November 25, 2026, 5:47 AM ET / 10:47 UTC (Revision 2).

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The eviction fix and release-upgrade proof are ready on f64311bc28bf7e8472b690a8138f070e70441235. The PR evidence includes the 501st CLI share and the upgrade from [email protected].

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 25, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 25, 2026
@vincentkoc
vincentkoc merged commit 73d7c5f into main Nov 25, 2026
156 checks passed
@vincentkoc
vincentkoc deleted the feat/beam-share-screenshot branch November 25, 2026 11:03
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime impact:other This issue has meaningful maintainer-visible impact outside the owned taxonomy. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: beam Beam session sharing plugin plugin: file-transfer proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant