Skip to content

fix: show complete public conversations and shared images - #169644

Merged
steipete merged 2 commits into
mainfrom
steipete/public-session-fidelity
Oct 12, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/public-session-fidelity

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Public session pages lose assistant progress messages, hide all tool activity, omit images, and paginate by raw transcript rows. In the reported published conversation, 138 transcript entries produced only three visible messages across two sparse pages.

User Impact

Readers can follow every user and assistant text message, expand compact tool steps, and view user, assistant, and tool-result images. Pages contain approximately 50 visible items in conversation order, with older pages available from the newest view.

Why This Change Was Made

The public projection now includes commentary and groups adjacent tool calls using the existing tool-display and redaction owners. Tool names and a short command, path, or query are public; tool-result text, reasoning, hidden/internal input, and interactive widgets remain omitted. Non-image user/assistant attachments, including audio and video, show filename chips without downloads. The publishing confirmation describes this expanded exposure and warns that image contents are not redacted and downloaded copies cannot be recalled. Review a conversation before publishing: redaction remains best effort, and future messages are public too.

Images use the existing inbound and outgoing media stores through a share-token, transcript-entry, and attachment-scoped route. Every request retains secure ingress, admission/rate limits, exact publication checks, and final revocation revalidation, including cached responses. Only magic-sniffed PNG/JPEG/GIF/WebP up to the existing 6 MiB image limit are served, with inline disposition, nosniff, and no-store. No remote URLs are fetched. The CSP remains same-origin for images. This intentionally expands the presentation of already-enabled public sessions and existing publication tokens, as requested for the reported published conversation. A new versioned grant or re-consent migration is outside this authorized contract; the updated confirmation is accurate for future enabling actions. Operators who relied on the old text-only view should review or disable their public sessions before updating. No schema or config changes.

The 32 KiB message and 256 KiB text-document caps stay unchanged. Ordinary raw page reads retain the 1 MiB budget; an oversized inline image gets one bounded 9 MiB envelope read and becomes a compact descriptor before rendering. Source scans remain bounded, so unusually large rows/history can still show an omission notice.

Evidence

Regression tests fail on the original renderer for missing commentary and images; the original raw-row reader produces visible page sizes 11/28/28/27/28 instead of 20/50/50. Candidate tests cover all text, grouped/redacted/capped tool summaries, image types/sizes/ownership, managed inbound paths, large inline images, pagination, and revocation. The real twenty-reader HTTP proof covers both canonical and token routes, plus two persisted publications and real encrypted tokens. Its media response results are: allowed image 200 with exact PNG bytes; cached conditional image 304; publication-A token targeting publication-B image 404; revoked during the awaited media read 503 with no image bytes; revoked cached conditional request 404. It uses no mocked token resolution, publication checks, or transcript reads. The existing media read is paused after retrieving its bytes to exercise final revocation. pnpm test src/gateway/control-ui-public-session.concurrent.test.ts --maxWorkers=1 passed in 113.0 seconds including wrapper/compilation (18.6 seconds test time).

Focused commands used pnpm test <file> --maxWorkers=1 (wall times including wrapper/setup): reader 236.96s (14 cases on a loaded host); renderer 9.45s; media 41.79s; token 34.85s; canonical HTTP 29.27s. Core and test typechecks, typed lint, formatting, diff checks, and docs link sanity were run. The first head passed CI run 38209549107 (1,707 total seconds across the selected Node test steps). The follow-up correction has focused local proof on its own head; its full CI outcome and inherited-failure exception are recorded below.

The full changed-check run found the pre-existing unused agentRunHasVisibleReply export in src/agents/agent-run-result.ts, whose bytes match origin/main. Remaining changed checks run with only that already-measured dead-export scan skipped; this PR does not alter its owner. No Team deployment or live-state changes.

Synthetic desktop and 390px mobile evidence (no private data):

Before After
Before desktop After desktop
Before mobile After mobile

Publishing confirmation, captured through the actual mocked session-sharing menu:

