Skip to content

Studio: inline message actions, matching response editor - #13615

Merged
shimmyshimmer merged 4 commits into
mainfrom
studio-chat-inline-actions
Oct 13, 2026
Merged

shimmyshimmer merged 4 commits into
mainfrom
studio-chat-inline-actions

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

What changed

Message action bars put the common actions back on the bar instead of behind More.

  • Responses: Edit response and Delete are buttons on the bar again (Copy, Edit, Refresh, Read aloud, Fork, Delete, More). More keeps Continue response, Export as markdown and Save to project sources. Edit response is still switchable in Settings > Chat; it is now on by default.
  • Prompts: Rewind, Fork in new chat and Delete are buttons on the bar (Copy, Edit, Rewind, Fork, Delete). The prompt's More menu is gone, since nothing is left in it. The now unused rewind.menuItem label ("Rewind...") is dropped from every locale.
  • Editing a response uses the same surface as editing a prompt: the same rounded muted box, regular text instead of monospace, and Cancel / Save inside the box at the same size as Cancel / Send. It spans the reply's full width and the action bar stays below it.

The "Edit response on responses" preference now defaults to on. Existing installs all stored the old off default, so the persisted preferences get a version bump that turns it on once; a choice made after that is kept.

Verification

  • npm run typecheck, npm run build, npm test: 12005 pass, 1 fail (image-restore-negative-prompt.test.ts, changeSamplerChoice is not defined; untouched by this PR).
  • New tests/message-action-bar-defaults.test.ts: default on, the v0 -> v1 migration, an explicit off kept after migration, and the bar / menu contents for both message kinds. Updated the two source-pinned assertions in chat-rewind.test.ts and chat-thought-continuation.test.ts.
  • Biome: no new findings in the changed files.
  • Isolated Studio built from this branch with a seeded two-message thread: read the button order on both bars, opened the reply's More menu, and opened both editors. The response editor measures 12 px under its buttons, matching the prompt editor (a margin would be zeroed by the reply's last-child rule in index.css, so the gap is padding).

Not exercised here: saving an edited response, and clicking Rewind, Fork or Delete (handlers unchanged).

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T15:22:17.897079Z ab275e2 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d48eae7c2

ℹ️ 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".

)}
<ForkCountBadge />
<ForkMessageButton />
<DeleteMessageButton />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Make the response action bar wrap in narrow panes

When TTS is enabled by default and timing data is available, adding this inline Delete control leaves the non-wrapping aui-assistant-action-bar-root with seven 32px icon buttons plus the timing badge. In a narrow viewport or an artifact pane resized toward its 34% minimum, that row exceeds the available message width; since the thread viewport uses overflow-x-auto, users get horizontal scrolling or undersized controls rather than a usable wrapped bar. Add responsive wrapping or overflow handling before keeping all of these actions inline.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in ab275e2: the reply footer and action bar now wrap like the prompt footer. Reproduced at 375 px with a branch picker and timing badge (row 24 px too wide, thread scrolled sideways); after the fix there is no horizontal overflow at 300 / 375 / 420 px and desktop stays one row.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 13, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: ab275e2ab0

ℹ️ 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 274b534 into main Oct 13, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-chat-inline-actions branch October 13, 2026 15:22
danielhanchen added a commit that referenced this pull request Oct 13, 2026
…ar (#13634)

#13615 moved Delete from the reply's More menu to an inline bar button.
The browser harnesses (heavy_thread, thread_weight, studiobench) still
opened the More menu for it, so their delete actions would report NOT
RUN, and four guard tests went red on main. Click the bar button, update
the guards to the inline design, and find the research-message Delete
gate by the hook it calls instead of by component name.
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