Repository navigation
feat(ui): show a QR code next to the public session link - #180292
Conversation
OpenClaw-Publication: c885f01d-47fd-45e5-b8aa-12c791a68b02
|
🦞👀 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 changesAdds a locally generated QR code beside public session links in desktop and mobile sharing views. Example: Share https://team.example/chat/main/demo with someone nearby.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful sharing functionality absent from current main, and the previous caption finding is fixed. No actionable patch defect was found; overlapping QR work and incomplete CI need coordination. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sharing views consume the pane owner's confirmed publication state and canonical public URL, then lazily render an SVG QR without changing Gateway authorization. flowchart LR
A[Gateway sharing result] --> B[Existing sharing owner]
B --> C[Desktop sharing menu]
B --> D[Mobile sharing page]
C --> E[Lazy QR presentation]
D --> E
E --> F[Local SVG encoder]
F --> G[Recipient device]
Technical reviewBest possible solution: Keep one lazy public-link QR implementation, with the larger preview work building on whichever implementation lands first. Do we have a high-confidence way to reproduce the issue? This is a feature addition; current-main source confirms that public sharing currently offers copying without a QR. Is this the best way to solve the issue? The focused implementation reuses the existing sharing owner and pinned encoder, and its shared lazy presentation is justified by the desktop/mobile consumers and startup boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 23bf595953db. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +135, Tests +173, Docs 0, Config +1, Other +8. Total +317 across 13 files. Added test files: 1. 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 10, 2026, 5:29 AM ET / 10:29 UTC (Revision 2). |
OpenClaw-Publication: 80007692-596c-4ddb-b648-c1274e706cf8
Resolve conflicts with the sharing refactors on main: the desktop QR now renders in chat-session-sharing-content.tsx beside the copy action. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: ad12b1d4-3e9a-4e1b-bc56-e85a7c498eda
Main now holds chat boot JS and total CSS to the merge base. Move the QR wrapper and its copy into modules that only the lazily loaded sharing views import, and draw the code's fixed colors and layout inline in that chunk instead of growing shared stylesheets. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b7e71ded-e164-4cfa-99a1-5aa9c5d5c5c7
Integrate the corrected filename-normalized asset gate, document scanning, and allocate the existing 173 lines of desktop/mobile and failure-state regression coverage. Co-authored-by: vincentkoc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…0292) * feat(ui): show a QR code for the public session link * feat(ui): show a QR code next to the public session link OpenClaw-Publication: c885f01d-47fd-45e5-b8aa-12c791a68b02 * fix(ui): hide the QR scan caption when no code renders * Publish openclaw/public-share-qr-code OpenClaw-Publication: 80007692-596c-4ddb-b648-c1274e706cf8 * Publish openclaw/public-share-qr-code Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: ad12b1d4-3e9a-4e1b-bc56-e85a7c498eda * perf(ui): keep the public-link QR code out of chat boot Main now holds chat boot JS and total CSS to the merge base. Move the QR wrapper and its copy into modules that only the lazily loaded sharing views import, and draw the code's fixed colors and layout inline in that chunk instead of growing shared stylesheets. Co-authored-by: steipete <[email protected]> * Publish openclaw/public-share-qr-code Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b7e71ded-e164-4cfa-99a1-5aa9c5d5c5c7 --------- Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Update only the Control UI and shared Mermaid renderer DOMPurify pins from 3.4.16 to 3.4.17 for #196925. Regenerate the matching pnpm importers, package integrity, snapshot, and Mermaid transitive resolution using pnpm. Release adaptation: extract only the DOMPurify portion of the broad 93-file dependency refresh in #178071. Keep all other release dependency versions, overrides, patches, and runtime source unchanged. Generate the lock with pnpm 12.15.0 in this independently owned worktree; no shared install or parent checkout changes. Companion closure: both direct consumers and Mermaid's transitive edge resolve 3.4.17 with the source commit's exact integrity. Later same-path changes #179116, #181047, #182010, #182251, #184482, #185194, #188576, #189983, #189746, #192352, #194544, #180292 and 9651d63 are not prerequisites: other dependency updates, UI features/test setup, or the deliberately excluded Mermaid-to-Pele migration. Later source-PR mentions 8c9a696, b394c80 and #178708 concern plugin publish docs, MCP Apps ownership and the security-review token action, not DOMPurify. No DOMPurify API or consumer code companion is required for this patch-only version substitution. Validation: isolated frozen-lockfile install; 27 Markdown boundary tests; shared Mermaid renderer production build; dependency-pin guard (749 specifications, zero violations); exact-only manifest/lock delta audit; git diff --check. Browser Mermaid tests remain unqualified: Chromium cannot load libatk-1.0.so.0 on this host. No broad release qualification or publication is claimed. (cherry picked from commit f91bca9) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> (cherry picked from commit 9fd8f627dcfcd8553cf634474678587893d03992)
What Problem This Solves
People sharing a public session in person need a way to open its link on another device without typing or sending the URL.
User Impact
When Anyone with the link is enabled, desktop and mobile sharing show a scannable QR for the same URL as Copy public link. Sharing permissions and anonymous-reader behavior are unchanged.
Why This Change Was Made
The existing pinned QR encoder renders black modules on white with a four-module quiet zone. The encoder, copy and layout load behind the public-sharing view, with no external QR service or shared stylesheet growth. If loading or encoding fails, the code and its caption disappear while copying remains available.
The branch now incorporates the current filename-normalized performance comparison rather than changing its limits. The separate 173-line test allocation covers desktop/mobile payload and geometry checks in both themes and the unavailable-code fallback; the shared scalar is unchanged.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.
Evidence
Local candidate: 4857132; integration baseline: 442bf4a.
Before
After