Repository navigation
fix(workbench): give conversation controls one look and move the rail aside - #6419
Conversation
… aside The conversation hand-rolled each control. The turn status, process group, thinking and tool headers were four separate buttons with their own text sizes and hover and focus fills, and the footer and source toggles were 32-point buttons styled one by one, mixing four fills. A keyboard focus fill matched the hover and selected look. Two shared controls in ui.tsx now draw them: Disclosure (the chevron row with an optional trailing control; the terminal keeps each row's inset) and IconButton. Both share one hover and press fill and show keyboard focus as an accent ring. On the desktop, replies between tool calls no longer render a source toggle. Hidden until hover, it still reserved a 40-point row under every interim paragraph and showed as a lone icon when the pointer crossed it. The final reply and the terminal keep the toggle. The desktop turn rail moves out of the 800-point reading column to the conversation's right edge, so it no longer floats beside the text and the transcript scrollbar no longer sits between the two. The wrapper reserves the rail's width so narrow windows never overlap it. The terminal keeps the rail in the row. Generated-by: Claude Code
Keep the conversation control and rail changes while adopting the current NSH layout events and typed component references. Generated-by: Codex
Astro-Han
left a comment
There was a problem hiding this comment.
Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.
I reviewed all eight changed files at b8bd6c16f8b9f39e4c513f52f7f44a8366322cf4. I found no verified P0–P2 issue in the reviewed code paths.
ui.tsx:134–219 introduces Disclosure and IconButton: the call sites keep their existing captured inputAction payloads, disabled conditions, accessible labels and owner/session checks. I traced copy/fork/usage and tool/thinking toggles through those wrappers. Conversation.tsx keeps the transcript's scroll, read-exposure and navigation callbacks while nesting its reading column inside a full-width wrapper; the desktop rail is placed at the right edge, with railWidth() + 8 reserved on both sides. The terminal still mounts the rail next to the transcript.
The desktop source-toggle removal in MessageRow.tsx:118–120,177 is a deliberate capability change: an intermediate reply no longer offers entry into source mode. Final replies and terminals retain it; a row already in source mode can still switch back. This matches the behavior change described in the PR.
I inspected all four attached before/after images. They illustrate the tighter action rows, focus ring and separate rail, but the described fixtures use mocked rows and a rail wrapper; I did not treat them as full-Host desktop acceptance. I did not independently execute the reported Rust suites, typecheck or screenshot renderer.
A static merge with current rust-preview (da85012dfb6b23ee0ad1254f8e86544e219077b0) is clean. No exact-head CI checks are present. This diff changes neither database schema nor Runtime Host wire protocol. Native focus/hit-testing, responsive layout across text scales, and full conversation rendering remain unverified here.
Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.
Summary
Trying the desktop on a real conversation, three things read as unfinished: the turn's foldable rows and small buttons do not look like one set, the turn rail floats in the middle of the text, and an expanded turn shows stray buttons and gaps.
ui.tsxnow has two controls that draw all of them:Disclosure(the chevron row, with an optional trailing control; the terminal keeps each row's inset) andIconButton. Both use one hover and press fill. Keyboard focus is an accent ring instead of the same gray fill as hover and selection.live_markdown_source_mode_survives_canonical_handoffstill covers it there). This drops the hover/keyboard access fix(workbench): clearer copy and message source icons #6406 kept for interim replies; if that access matters, an overlay that takes no layout space is the alternative.Behavior and accessible labels are unchanged apart from the interim toggle. The final reply footer still has copy, fork, usage and source; trimming it is a separate decision.
Verification
cargo test -p maka-cli -p maka-desktop-shell --test terminal_real_host: 51 passed, 1 ignored. An earlier revision emptied the transcript in all of these tests, which caught a missingflexDirectionon the new wrapper.cargo test -p maka-terminal-shell --lib every_visible_turn_mark(pixel-mode rail clicks): passed.ui_types, thentsc --noEmit --skipLibCheck false: no errors. Biome format and lint: clean.WgpuHeadlessRendererpath the rail test uses. A temporary fixture (not committed) mounts the actualTurnSummary,TurnPanel,MessageRowandFinalActionswith mock rows, at 800×640 logical points, scale 2. The rail image mountsTurnNavigationin the same wrapper styles asConversation, because the full conversation needs a Host.just check, and the packaged desktop app on a real Host.AI use
Tool(s) and scope: Claude Code wrote the change, the offscreen screenshots and this description; the commit carries
Generated-by: Claude Code.Checklist
Does this PR entail a change in behavior?