Skip to content

Studio: tidy the message action bars, branch picker and fork icon - #12735

Merged
shimmyshimmer merged 3 commits into
mainfrom
studio-message-action-bar
Oct 5, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
studio-message-action-bar

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Tidies the chat message action bars, the branch picker (the < 3/3 > switcher for edited prompts and regenerated replies) and the fork icon.

  • Reply bar: Copy, Fork, Read aloud, Refresh, More
  • Prompt bar: Copy, Edit, More, then the branch picker

Changes

Reply action bar

  • Fork in new chat moves out of the More menu onto the bar, after Copy.
  • Read aloud sits after Fork. Stop reading shows in the same place while a reply is being read. It only shows when text to speech is on, as before.
  • Continue response moves into the More menu as its first item, with a right arrow instead of the play icon. It shows under the same conditions as before (newest finished reply, not being edited, no citations).
  • Delete moves to the More menu as its last item, in red. It is disabled while a reply is generating and hidden on research messages, as before.
  • The More menu is now: time, Continue response, Edit response, Export as markdown, (Save to project sources), Delete.
  • The "Read aloud on responses" setting (Settings > Chat) is removed. Read aloud is always in the bar now, so the toggle had nothing left to switch, and flipping its default would not reach users whose saved value is already off. Its strings are removed from every locale.

Prompt action bar

  • Fork and Delete move into a new More menu (Fork in new chat, then Delete in red). Deleting a prompt is rarely needed, so it no longer takes a slot on every message. The bar stays shown while the menu is open.
  • The bar no longer pulls right past the bubble: the last button's edge lines up with the bubble's edge, so the icons sit inside it.
  • The time is smaller (13px to 11.5px).

Icons

  • Fork actions use Hugeicons split, turned 90 degrees so it branches to the right and nudged left so it looks centred (src/lib/fork-icon.ts). This covers the reply bar, the prompt More menu, the fork count, the chat header menu, the sidebar and Library chat menus, and the browser tab menu. Icons that mark a chat as a fork (Library tiles, the Forks filter, search) are unchanged.
  • Read aloud, the Continue arrow and the Edit response pencil are redrawn about their centre (1.1x, 1.25x and 0.92x) so they match the stock icons' optical size at the same stroke (src/lib/action-bar-icons.ts). Copy is back to the stock glyph.
  • The gaps between icons are even: buttons are 36px apart, and the branch picker's gap matches.

Continued from chat

  • The divider label after a fork uses the link colour, underlined on hover only, with the workflow-circle-05 icon.

Branch picker

  • Smaller straight chevrons (16px) instead of the 36px lucide chevrons.
  • No hover fill: the chevron darkens on hover, so it reads as part of the count rather than a separate button.
  • The count drops the monospace font and fixed width, so there is less space around 3/3.
  • On prompts, the next arrow ends where a last action icon would, inside the bubble's edge.

Before / after

Before After
Reply bar Copy, Continue (play), Refresh, Delete, More Copy, Fork, Read aloud, Refresh, More
Reply More menu Read aloud (if not pinned), Edit response, Fork in new chat, Export as markdown Continue response, Edit response, Export as markdown, Delete
Prompt bar Copy, Edit, Fork, Delete Copy, Edit, More (Fork in new chat, Delete)
Fork icon lucide git-branch Hugeicons split, branching right
Branch picker 36px chevrons, pill-shaped hover 16px chevrons, no hover fill

Testing

  • npm run typecheck is clean. npm test: 10480 of 10481 pass. The one failure is in system-status-verdict.test.ts and fails the same way on the base commit.
  • chat-thought-continuation.test.ts now checks the new bar order, that Continue response leads the More menu and that Delete is its last item.
  • No new lint errors in the changed files.
  • Checked in Chrome on chats with a reply, an edited prompt and a fork:
    • Both bars show the buttons above, and both More menus open with the items above.
    • The prompt bar stays shown while its menu is open.
    • Deleting a reply removes it from the chat and from storage, and the prompt above it stays.
    • Continued from chat matches answer link colour and only underlines on hover.

Reply action bar is now Copy, Continue response, Read aloud, Refresh, More.