Before After
Before publishing confirmation desktop After publishing confirmation desktop
Before publishing confirmation mobile After publishing confirmation mobile

The sharing controller suite (43 tests), public renderer/media HTTP suites, UI typecheck, and localization verification pass. The keyless English baseline produced no generated-file changes.

Social-card integration and final local verification

Rebased after #169527 landed and caused genuine conflicts. The opening-request scan and receipt facts remain dedicated to preview cards; the public document uses visible-item pagination. Both consume the same public message/redaction owner, and canonical card/media URLs reuse one existing-identity token. The final synchronous publication checks and card fallback behavior remain intact. No schema, config, or dependency changes are introduced by this PR.

Head 2db38e0d6739f6e2b0c63de2e5044d1dbfb6b8f6 passes all eight focused public-session files: 79 tests in 236.13s with --maxWorkers=1, including the real card and media HTTP boundaries. pnpm tsgo:core (21.96s), pnpm tsgo:core:test (554.85s), pnpm tsgo:ui (33.18s), scoped typed oxlint (6.04s), oxfmt (0.88s), git diff --check, and docs formatting (29.73s; 1,338 files) pass. The authorized gateway setup/build also passed. Fresh isolated autoreview found only the already-disclosed request to re-consent existing publications; that recommendation is declined under the explicit maintainer instruction to expand existing published conversations, as explained above. No other review finding remains. Exact-head PR CI follows the pushed rebase.

Final exact-head CI disposition

CI 38223406030, attempt 1 tested 2db38e0d6739f6e2b0c63de2e5044d1dbfb6b8f6 as merge ba55026edcdd8bbedea244a553e98d489d932594 over c5fffa2a340a84fc7ec6cd36f23c9fe8d89bbbf3. Both observed root failures independently reproduce on that clean exact base:

  • Job 114725319577: type-suppression inventory expects 18 entries but the baseline has 19; the extra intentional Bun connect({fd}) suppression in scripts/lib/managed-cleanup-handoff.mts:146 is missing from the unchanged inventory. Exact-base reproduction: 1 failed / 3 passed, 12.11s wall.
  • Job 114725319273 (cancelled overall, completed failed Node step 18): the same inherited rewind query-count assertion at sessions-rewind.test.ts:676, expected 1 / observed 2. A fresh exact-base run with pinned Bun reproduces it: 1 failed / 24 passed, 65.05s wall. This is qualified as a failed root, not hidden among cancellations.

The failed tests, scanner/guard/cache owners and relevant dependencies are unchanged between exact base and tested merge. This PR adds no suppressions and the public-session code is not reached by the fork flow. Successful monitor 114725319212 / step 4 cancelled 26 other sibling jobs; those remain incomplete coverage. The downstream gate 114726866178 failed. Current-head Security Review 38223403499 passed. Landing uses the native pre-existing-failure admin exception, retaining both root attributions, exact source/checkout bindings, baseline logs, failed-step evidence, and cancellation provenance. No CI rerun or extra push was made for green.

@clawsweeper

clawsweeper Bot commented Oct 12, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XL labels Oct 12, 2026
@steipete
steipete marked this pull request as ready for review October 12, 2026 05:48
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds progress messages, grouped tool summaries, shared images, and visible-item pagination to public conversations.

Example: A public conversation compares five routes and produces a chart.

  • Before: Readers see two text messages without progress, tool steps, or charts.
  • After: Readers see five messages, two collapsed tool groups, and the shared charts.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Useful, approved scope with inspected visual evidence, focused boundary validation, and no remaining actionable finding; inherited CI failures remain red under the recorded native exception.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop/mobile public-page and confirmation screenshots show the changed presentation; recorded production-path HTTP output covers real publication/token/transcript owners, exact image bytes, cross-publication rejection, and revocation during media reads and cached conditional responses.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Public readers cannot follow assistant progress, tool steps, or shared images and encounter sparse pages.
Reason: The concrete reader problem and maintainer-approved exposure expansion justify the bounded implementation; the earlier consent and audio/video findings are resolved.

