@@ -152,29 +152,35 @@ describe("work entry labels", () => {
152152 } ,
153153 ) ;
154154
155- it ( "uses the completed browser call label for a settled legacy tool" , ( ) => {
156- const rows = deriveMessagesTimelineRows ( {
157- timelineEntries : [
158- {
159- id : "browser-entry" ,
160- kind : "work" ,
161- createdAt : entry . createdAt ,
162- entry : {
163- ...entry ,
164- itemType : "mcp_tool_call" ,
165- toolData : { server : "t3-code" , tool : "preview_click" } ,
155+ it . each ( [
156+ [ "preview_click" , "Clicked in the preview browser" , "browser" ] ,
157+ [ "task_status" , "Got delegated task status" , "t3-code" ] ,
158+ ] as const ) (
159+ "uses the completed %s call presentation for a settled legacy tool" ,
160+ ( tool , summary , summaryToolIcon ) => {
161+ const rows = deriveMessagesTimelineRows ( {
162+ timelineEntries : [
163+ {
164+ id : "browser-entry" ,
165+ kind : "work" ,
166+ createdAt : entry . createdAt ,
167+ entry : {
168+ ...entry ,
169+ itemType : "mcp_tool_call" ,
170+ toolData : { server : "t3-code" , tool } ,
171+ } ,
166172 } ,
167- } ,
168- ] ,
169- isWorking : false ,
170- activeTurnStartedAt : null ,
171- turnDiffSummaryByAssistantMessageId : new Map ( ) ,
172- revertTurnCountByUserMessageId : new Map ( ) ,
173- } ) ;
174- expect ( rows ) . toMatchObject ( [
175- { kind : "work-toggle" , hiddenCount : 1 , summary : "Clicked in the preview browser" } ,
176- ] ) ;
177- } ) ;
173+ ] ,
174+ isWorking : false ,
175+ activeTurnStartedAt : null ,
176+ turnDiffSummaryByAssistantMessageId : new Map ( ) ,
177+ revertTurnCountByUserMessageId : new Map ( ) ,
178+ } ) ;
179+ expect ( rows ) . toMatchObject ( [
180+ { kind : "work-toggle" , hiddenCount : 1 , summary , summaryToolIcon } ,
181+ ] ) ;
182+ } ,
183+ ) ;
178184} ) ;
179185
180186describe ( "shouldPreserveAssistantLineBreaks" , ( ) => {
0 commit comments