- Read aloud sits in the bar (when text to speech is on), where Delete was. The
  "Read aloud on responses" setting is removed, since there is no menu copy left to switch to.
- Delete moves to the More menu as its last item, in red. A user message keeps its own button.
- Continue response uses a right arrow instead of a play icon, which read as audio playback.
- Copy and the Continue arrow are rescaled to match Refresh's optical size (action-bar-icons.ts).
- Branch picker: smaller straight chevrons with no hover fill, a tighter count, and the user
  message's next arrow lined up with the bubble's edge.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T12:55:11.498469Z 8eb5df2 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 0ef8774535

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Reply bar: Copy, Read aloud, Fork, Refresh, More. Continue response moves to
the top of the More menu, and Fork in new chat leaves it for the bar.

Prompt bar: Copy, Edit, More, with Fork in new chat and Delete in the menu.
The bar sits inside the bubble's edge and the time is smaller.

Fork actions use the split icon turned to branch right. Continued from chat
takes the link colour, underlined on hover, with the workflow icon. Copy is
back to the stock glyph and Read aloud is drawn slightly larger.
@shimmyshimmer shimmyshimmer changed the title Studio: tidy the message action bar and branch picker Studio: tidy the message action bars, branch picker and fork icon Oct 5, 2026
Reply bar is now Copy, Fork, Read aloud, Refresh, More. The fork glyph is
slightly smaller and nudged left to sit centred, and the Edit response
pencil is drawn slightly smaller to match the other menu icons.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 8eb5df2f46

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit f237582 into main Oct 5, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-message-action-bar branch October 5, 2026 13:11
danielhanchen added a commit that referenced this pull request Oct 5, 2026
… menu item (#12751)

#12735 moved Delete into the More menu. The research gate became the hook's
hidden: Boolean(researchRunId || ownsResearchMessage) plus 'if (hidden) return null' in
the menu item, so the literal 'if (researchRunId || ownsResearchMessage)' this test
pinned is gone although research messages still get no Delete.

Assert the gate in its new shape, in the hook and in the item that honours it.
danielhanchen added a commit that referenced this pull request Oct 5, 2026
… it (#12748)

* studiobench: delete through the reply's More menu, where #12735 moved it

#12735 took Delete off the assistant action bar and made it the last item of the More
menu. delete_message still waited for a 'Delete message' button, so the real-path
session reported 'delete_message: NOT RUN -- no Delete button' and failed its liveness
gate on every pull request. The stop action's cleanup had the same lookup.

Open the More menu before the clock starts and select its Delete item; close the menu
when the item is missing. Add a node selftest that runs the shipped DELETE_JS through
the menu, and a check that every control name the scene asks for is still rendered by
thread.tsx.

* studiobench delete: watch for the menu portal, bound the cleanup menu by the slot

Look for the portaled More menu only when body's children change, then for the item
inside it, instead of a document-wide query every paint inside the measured window.

The stop action's cleanup now waits for that menu, which OWN_TURN_RESERVE_MS never
priced. Bound the wait by what is left of the slot (floor 100 ms, cap 1000 ms) and
sweep a menu that never opens over every drain time in the slot-budget test.

* studiobench control check: read only what the assistant action bar renders

The check collected tooltips and More-menu labels from all of thread.tsx, so it still
passed if the assistant bar dropped DeleteMessageMenuItem, because the component's own
definition and the user message menu still carried the names. Walk AssistantActionBar
and the thread.tsx components it renders instead.
danielhanchen added a commit that referenced this pull request Oct 5, 2026
… bar rework (#12763)

Main is over the startup budget: 6,278.6 KB raw / 1,879.0 KB transfer against
6,237.3 / 1,867.2. Built commit by commit from #12347, no single import is
responsible: #12347 itself left 2.9 KB transfer over, the Sandbox settings tab
(#12215) added 16.4 KB raw / 4.5 KB transfer, #12735 2.9 KB raw, and the rest is
spread over the other merges, all in the eager chat, index and settings chunks.
Put back the margin the previous raises chose (210.8 KB raw, 65.1 KB transfer).
danielhanchen added a commit that referenced this pull request Oct 6, 2026
…x slot (#12781)

* Branch picker chevrons: give back the 24px hit target in the same 20px slot

#12735 shrank .aui-branch-chevron-btn from 24x32 to 20x20 to make the chevrons read
as part of the count. That dropped them under the 24px every footer control keeps
since #12173, which playwright_user_message_time.py checks, so 'Frontend build +
bundle sanity' fails on main once its earlier steps pass (#12770, #12772).

Size the button 24px and take the extra 4px back with a -2px margin. Every footer
element stays where it was and the glyph centres do not move; only the clickable
area grows, and with no hover fill it is not visible.

* Branch picker chevrons: make 24px a floor, not a multiple of the space scale

24px * --ui-space-scale fell to 19.2px at the 12px UI font size (scale 0.8). Size
the target as max(24px, the scaled 20px slot) and hand the difference back with the
margin, so the slot and the glyph centre still follow the scale while the hit area
never drops under 24px. Add the 12px layout to playwright_user_message_time.py,
which only covered 15px and 20px and so could not see it.

* Branch picker chevrons: grow the hit area toward the count, and scale its floor with Interface Scale

The symmetric -extra/2 margin pushed Previous over the Delete/More button beside it:
at the 12px UI font the gap is 1.6px and the extra 8px, and at the browser's 50%
Interface Scale a fixed 24px reached 7px past the slot. In an overlap the later
element wins the click.

Put the extra on the inner side only (toward the count, which is not a control),
with padding keeping the glyph where it was, and make the floor 24px times the
browser Interface Scale, as browser zoom would. The browser check now asserts no
two footer controls overlap and adds the 50% Interface Scale layout; the previous
commit fails the overlap check at 12px.

* Branch picker chevrons: extend the hit area with a ::before so the button and focus ring stay as drawn

Growing the button itself moved its focus ring: a 24px circle off the glyph's
centre and over the count. The button is back to the 20px slot, scaled; an
invisible positioned ::before carries the extra toward the count, and, being
positioned, paints over the count so presses there reach the chevron (the
previous padding never did: the count, painted later, took them).

The layout check now measures each control's real target by hit testing the
middle of every edge, and requires the chevron's own box to stay square and
unpadded so the ring stays centred on the glyph.

* Branch picker: keep the count at least as wide as both chevron extensions

In a narrow custom chat font a short count such as 1/2 can be narrower than
the two ::before extensions together, and Next would then win presses on the
inner edge of Previous. The count now has a minimum width of both extensions
plus 1px, centred; any count wider than that, the usual case, is untouched.
The layout check gains a narrow-count layout at the smallest UI font.

* Branch picker: reserve room above and below for the chevron targets

At 200% Interface Scale and the 12px UI font the target reaches 8px past the
box on each side, more than the footer's 6.4px row gap, so once the picker
wrapped onto its own row it took the lower edge of the action buttons above.
The chevrons now carry block margins of half the extra: inside one row with
the actions they fit in the row's height and nothing moves; a wrapped picker
row grows to hold its targets. The layout check gains 200% layouts at 375 and
320px; the previous head fails them.
danielhanchen added a commit that referenced this pull request Oct 6, 2026
…ack Copy in the dismissal probe (#12827)

#12735 moved Delete off the assistant action bar into the More menu. Three
browser harnesses still asked for a "Delete message" button:

- playwright_heavy_thread.py could not run its delete action, which reports
  HARNESS-BROKEN and fails Frontend build + bundle sanity now that the steps
  before it pass. It now opens More and selects Delete, with the menu opened
  before the clock starts so the number is still what Delete costs.
- playwright_thread_weight.py, a measurement harness CI does not run, the same.
- probe_dismiss_guard.py, the next step in that job, attacked the Delete
  button and would error on every case. Delete is now inside the menu, where a
  dismissal cannot reach it, so the probe attacks the reply's Copy button and
  counts clicks reaching it on window in the bubble phase, which the guard's
  capture-phase swallow stops. Each case first clicks Copy directly and needs
  that counted, and needs the press point uncovered by the open menu.

test_thread_harness_controls_exist.py requires every control the three ask
for to be rendered by the assistant action bar in thread.tsx.
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.

1 participant