@@ -57,6 +57,7 @@ import { resolveChatListAnchoredEndSpace } from "@t3tools/shared/chatList";
5757import { toolActivityFaviconUrl } from "@t3tools/shared/favicon" ;
5858import { formatDuration } from "@t3tools/shared/orchestrationTiming" ;
5959import { getProjectFaviconCacheKey } from "@t3tools/shared/projectFavicon" ;
60+ import { claudeSkillInvocation } from "@t3tools/shared/toolActivity" ;
6061import { observeVisibleAnimation } from "../../lib/visibleAnimation" ;
6162import {
6263 createContext ,
@@ -5034,8 +5035,19 @@ const SimpleWorkEntryRow = memo(function SimpleWorkEntryRow(props: {
50345035 ? getQuestionAnswerPreview ( workEntry . questionAnswer )
50355036 : null ;
50365037 const viewedImagePath = workEntryViewedImagePath ( workEntry ) ;
5037- const isRead = toolGroupAction ( workEntry ) === "read" ;
5038- const readOutput = isRead ? workEntryReadOutput ( workEntry , workspaceRoot ) : null ;
5038+ const payload = workEntry . structuredPayload ;
5039+ const skill =
5040+ payload ?. type === "dynamic_tool"
5041+ ? claudeSkillInvocation ( payload . toolName , payload . input )
5042+ : undefined ;
5043+ // Reads and skills expand to plain text instead of the item inspector. A
5044+ // skill's heading already names it, so only its arguments are left to show.
5045+ const plainOutput =
5046+ toolGroupAction ( workEntry ) === "read"
5047+ ? workEntryReadOutput ( workEntry , workspaceRoot )
5048+ : skill
5049+ ? ( skill . args ?? null )
5050+ : undefined ;
50395051 const viewedImage =
50405052 viewedImagePath && threadRef
50415053 ? resolveViewedImageAsset ( viewedImagePath , {
@@ -5055,18 +5067,19 @@ const SimpleWorkEntryRow = memo(function SimpleWorkEntryRow(props: {
50555067 ) ;
50565068 const expandedBody =
50575069 expanded && ! isReasoning
5058- ? isRead
5059- ? readOutput
5070+ ? plainOutput !== undefined
5071+ ? plainOutput
50605072 : buildToolCallExpandedBody (
50615073 workEntry ,
50625074 workspaceRoot ,
50635075 previewText ,
50645076 viewedImage ? viewedImagePath : null ,
50655077 )
50665078 : null ;
5067- const canExpandProjectedItem = isRead
5068- ? Boolean ( readOutput || viewedImage || workEntry . questionAnswer )
5069- : canExpand || workEntry . projectedItem !== undefined ;
5079+ const canExpandProjectedItem =
5080+ plainOutput !== undefined
5081+ ? Boolean ( plainOutput || viewedImage || workEntry . questionAnswer )
5082+ : canExpand || workEntry . projectedItem !== undefined ;
50705083 // Reserve destructive row styling for severe failures, not routine tool errors.
50715084 const iconWrapperClass = cn (
50725085 "flex size-4 items-center justify-center" ,
@@ -5237,9 +5250,9 @@ const SimpleWorkEntryRow = memo(function SimpleWorkEntryRow(props: {
52375250 ! isReasoning &&
52385251 ! workEntry . questionAnswer &&
52395252 canExpandProjectedItem &&
5240- ( expandedBody || ( workEntry . projectedItem && ! isRead ) ) ? (
5253+ ( expandedBody || ( workEntry . projectedItem && plainOutput === undefined ) ) ? (
52415254 < WorkLogDetails kind = "panel" >
5242- { workEntry . projectedItem && ! isRead ? (
5255+ { workEntry . projectedItem && plainOutput === undefined ? (
52435256 < V2ItemInspector
52445257 projectedItem = { workEntry . projectedItem }
52455258 environmentId = { ctx . activeThreadEnvironmentId }
0 commit comments