fix(desktop): only expand tool rows whose detail adds information #6015
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 363 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.353
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6015"
general
weight: 0.35
Astro-Han
Summary
Every Desktop tool row carried an expand chevron because Astryx
ChatToolCallsmakes a row expandable whenevercall.resultDetail != null, andstandardToolCallalways passed a<ToolDetailReveal>— even when expanding showed an empty panel, repeated the collapsed target, or a bare type token. This PR makes a row expandable only when its detail adds information, and renderssummaryresults as their summarized body.Concretely:
standardToolCallcomputes the detail decision first and passesresultDetailonly when the detail adds information beyond the collapsed row (#5997):- banners (sandbox-blocked, requires-bypass) always count as information;
- a titleless single-line quiet text equal to the collapsed target does not;
- a body of
nonewithout a banner does not;- results whose preview would be only a type token (
image,archived_tool_result) do not.summaryresult now renders itssummarizedbody through the same redaction and line-cap pipeline as thetextbranch, instead of[summary].conversation.tool.detailslot for that tool name keeps the row expandable, via a newuseMakaClientSlotEntryKeyshook that mirrors the keyed outlet's lookup (including its session-scope guard).Rows with diffs, terminal or shell output, web search results, JSON, live output, or banners keep their current behavior. Tool grouping, the process disclosure lifecycle, output length bounds, and the requires-bypass retry action are unchanged. This is the first slice of #4863; the remaining #4863 scope (WebFetch citation cards, shared bounds) stays there.
Fixes #5997
Verification
| Check | Result |
| --- | --- |
|
node --test dist/*/.test.jsinpackages/ui(full suite, 721 tests, includes 8 newtool row expandability (#5997)cases) | pass (0 fail) || New tests before the fix | 5 red, exactly on the two symptoms: empty/repeat/token/plugin-miss rows render
role="button"+ chevron;summarydetail renders[summary]instead of the body ||
npx biome checkon the 4 changed files | pass ||
npm run check:asf-headers| pass ||
npm run typecheck:stories(desktop, coverspackages/ui/stories/**against the changed source) | pass ||
smoke:storybookvisual smoke | not run (requires a live storybook dev server and browser AX session; no tool-activity story is in its required-story list) |AI use
Tool(s) and scope: GLM-5.3-Flash (ZCode) — authored the failing tests, the fix, and this PR under the reporter's root-cause analysis in #5997.
Checklist
Does this PR entail a change in behavior?