Merge readiness

✅ Ready for maintainer review

Keep this PR open for landing: it delivers the approved public-conversation improvements, resolves the earlier findings, and introduces no actionable defect found in this review.

Priority: P2
Reviewed head: 2db38e0d6739f6e2b0c63de2e5044d1dbfb6b8f6

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway public HTTP routes authorize a publication, read its transcript and local media, and return bounded anonymous HTML or image responses.

flowchart TD
Reader[Anonymous reader] --> Routes[Public HTTP routes]
Routes --> Admission[Shared request admission]
Admission --> Publication[Current publication owner]
Publication --> Transcript[Transcript and media owners]
Transcript --> Projection[Public content projection]
Projection --> Response[Final authority check and response]
Loading

Technical review

Best possible solution:

Land the approved presentation expansion with its existing publication checks, bounded reads, and accurate publishing disclosure.

Do we have a high-confidence way to reproduce the issue?

Current-main source explicitly filters commentary and omits images and tool activity; inspected before screenshots show the resulting sparse public view.

Is this the best way to solve the issue?

The implementation addresses projection and pagination at their public owner, reuses existing transcript and media storage, and preserves the separate preview-card contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b82b033920ee.

Provenance checked

  • Public content filtering and publishing disclosure changes intended behavior with a stated reason (48307ec: The original public-sharing feature deliberately exposed user text and final answers while excluding tools and images.)
  • Canonical public pages and raw-row pagination changes intended behavior with a stated reason (8787ee0: Canonical anonymous pages used bounded transcript reads and retained separate authenticated handoffs.)
  • Public preview opening scan and fallback keeps the original intent (63a034f: Preview cards require the opening public request even when later rows exceed document budgets, with generic fallback for unavailable publications.)
  • Public redaction and truncation keeps the original intent (9480581: Public title and message truncation must preserve UTF-16 character boundaries.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still omits the requested content: Fetched main excludes assistant commentary, projects text only, and pages by raw transcript rows; this PR remains distinct work. (src/gateway/control-ui-public-session-render.ts:180, b82b033920ee)
  • Final-effect publication authority: The media response checks current publication authority and representation validity synchronously before either image bytes or a conditional response. (src/gateway/control-ui-public-session-media.ts:128, 2db38e0d6739)
  • Allowed, cross-publication, and revoked HTTP cases: The inspected production-path HTTP scenario uses persisted publications, encrypted tokens, real transcript reads, and real image bytes; the recorded results are allowed 200, conditional 304, cross-publication 404, in-flight revocation 503 without image bytes, and revoked conditional 404. (src/gateway/control-ui-public-session.concurrent.test.ts:141, 2db38e0d6739)
  • Inspected visual evidence: Desktop and mobile before/after screenshots show restored progress, tool groups, and images; publishing-confirmation screenshots accurately disclose images, argument summaries, and irretrievable downloaded copies. (ui/src/i18n/locales/en.ts:3002, 2db38e0d6739)
  • Accepted existing-publication tradeoff: The maintainer request and current body explicitly accept expanding existing publications without a new grant or re-consent migration; operators relying on text-only exposure are advised to review or disable public sessions before updating. (2db38e0d6739)
  • Exact-head CI attribution updated: GitHub confirms the suppression-inventory failed job and the rewind job's failed Node step despite its cancelled conclusion. The body records independent reproductions on the exact base, and comparison with the verified test merge leaves their source owners unchanged. Collateral cancellations remain incomplete coverage. Raw log downloads were blocked at GitHub's Azure storage redirect, so their contents were not independently inspected. (test/scripts/type-suppression-inventory.test.ts:105, 2db38e0d6739)

Likely related people:

  • Peter Steinberger: Raw commit 48307ec adds src/gateway/control-ui-public-session-render.ts:22 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 48307ec958b0; files: src/gateway/control-ui-public-session-render.ts)

PR surface

Source +680, Tests +561, Docs -6. Total +1235 across 20 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 14 795 115 +680
Tests 5 588 27 +561
Docs 1 3 9 -6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 1386 151 +1235

