feat(share): toggle to collapse tool outputs in shared conversation #187

Merged
dries merged 1 commit from feat/shared-collapse-tool-outputs into main 2026-06-30 20:55:44 +02:00
Owner

Adds a "Collapse tool outputs" checkbox to the public shared-conversation page so the reader controls how verbose the printed PDF is.

  • Default on → compact PDF; toggling off expands every tool block.
  • New PrintCollapseContext lets ToolCallDisplay skip its print-time force-expand when collapse is requested; individually-expanded blocks still print expanded.
  • Print CSS keeps preview caps in place under .oc-collapse-tools.

Verified with the new SharedConversationView.test.tsx plus full tsc -b, eslint, and vitest run.

Adds a "Collapse tool outputs" checkbox to the public shared-conversation page so the reader controls how verbose the printed PDF is. - Default on → compact PDF; toggling off expands every tool block. - New `PrintCollapseContext` lets `ToolCallDisplay` skip its print-time force-expand when collapse is requested; individually-expanded blocks still print expanded. - Print CSS keeps preview caps in place under `.oc-collapse-tools`. Verified with the new `SharedConversationView.test.tsx` plus full `tsc -b`, `eslint`, and `vitest run`.
feat(share): toggle to collapse tool outputs in shared conversation
All checks were successful
CI / Frontend (pull_request) Successful in 4m1s
CI / Backend (pull_request) Successful in 5m10s
CI / Build Desktop (macOS arm64) (pull_request) Successful in 47s
CI / Playwright E2E (pull_request) Successful in 7m8s
CI / Build (pull_request) Successful in 3m23s
CI / Semantic Tag (pull_request) Has been skipped
CI / Coverage Ratchet (pull_request) Successful in 4m31s
4c7402a212
Add a "Collapse tool outputs" checkbox to the public shared-conversation
page (default on) so the reader controls how verbose the printed PDF is.
A new PrintCollapseContext lets ToolCallDisplay skip its print-time
force-expand when collapse is requested; individually-expanded blocks
still print expanded. Print CSS keeps preview caps in place under
.oc-collapse-tools.

Coverage ratchet: pass

Suite Baseline This PR Δ
go 69.50% 69.50% +0.00
frontend 58.30% 58.50% +0.20

Tolerance: -0.1%. Baseline stored on gh-pages.

<!-- coverage-ratchet --> ### Coverage ratchet: ✅ pass | Suite | Baseline | This PR | Δ | | |---|---|---|---|---| | go | 69.50% | 69.50% | +0.00 | ✅ | | frontend | 58.30% | 58.50% | +0.20 | ✅ | _Tolerance: -0.1%. Baseline stored on `gh-pages`._
dries merged commit 3bb1ce825e into main 2026-06-30 20:55:44 +02:00
Sign in to join this conversation.
No description provided.