Skip to content

fix(workbench): preserve reply details and align sidebar actions - #7126

Merged
ARE404 merged 4 commits into
apache:rust-previewfrom
ARE404:feat/conversation-reply-details
Nov 21, 2026
Merged

ARE404 merged 4 commits into
apache:rust-previewfrom
ARE404:feat/conversation-reply-details

Conversation

@ARE404

@ARE404 ARE404 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Show direct answers without an empty activity header or a blank space for a disclosure arrow. In imported conversations, folding tool activity keeps the reply text visible.
  • Show duration and reported input/output tokens when hovering over a reply. New Quick Question replies retain their measurements when opened in the main window. Older text-only imports show a short message explaining that usage was not recorded.
  • Give the sidebar’s More menu a 32-point slot at the trailing edge. In the tested 232-point row, this increased the space for the title from 108 to 200 points.

Verification

  • All 231 workbench tests passed after rebasing onto rust-preview. Rust formatting, Biome, and the workbench TypeScript check with freshly generated UI declarations passed.
  • Before the rebase, the native tests passed for quick-question usage surviving import, provider-reported counters, reply actions on hover or focus, and the sidebar menu opening a conversation in a side pane.
  • Verified in the macOS app using a conversation containing both imported and native replies. The native reply displayed 4.2 seconds, 5,199 input tokens, and 3 output tokens. The imported reply had only question and answer text. Opened the sidebar menu and measured its width.
  • The full cross-platform suite was not run locally.
Native reply on hover Older imported reply on hover
Native reply showing duration and reported tokens Text-only import showing that duration and usage were not recorded
Sidebar before Sidebar after
More menu taking up space beside a short title More menu aligned to the trailing edge with room for longer titles

AI use

  • Generative tooling made a substantive contribution

OpenAI Codex implemented the changes, added regression coverage, verified the UI, and prepared this description.

Generated-by: OpenAI Codex

Checklist

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

Does this PR entail a change in behavior?

  • Yes — described under Summary above

@ARE404
ARE404 merged commit 9d5429f into apache:rust-preview Nov 21, 2026
12 of 14 checks passed
M4n5ter added a commit that referenced this pull request Nov 21, 2026
…and align quick reply details (#7130)

Follow-up to #7126:
- Remove the redundant style on the sidebar conversation <Menu> that disabled NSH lay_out_through and collapsed the actions button from 32 pt to 16 pt tall (regressing #6973 while #7068 had already fixed the width). Assert more.size.height == title.size.height in the desktop regression test.
- Fold non-empty thinking rows in imported turns consistently with native turns even when a turn has no tool calls, keeping imported reply text visible outside folded work.
- Scope the -8 left offset and Show message source button in MessageRow to icon-led action rows so Quick Question replyDetails aligns flush with the reply text without adding a stray source-toggle button on hover.

Refs #7126

Generated-by: Maka (Antigravity)
@M4n5ter

M4n5ter commented Nov 21, 2026

Copy link
Copy Markdown
Member

@ARE404 Thanks for the PR! We spotted three small follow-up issues after merge and cleaned them up in #7130:

  1. Sidebar <Menu> height collapse (regressed fix(workbench): center the sidebar conversation actions button #6973): fix(workbench): keep sidebar conversation actions at their declared width #7068 had already fixed the 32 pt width on rust-preview by removing flexGrow: 1 from the trigger <Button>, relying on NSH lay_out_through. Adding style={{ width: 32, flexShrink: 0 }} on <Menu> (carried over from before the rebase) disabled lay_out_through and collapsed the actions button from 32pt to 16pt tall pinned to the top edge of the row. We removed that style and added more.size.height == title.size.height to the desktop test assertion.
  2. Imported thinking without tool calls: In processGroups.ts, imported turns with thinking and no tool calls were leaving thinking unfolded as a top-level row instead of folding it under the turn summary like native turns. We aligned imported turns so non-empty thinking folds consistently while reply text stays visible.
  3. Quick Question replyDetails alignment: In MessageRow.tsx, marginLeft: -8 and the Show message source button are now scoped to icon-led action rows so Quick Question replyDetails aligns flush with the reply text without adding a source-toggle button on hover.

@ARE404

ARE404 commented Nov 21, 2026 via email

Copy link
Copy Markdown
Contributor Author

@ARE404
ARE404 deleted the feat/conversation-reply-details branch November 22, 2026 06:55
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