Skip to content

Studio: add assistant response details panel - #6842

Merged
shimmyshimmer merged 7 commits into
unslothai:mainfrom
Etherll:response-details
Jul 7, 2026
Merged

shimmyshimmer merged 7 commits into
unslothai:mainfrom
Etherll:response-details

Conversation

@Etherll

@Etherll Etherll commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a response details panel for assistant messages in Studio. The panel shows model, provider, token, timing, and tool metadata, and the optional inline model label stays hidden until the response is
hovered or focused.

Motivation

Users need a quick way to inspect which model produced a response and what tools were enabled or called. This also fixes the case where local Search/Code tools could appear as None in response details even
when tool calls were present.

Changes

  • Adds a See response details action under the assistant message more menu and opens a right-side details sheet in studio/frontend/src/components/assistant-ui/thread.tsx:3967.
  • Adds MessageResponseDetailsSheet with Response, Tokens, Timing, and Tools sections in studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx:301.
  • Stores response metadata from the chat adapter, including model/provider IDs, timing, run ID, enabled tool categories, and actual called tools in studio/frontend/src/features/chat/api/chat- adapter.ts:2405.
  • Adds a Show response model chat setting, defaulted off, in studio/frontend/src/features/chat/stores/chat-preferences-store.ts:29 and studio/frontend/src/features/settings/tabs/chat-tab.tsx:422.
  • Shows the model label as text-only metadata on assistant-message hover/focus, including reasoning responses, in studio/frontend/src/components/assistant-ui/thread.tsx:3661 and studio/frontend/src/ components/assistant-ui/reasoning.tsx:401.
  • Adds static UI/metadata contract coverage in tests/studio/test_chat_response_details_ui_contract.py:17.

Screenshots

image image image image

@Etherll
Etherll requested a review from danielhanchen as a code owner July 3, 2026 12:54
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a feature to display response details (such as model metadata, tokens, timing, and tools) for assistant messages, including a new MessageResponseDetailsSheet component, a MessageResponseModelBadge component, and a user setting to toggle showing the response model. The feedback suggests defensively guarding parseExternalModelId against undefined inputs, resolving an accessibility issue where pointer-events-none prevents the badge's native title attribute from triggering, and fixing a layout issue where the badge occupies space in a flex container even when invisible.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Etherll added 4 commits July 3, 2026 16:08
Wrap MessageResponseModelBadge in a span with hidden/group-hover visibility classes to reduce visual clutter. The badge now only displays when hovering or focusing on the assistant message, improving the UI presentation. Updated corresponding tests to verify the new CSS classes.
@Etherll

Etherll commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 5898cfd63f

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

@Etherll

Etherll commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author
image CI looks clean

@Etherll Etherll self-assigned this Jul 7, 2026
@shimmyshimmer
shimmyshimmer merged commit ba450b4 into unslothai:main Jul 7, 2026
29 of 36 checks passed

@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: 4fcd759dea

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

const buildResponseDetails = (
finishedAt: number,
): ResponseDetailsMetadata => ({
modelId: params.checkpoint,

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 Record LoRA adapter mode in details

In the LoRA compare path, resolveUseAdapter returns false for the Base pane and true for Fine-tuned, and the request later forwards that as use_adapter; however this metadata stores only params.checkpoint. Because both panes share the same LoRA checkpoint in that mode, the new sheet/badge reports the fine-tuned adapter for the base response (or otherwise fails to distinguish adapter off/on), which makes compare results and audits misleading. Persist the effective adapter mode or a base-vs-adapter label with the response details.

Useful? React with 👍 / 👎.

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