@@ -335,7 +335,7 @@ describe("Messages", () => {
335335 expect ( useFileLinkOpenerMock ) . toHaveBeenCalledTimes ( 1 ) ;
336336 } ) ;
337337
338- it ( "renders title-only reasoning rows and uses reasoning title for the working indicator" , ( ) => {
338+ it ( "renders title-only reasoning rows and keeps the working indicator generic " , ( ) => {
339339 const items : ConversationItem [ ] = [
340340 {
341341 id : "reasoning-1" ,
@@ -358,7 +358,8 @@ describe("Messages", () => {
358358 ) ;
359359
360360 const workingText = container . querySelector ( ".working-text" ) ;
361- expect ( workingText ?. textContent ?? "" ) . toContain ( "Scanning repository" ) ;
361+ expect ( workingText ?. textContent ?? "" ) . toContain ( "Working" ) ;
362+ expect ( workingText ?. textContent ?? "" ) . not . toContain ( "Scanning repository" ) ;
362363 expect ( container . querySelector ( ".reasoning-inline" ) ) . toBeTruthy ( ) ;
363364 } ) ;
364365
@@ -388,7 +389,8 @@ describe("Messages", () => {
388389 const reasoningDetail = container . querySelector ( ".reasoning-inline-detail" ) ;
389390 expect ( reasoningDetail ?. textContent ?? "" ) . toContain ( "Looking for entry points" ) ;
390391 const workingText = container . querySelector ( ".working-text" ) ;
391- expect ( workingText ?. textContent ?? "" ) . toContain ( "Scanning repository" ) ;
392+ expect ( workingText ?. textContent ?? "" ) . toContain ( "Working" ) ;
393+ expect ( workingText ?. textContent ?? "" ) . not . toContain ( "Scanning repository" ) ;
392394 } ) ;
393395
394396 it ( "uses content for the reasoning title when summary is empty" , ( ) => {
@@ -414,7 +416,8 @@ describe("Messages", () => {
414416 ) ;
415417
416418 const workingText = container . querySelector ( ".working-text" ) ;
417- expect ( workingText ?. textContent ?? "" ) . toContain ( "Plan from content" ) ;
419+ expect ( workingText ?. textContent ?? "" ) . toContain ( "Working" ) ;
420+ expect ( workingText ?. textContent ?? "" ) . not . toContain ( "Plan from content" ) ;
418421 const reasoningDetail = container . querySelector ( ".reasoning-inline-detail" ) ;
419422 expect ( reasoningDetail ?. textContent ?? "" ) . toContain ( "More detail here" ) ;
420423 expect ( reasoningDetail ?. textContent ?? "" ) . not . toContain ( "Plan from content" ) ;
@@ -453,7 +456,7 @@ describe("Messages", () => {
453456 expect ( workingText ?. textContent ?? "" ) . not . toContain ( "Old reasoning title" ) ;
454457 } ) ;
455458
456- it ( "keeps the latest title-only reasoning label while rendering a reasoning row " , ( ) => {
459+ it ( "renders the title-only reasoning row and keeps the working indicator generic " , ( ) => {
457460 const items : ConversationItem [ ] = [
458461 {
459462 id : "reasoning-title-only" ,
@@ -485,7 +488,8 @@ describe("Messages", () => {
485488 ) ;
486489
487490 const workingText = container . querySelector ( ".working-text" ) ;
488- expect ( workingText ?. textContent ?? "" ) . toContain ( "Indexing workspace" ) ;
491+ expect ( workingText ?. textContent ?? "" ) . toContain ( "Working" ) ;
492+ expect ( workingText ?. textContent ?? "" ) . not . toContain ( "Indexing workspace" ) ;
489493 expect ( container . querySelector ( ".reasoning-inline" ) ) . toBeTruthy ( ) ;
490494 } ) ;
491495
0 commit comments