Repository navigation
fix: show complete public conversations and shared images - #169644
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 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +680, Tests +561, Docs -6. Total +1235 across 20 files. Added test files: 1. View PR surface stats
Review metrics
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 (4 earlier review cycles)
Reviewed October 12, 2026, 4:46 AM ET / 08:46 UTC (Revision 5). |
|
@clawsweeper re-review The remaining CI attribution is complete and documented in the PR body. Exact base |
|
🦞👀 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.
87b4342 to
2db38e0
Compare
|
@clawsweeper re-review The main-preview conflict is resolved on 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. |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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.
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=1passed 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
agentRunHasVisibleReplyexport insrc/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):
Publishing confirmation, captured through the actual mocked session-sharing menu:
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
2db38e0d6739f6e2b0c63de2e5044d1dbfb6b8f6passes 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
2db38e0d6739f6e2b0c63de2e5044d1dbfb6b8f6as mergeba55026edcdd8bbedea244a553e98d489d932594overc5fffa2a340a84fc7ec6cd36f23c9fe8d89bbbf3. Both observed root failures independently reproduce on that clean exact base:114725319577: type-suppression inventory expects 18 entries but the baseline has 19; the extra intentional Bunconnect({fd})suppression inscripts/lib/managed-cleanup-handoff.mts:146is missing from the unchanged inventory. Exact-base reproduction: 1 failed / 3 passed, 12.11s wall.114725319273(cancelled overall, completed failed Node step 18): the same inherited rewind query-count assertion atsessions-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 gate114726866178failed. 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.