STU-1873: Add tool call detail panel - #3904
Merged
Merged
Conversation
This was referenced Jun 19, 2026
…tail-panel # Conflicts: # apps/ui/src/ui-classic/components/session-view/conversation/index.tsx # apps/ui/src/ui-desks/chats/conversation/index.tsx # tools/common/ai/tests/tools.test.ts # tools/common/ai/tools.ts
shaunandrews
marked this pull request as ready for review
June 22, 2026 20:27
Collaborator
📊 Performance Test ResultsComparing 7312d05 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
bcotrim
reviewed
Jun 23, 2026
shaunandrews
added a commit
that referenced
this pull request
Jun 29, 2026
<img width="505" height="234" alt="image" src="https://github.com/user-attachments/assets/339b60c7-98e1-4fbf-a4f7-f51df1d3eb46" /> <img width="497" height="324" alt="image" src="https://github.com/user-attachments/assets/53cec4e8-d2c6-45b8-aec8-88d4f9f38867" /> <img width="495" height="272" alt="image" src="https://github.com/user-attachments/assets/e686370b-6d32-47a3-a9bf-681218bcdd45" /> <img width="554" height="413" alt="image" src="https://github.com/user-attachments/assets/0dde2d35-ecb1-484f-9fff-2c71915989d6" /> ## Related issues - Fixes [STU-1874](https://linear.app/a8c/issue/STU-1874/studio-agentic-ui-improve-ask-user-option-rendering) - Stacked on #3904 ## How AI was used in this PR Codex implemented the scoped Ask User rendering changes, added tests for historical answer handling, and ran the verification commands below. I reviewed the diff and adjusted the live answer cache update to avoid touching older duplicate questions. ## Proposed Changes - Makes Ask User choices read as an ordered list with visible option descriptions, so users can compare the available choices without relying on hidden title text. - Adds a batched-question flow that shows one active question at a time, keeps answered questions as compact summaries, and lets users revisit earlier answers while the batch is still pending. - Keeps selected Ask User answers visible after submission and when reviewing historical sessions, including multi-question batches whose answers are stored as `ask_user` prompts. - Improves the batched-question handoff with selected-answer acknowledgement, reduced layout bounce, and scroll clearance so the next question and options stay comfortably above the composer. - Preserves accessible button semantics with `aria-pressed` for selected choices and description text connected via `aria-describedby`. ## Testing Instructions - `npx eslint --fix apps/ui/src/data/queries/use-agent-run.tsx apps/ui/src/ui-classic/components/session-view/conversation/index.tsx apps/ui/src/ui-classic/components/session-view/conversation/index.test.ts tools/common/ai/sessions/entry-types.ts apps/ui/src/ui-classic/components/session-view/conversation/style.module.css` - CSS module reports the expected "File ignored because no matching configuration was supplied" warning. - `npm run typecheck` - `npm test -- tools/common/ai/tests/tools.test.ts apps/cli/ai/tests/ui.test.ts apps/ui/src/ui-desks/chats/conversation/index.test.ts apps/ui/src/ui-classic/components/session-view/conversation/index.test.ts` - Verified the Ask User option list in both light and dark themes with a temporary Vite harness and Playwright screenshots. ## Pre-merge Checklist - [x] Have you checked for TypeScript, React or other console errors?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
I used AI assistance to port the tool-row presentation from the older exploration branch onto current trunk, keep the scope limited to the classic Agentic UI transcript, and add regression tests. I reviewed the final diff, updated the branch after #3903 landed, ran automated checks, and verified the UI in light and dark modes with a temporary Vite harness.
Proposed Changes
Testing Instructions
npm test -- tools/common/ai/tests/tools.test.ts apps/ui/src/ui-classic/components/session-view/conversation/index.test.ts.npm run typecheck.Pre-merge Checklist