@@ -381,20 +381,18 @@ describe("resolveSidebarRowStatus", () => {
381381 expect ( resolveSidebarRowStatus ( failedAgain ) ) . toBe ( "failed" ) ;
382382 } ) ;
383383
384- it ( "dates a failure without a completed run by the runtime update " , ( ) => {
384+ it ( "keeps an undated failure unseen, so later thread updates cannot revive or hide it " , ( ) => {
385385 const visitedAfter = "2026-03-09T10:06:00.000Z" ;
386- const visitedBefore = "2026-03-09T10:00:00.000Z" ;
387386 const noCompletedAt = {
388387 ...failed ,
389388 latestRun : { ...failed . latestRun , completedAt : null } ,
390389 } ;
391390 expect ( resolveSidebarRowStatus ( { ...noCompletedAt , lastVisitedAt : visitedAfter } ) ) . toBe (
392- "ready " ,
391+ "failed " ,
393392 ) ;
394393
395394 const noRun = { ...failed , latestRun : null } ;
396- expect ( resolveSidebarRowStatus ( { ...noRun , lastVisitedAt : visitedBefore } ) ) . toBe ( "failed" ) ;
397- expect ( resolveSidebarRowStatus ( { ...noRun , lastVisitedAt : visitedAfter } ) ) . toBe ( "ready" ) ;
395+ expect ( resolveSidebarRowStatus ( { ...noRun , lastVisitedAt : visitedAfter } ) ) . toBe ( "failed" ) ;
398396 } ) ;
399397} ) ;
400398
@@ -1783,7 +1781,11 @@ describe("resolveSidebarFolderDot", () => {
17831781 expect ( resolveSidebarFolderDot ( [ working , unread ] ) ) . toBe ( "unread" ) ;
17841782 expect ( resolveSidebarFolderDot ( [ unread , limited ] ) ) . toBe ( "attention" ) ;
17851783 // A failure the user already opened clears, like its row.
1786- const failed = { ...idle , runtime : { ...runtime , status : "failed" as const } } ;
1784+ const failed = {
1785+ ...idle ,
1786+ latestRun : { ...idle . latestRun , status : "failed" as const } ,
1787+ runtime : { ...runtime , status : "failed" as const } ,
1788+ } ;
17871789 expect ( resolveSidebarFolderDot ( [ failed ] ) ) . toBeNull ( ) ;
17881790 expect (
17891791 resolveSidebarFolderDot ( [ { ...failed , lastVisitedAt : "2026-03-09T09:00:00.000Z" } ] ) ,
0 commit comments