Repository navigation
fix(beam): resume sharing when the mirror receiver changes - #133533
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:16 PM ET / 21:16 UTC. ClawSweeper reviewWhat this changesThe PR makes Beam resend unchanged active sessions after a mirror receiver URL changes, discards old-receiver terminal retries, documents that behavior, and simplifies an equivalent Control UI missing-session branch. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer review: current main still retains delivery state across receiver URLs, while this maintainer-associated PR resets that state at the receiver boundary and has no identified correctness blocker. Priority: P2 Review scores
Verification
How this fits togetherBeam is an opt-in plugin that mirrors selected local session catalogs to a remote Beam receiver. Its polling runner reads the configured receiver, deduplicates active uploads, sends final completion updates, and the Control UI separately resolves shared catalog links. flowchart LR
Config[Mirror configuration] --> Runner[Beam mirror runner]
Catalogs[Selected session catalogs] --> Runner
Runner --> Changed{Receiver changed?}
Changed -->|Yes| Reset[Clear receiver delivery state]
Changed -->|No| Upload[Deduplicate and upload]
Reset --> Upload
Upload --> Receiver[Remote Beam receiver]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -7, Tests +21, Docs 0. Total +14 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the receiver-scoped state reset so each newly configured destination receives its own active-session snapshot and cannot receive completion retries belonging to a prior destination. Do we have a high-confidence way to reproduce the issue? Yes, from source: on current main a successful active upload remains fingerprint-tracked after the endpoint changes, so unchanged content is suppressed at the new receiver; the focused loopback regression exercises that transition. Is this the best way to solve the issue? Yes. Treating acknowledgements, terminal retries, and redirect suppression as receiver-scoped state fixes the owner-boundary violation without adding configuration, persistence, or a parallel delivery path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 343fe90926c0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Landing proof for head The mirror now owns one receiver transition: acknowledgements, terminal retry tracking, and redirect blocking reset together. The old duplicate destination argument and redundant validation/result branches are removed; catalog routing also drops its unreachable fallback. Production is net -7 LOC (+19/-26); tests/support are net +21. No configuration, persistence, retention, or authorization changes were introduced. Validation:
Exact-head CI run 33335013189 passed. The final check rollup has no failed or pending checks. Latest ClawSweeper comment is still a review-in-progress placeholder with no published findings or rank-up moves; the independent Codex review is clean. Proceeding through native prepare/merge. |
|
Merged via squash.
|
* origin/main: (55 commits) test: include v2026.8.1 release navigation (#133581) fix: stop cloud work before unrelated provider inspection finishes (#133476) fix(e2e): keep delete fixture target-compatible (#133526) fix(release): detect optional target E2E capability (#133525) fix(package): publish readable dist inventory (#133549) docs: add complete v2026.8.1 maintainer change index (#133585) fix(browser): preserve contextless worker and iframe sessions (#133571) fix(voice): discover configured provider candidates (#133507) refactor(ui): simplify chat rendering and lifecycle state (#133567) test: reduce maturity fixture cleanup time (#133566) improve: speed up legacy imports and transcript replacement (#133546) docs: add draft v2026.8.1 release notes (#133557) test: guard multi-project Vitest cache ownership (#133554) fix(memory): clarify default agent scope in command help (#133560) fix(clawdock): keep credentials out of diagnostic output (#133547) refactor(ui): avoid redundant presence work in avatar lists (#133548) fix(agents): recognize internal requester completion replies (#133543) fix: prevent duplicate queued user messages in chat clients (#133542) chore(ui): refresh control ui locales (#133544) fix(beam): restart delivery when the receiver changes (#133533) ...
…cked-delivery * origin/main: (261 commits) fix(clawdock): keep credentials out of diagnostic output (openclaw#133547) refactor(ui): avoid redundant presence work in avatar lists (openclaw#133548) fix(agents): recognize internal requester completion replies (openclaw#133543) fix: prevent duplicate queued user messages in chat clients (openclaw#133542) chore(ui): refresh control ui locales (openclaw#133544) fix(beam): restart delivery when the receiver changes (openclaw#133533) fix(models): recover /models browse from a replaced prepared catalog (openclaw#133221) perf(terminal): reuse control scans and remove repeated sanitization work (openclaw#133527) perf(agents): prepare only consumed tool and skill diagnostics (openclaw#133512) fix(line): offer the card command only on LINE (openclaw#132895) fix: keep Android publication independent of core release (openclaw#133471) refactor(agents): simplify compaction accounting (openclaw#133521) refactor(plugins): simplify registration lifecycle policy (openclaw#133364) perf(plugins): avoid eager loader imports for active registry reads (openclaw#133518) refactor(ui): consolidate chat rendering ownership (openclaw#133508) test(auto-reply): prepare memory flush model capabilities (openclaw#133532) fix(ui): replace startup hourglasses with capacity-aware rings (openclaw#133470) fix(talk): preserve provider conversation order in browser transcripts (openclaw#133493) fix(ui): deduplicate participant and viewer avatars (openclaw#133519) feat(ui): add CRT terminal theme (openclaw#133495) ...
What Problem This Solves
Fixes an issue where changing Beam's mirror endpoint after a successful upload silently skipped unchanged active sessions at the new receiver. Pending completion updates could also be sent to a receiver that had never accepted the session.
Why This Change Was Made
The mirror now owns one current receiver and resets its acknowledgements, terminal retry tracking, and redirect block together when that endpoint changes. This fixes the destination boundary without adding another delivery path or changing retry scheduling, retention, authorization, or redaction.
The review also removes redundant traversal of already-typed runtime configuration, simplifies HTTP acknowledgement handling, and removes an unreachable fallback in catalog share routing. The mirror's shutdown, bounded retry, and transcript-cursor safeguards remain intact. Production LOC: +19/-26 (net -7); tests and test support: +24/-3 (net +21). No new dependencies, configuration options, or storage changes.
User Impact
Unchanged active sessions publish once to a newly configured receiver, including when returning to a previous endpoint. Old terminal work is discarded on an endpoint change; rows at the previous receiver retain their normal expiry. Named, bare-id, and stale-title share links keep their current behavior. The Beam guide documents the receiver-switch behavior.
AI-assisted implementation; I reviewed the owning runtime, receiver, catalog, client, existing regressions, and the final diff.
Evidence