Repository navigation
Studio: tidy the message action bars, branch picker and fork icon - #12735
Conversation
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.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
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.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
… 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.
… 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.
… 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).
…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.
…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.
Summary
Tidies the chat message action bars, the branch picker (the
< 3/3 >switcher for edited prompts and regenerated replies) and the fork icon.Changes
Reply action bar
Prompt action bar
Icons
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.src/lib/action-bar-icons.ts). Copy is back to the stock glyph.Continued from chat
workflow-circle-05icon.Branch picker
3/3.Before / after
Testing
npm run typecheckis clean.npm test: 10480 of 10481 pass. The one failure is insystem-status-verdict.test.tsand fails the same way on the base commit.chat-thought-continuation.test.tsnow checks the new bar order, that Continue response leads the More menu and that Delete is its last item.