Restyle the shared conversation surface (SessionTranscriptView) #155

Closed
opened 2026-11-03 17:09:10 +01:00 by AlexKucera · 2 comments
Owner

Part of #153
Blocked by: #154

Question

Build slice 1 — port the locked contract into SessionTranscriptView: right-aligned user capsules, serif agent prose (markdown parsed at flush, verbatim while streaming — the Vivarium #97 pattern), the ThinkingBlock port (recessed card, open while live, collapsed when flushed), the composer restyle with the debug toggle at its trailing edge, and the liveness treatment per contract. The Sessions pane inherits the same surface — verify both render sites. Close with xcodebuild build + test green, swiftformat + swiftlint clean, and a devlog.

[Generated by AI]

Part of #153 Blocked by: #154 ## Question Build slice 1 — port the locked contract into `SessionTranscriptView`: right-aligned user capsules, serif agent prose (markdown parsed at flush, verbatim while streaming — the Vivarium #97 pattern), the ThinkingBlock port (recessed card, open while live, collapsed when flushed), the composer restyle with the debug toggle at its trailing edge, and the liveness treatment per contract. The Sessions pane inherits the same surface — verify both render sites. Close with xcodebuild build + test green, swiftformat + swiftlint clean, and a devlog. [Generated by AI]
AlexKucera added the wayfinder:task label 2026-11-03 17:09:18 +01:00
Author
Owner

Contract landed (#154, resolution: #154 (comment)): ref/prototypes/wf154-mentor-pane-prototype.html @ 9b1fa75. This slice owns: capsule (terracotta wash 14%, fg ink, sans 13/1.5, pads 16/12, radius 12/12/2/12 — 2pt tail bottom-trailing, 85% cap, trailing-aligned inside the cap), serif-15/1.6 agent prose, thinking card (mono-11 toggle, serif-13 muted) + inset status box + research-note cards on fg-wash 6% (borderless, radius 10), liveness = floating chip above the composer while streaming only (Send → terracotta-outlined Stop), input = surface + border radius 10, debug = mono-10 text toggle at the composer's trailing edge. Turn rhythm 18px, pads 16/18.

[Generated by AI]

Contract landed (#154, resolution: https://git.babylondreams.de/AlexKucera/museion/issues/154#issuecomment-26435): `ref/prototypes/wf154-mentor-pane-prototype.html` @ `9b1fa75`. This slice owns: capsule (terracotta wash 14%, fg ink, sans 13/1.5, pads 16/12, radius 12/12/2/12 — 2pt tail bottom-trailing, 85% cap, trailing-aligned inside the cap), serif-15/1.6 agent prose, thinking card (mono-11 toggle, serif-13 muted) + inset status box + research-note cards on fg-wash 6% (borderless, radius 10), liveness = floating chip above the composer while streaming only (Send → terracotta-outlined Stop), input = surface + border radius 10, debug = mono-10 text toggle at the composer's trailing edge. Turn rhythm 18px, pads 16/18. [Generated by AI]
AlexKucera self-assigned this 2026-11-04 08:53:01 +01:00
Author
Owner

Resolution — build slice 1 landed.

The shared conversation surface (SessionTranscriptView.swift) now wears the editorial chat voice per the locked contract (ref/prototypes/wf154-mentor-pane-prototype.html). Both render sites (Mentor column + Sessions detail column) get it — the 85% capsule cap follows live column width via GeometryReader, so the wider Sessions column is honored, not the static 356.

What shipped

  • Three voices — speaker(of:) (static nonisolated, test-pinned in ACPClientTests) maps the model's existing prefixes: "Mentor: " → agent prose, "You: " → user capsule, everything else (refusals, pass kick-off labels, Blind Read reveal) → the system status box.
  • Agent prose: serif 15/1.6 full width; markdown parses at flush, verbatim while streaming (Vivarium #97 pattern, inlineOnlyPreservingWhitespace + verbatim fallback).
  • User capsule: terracotta wash 14%, sans 13/1.5, pads 16/12, radius 12/12/2/12 (2pt tail bottom-trailing), 85% cap of the live content column.
  • Status box: mono 11/1.5 muted on the fg-wash 6% card (the ruled card fill — borderless, radius 10).
  • ThinkingBlock port: mono-11 toggle (spinner while live), serif-13 muted on the wash card; open while live, collapsed when flushed, per-instance expansion state. Replaces ThoughtRow.
  • Research-note cards inherit the wash family (the #154 folded derivation).
  • Composer: surface-fill input (radius 10, border), ONE button — accent Send / terracotta-outlined Stop (defaultAction rides Send only), floating .thinMaterial liveness chip above the composer (streaming only, hit-through — the old inline row died), plain Return sends / Shift+Return breaks the line (Vivarium owner-report fix — the previous composer could not type a newline at all), send() empty-trim guard.
  • Debug toggle moved to the composer's trailing edge (settled #5): mono-10 lowercase text toggle via new debugBinding: Binding<Bool>? (nil = no toggle — Sessions). @AppStorage("mentorDebugRows") ownership stays in MentorPaneView; its header checkbox is deleted (header keeps title + engine status + session chip — the rest of the header restyle is #156).

Deliberately unchanged

  • isWritingRow and the debug gating (thinking stays debug-only in the writing voice — the settled treatment rules styling, not visibility; one-line change + pin update if the owner wants thinking visible always).

Verification

  • xcodebuild build → BUILD SUCCEEDED
  • -only-testing:MuseionTests test → xcresult: 582/582 passed, 0 failed, 0 skipped; the new classifier test confirmed executed + Passed in the xcresult (count, not banner).
  • swiftformat (changed files only) + swiftlint: no errors (two warnings in the repo's tolerated band — file 573/1000-error, type body 271/350-error; ProfileProvisioner precedent).
  • Devlog: docs/devlog/20261104-issue155-shared-conversation-surface-editorial-voice_log.md.
  • Code is uncommitted on main (working tree) — commit awaits explicit authorization.

Remaining on the map: Restyle the mentor pane chrome (MentorPaneView).

[Generated by AI]

**Resolution — build slice 1 landed.** The shared conversation surface (`SessionTranscriptView.swift`) now wears the editorial chat voice per the locked contract (`ref/prototypes/wf154-mentor-pane-prototype.html`). Both render sites (Mentor column + Sessions detail column) get it — the 85% capsule cap follows live column width via GeometryReader, so the wider Sessions column is honored, not the static 356. ## What shipped - **Three voices** — `speaker(of:)` (static nonisolated, test-pinned in `ACPClientTests`) maps the model's existing prefixes: `"Mentor: "` → agent prose, `"You: "` → user capsule, everything else (refusals, pass kick-off labels, Blind Read reveal) → the system status box. - **Agent prose**: serif 15/1.6 full width; markdown parses at flush, verbatim while streaming (Vivarium #97 pattern, `inlineOnlyPreservingWhitespace` + verbatim fallback). - **User capsule**: terracotta wash 14%, sans 13/1.5, pads 16/12, radius 12/12/2/12 (2pt tail bottom-trailing), 85% cap of the live content column. - **Status box**: mono 11/1.5 muted on the fg-wash 6% card (the ruled card fill — borderless, radius 10). - **ThinkingBlock port**: mono-11 toggle (spinner while live), serif-13 muted on the wash card; open while live, collapsed when flushed, per-instance expansion state. Replaces `ThoughtRow`. - **Research-note cards** inherit the wash family (the #154 folded derivation). - **Composer**: surface-fill input (radius 10, border), ONE button — accent Send / terracotta-outlined Stop (`defaultAction` rides Send only), floating `.thinMaterial` liveness chip above the composer (streaming only, hit-through — the old inline row died), plain Return sends / Shift+Return breaks the line (Vivarium owner-report fix — the previous composer could not type a newline at all), `send()` empty-trim guard. - **Debug toggle moved** to the composer's trailing edge (settled #5): mono-10 lowercase text toggle via new `debugBinding: Binding<Bool>?` (nil = no toggle — Sessions). `@AppStorage("mentorDebugRows")` ownership stays in MentorPaneView; its header checkbox is deleted (header keeps title + engine status + session chip — the rest of the header restyle is #156). ## Deliberately unchanged - `isWritingRow` and the debug gating (thinking stays debug-only in the writing voice — the settled treatment rules styling, not visibility; one-line change + pin update if the owner wants thinking visible always). ## Verification - `xcodebuild build` → **BUILD SUCCEEDED** - `-only-testing:MuseionTests test` → xcresult: **582/582 passed, 0 failed, 0 skipped**; the new classifier test confirmed executed + Passed in the xcresult (count, not banner). - swiftformat (changed files only) + swiftlint: no errors (two warnings in the repo's tolerated band — file 573/1000-error, type body 271/350-error; ProfileProvisioner precedent). - Devlog: `docs/devlog/20261104-issue155-shared-conversation-surface-editorial-voice_log.md`. - **Code is uncommitted on `main`** (working tree) — commit awaits explicit authorization. Remaining on the map: [Restyle the mentor pane chrome (MentorPaneView)](https://git.babylondreams.de/AlexKucera/museion/issues/156). [Generated by AI]
Sign in to join this conversation.