Review metrics

Metric Value Why it matters
Production versus test changes Production +795/-115 lines; tests +588/-27 lines. Growth supports bounded image serving and visible-item pagination while replacing the previous text projection with one shared owner.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Improves incomplete public conversation views without an urgent core-runtime failure.
  • merge-risk: 🚨 security-boundary: Existing publications expose additional progress, tool summaries, and image contents; the maintainer explicitly accepted that expansion, and supplied HTTP evidence covers cross-publication denial and revocation before response.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 (4 earlier review cycles)
  • reviewed 2026-10-12T06:01:46.132Z sha bdc8b20 :: needs real behavior proof before merge. :: [P1] [P1] Update publishing consent for images and tool summaries | [P2] [P2] Preserve audio and video attachments as filename chips
  • reviewed 2026-10-12T07:21:56.031Z sha 87b4342670b030e5d864631899bdd932d44e8701 :: needs changes before merge. :: none
  • reviewed 2026-10-12T08:05:32.254Z sha 87b4342670b030e5d864631899bdd932d44e8701 :: needs changes before merge. :: none
  • reviewed 2026-10-12T08:33:47.448Z sha 2db38e0 :: needs changes before merge. :: none

Reviewed October 12, 2026, 4:46 AM ET / 08:46 UTC (Revision 5).

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The remaining CI attribution is complete and documented in the PR body. Exact base 80a44071913dfafe2d97f983710f5e48d3d99f75 independently reproduces the same sessions-rewind.test.ts:676 expected-one/observed-two upstream-link SQL assertion with the pinned Bun fork, both in the exact two-file selection (1 failed / 35 passed) and standalone (1 failed / 24 passed). The full rewind/guard/read-revision owner chain is unchanged in tested merge 41f08f2cc0196ecc54d54236a0a86bb389ed901e. The public-session code is not reached by that fork flow. The native inherited-failure exception will preserve the current-head red CI and its 16 fail-fast cancellations as incomplete coverage; no code/security findings remain and no CI rerun was requested.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Include assistant commentary and bounded tool-step groups in public transcripts. Page by visible items and serve shared images through publication-scoped media reads with existing redaction, ingress, rate, type, and size protections.
Describe the authorized expanded public presentation in the publishing confirmation. Keep audio and video filename chips, compact supported inline URL images, and prove image isolation and revocation through the complete HTTP response path.
@steipete
steipete force-pushed the steipete/public-session-fidelity branch from 87b4342 to 2db38e0 Compare October 12, 2026 08:24
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The main-preview conflict is resolved on 2db38e0d6739f6e2b0c63de2e5044d1dbfb6b8f6; preview opening scans/facts and card fallback remain intact, and cards/documents consume the same public text owner. All 79 focused public-session tests pass, including real preview-card and image HTTP authority tests; core/test/UI types, typed lint, format and docs checks pass.

The PR body records exact-head CI 38223406030 and both independently reproduced baseline failures: stale type-suppression inventory and the Bun rewind SQL-count assertion. The rewind job's completed failed step is explicitly qualified despite its cancelled job conclusion. All 26 collateral cancellations remain incomplete coverage. The native inherited-failure exception preserves these facts; no CI rerun was requested. Existing-publication exposure remains the explicit maintainer-approved scope already accepted in the prior review.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@steipete
steipete merged commit 2500d81 into main Oct 12, 2026
114 of 144 checks passed
@steipete
steipete deleted the steipete/public-session-fidelity branch October 12, 2026 09:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…69644)

* fix: show complete public conversations and shared images

Include assistant commentary and bounded tool-step groups in public transcripts. Page by visible items and serve shared images through publication-scoped media reads with existing redaction, ingress, rate, type, and size protections.

* fix: align public sharing consent and media fidelity

Describe the authorized expanded public presentation in the publishing confirmation. Keep audio and video filename chips, compact supported inline URL images, and prove image isolation and revocation through the complete HTTP response path.
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 merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL 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