Skip to content

fix(workbench): give conversation controls one look and move the rail aside - #6419

Merged
M4n5ter merged 2 commits into
rust-previewfrom
fix/workbench-unify-conversation-controls
Oct 28, 2026
Merged

M4n5ter merged 2 commits into
rust-previewfrom
fix/workbench-unify-conversation-controls

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

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.

  • One look for conversation controls. The turn status, process group, thinking and tool headers were four separately styled buttons (text sizes 14 and 13, hover and focus fills drawn from four different colors), and each 32-point footer or toggle button repeated its own styles. ui.tsx now has two controls that draw all of them: Disclosure (the chevron row, with an optional trailing control; the terminal keeps each row's inset) and IconButton. Both use one hover and press fill. Keyboard focus is an accent ring instead of the same gray fill as hover and selection.
  • No source toggle between tool calls on the desktop. Since fix(workbench): clearer copy and message source icons #6406 the toggle on interim replies was invisible until hover, but it still reserved a 40-point row under every interim paragraph and showed up as a lone icon when the pointer crossed it. Interim replies now have no action row on the desktop. The final reply keeps its toggle, and so does the terminal, which has no hover (live_markdown_source_mode_survives_canonical_handoff still 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.
  • Turn rail at the edge. On the desktop the rail moves out of the 800-point reading column to the conversation's right edge, so it no longer sits against the text with the transcript scrollbar between them. The wrapper reserves the rail's width, so a narrow window shrinks the column instead of overlapping it. The terminal keeps the rail where it was.

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.

Light: before and after

Dark: before and after

Keyboard focus: before and after

Desktop rail after the change

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 missing flexDirection on the new wrapper.
  • cargo test -p maka-terminal-shell --lib every_visible_turn_mark (pixel-mode rail clicks): passed.
  • Workbench declarations from ui_types, then tsc --noEmit --skipLibCheck false: no errors. Biome format and lint: clean.
  • The screenshots are real GPUI frames, rendered offscreen with the same WgpuHeadlessRenderer path the rail test uses. A temporary fixture (not committed) mounts the actual TurnSummary, TurnPanel, MessageRow and FinalActions with mock rows, at 800×640 logical points, scale 2. The rail image mounts TurnNavigation in the same wrapper styles as Conversation, because the full conversation needs a Host.
  • Not run: the full just check, and the packaged desktop app on a real Host.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Claude Code wrote the change, the offscreen screenshots and this description; the commit carries Generated-by: Claude Code.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

… 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
@M4n5ter
M4n5ter merged commit 62e4c36 into rust-preview Oct 28, 2026
@M4n5ter
M4n5ter deleted the fix/workbench-unify-conversation-controls branch October 28, 2026 12:05

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants