Repository navigation
Studio: add assistant response details panel - #6842
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
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.
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.
|
@codex review |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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, |
There was a problem hiding this comment.
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 👍 / 👎.

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
Nonein response details evenwhen tool calls were present.
Changes
See response detailsaction under the assistant message more menu and opens a right-side details sheet instudio/frontend/src/components/assistant-ui/thread.tsx:3967.MessageResponseDetailsSheetwith Response, Tokens, Timing, and Tools sections instudio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx:301.studio/frontend/src/features/chat/api/chat- adapter.ts:2405.Show response modelchat setting, defaulted off, instudio/frontend/src/features/chat/stores/chat-preferences-store.ts:29andstudio/frontend/src/features/settings/tabs/chat-tab.tsx:422.studio/frontend/src/components/assistant-ui/thread.tsx:3661andstudio/frontend/src/ components/assistant-ui/reasoning.tsx:401.tests/studio/test_chat_response_details_ui_contract.py:17.Screenshots