Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): show a thread's completion when a watch loop is still live #7655

Closedliaugust(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7655/headopened View on GitHub

Showing 3 changed files with 171 additions and 12 deletions (loading 1).

x
0 of 3 viewed, 3 left
119 additions and 0 deletionsapps/web/src/components/Sidebar.logic.test.tsModified
View file
@@ -19,6 +19,7 @@
resolveSidebarStageBadgeLabel,
resolveThreadRowClassName,
resolveSidebarThreadStatus,
+ resolveSidebarThreadTopStatusKind,
resolveThreadStatusPill,
resolveWorkingStartedAt,
searchSidebarThreadsByTitle,
@@ -730,11 +731,89 @@
).toBe("ready");
});
​
+ it("keeps pending input and approvals ahead of a live watch loop", () => {
+ expect(
+ resolveSidebarThreadStatus({
+ ...idle,
+ hasPendingUserInput: true,
+ session: null,
+ backgroundLiveness: "monitoring",
+ }),
+ ).toBe("input");
+ expect(
+ resolveSidebarThreadStatus({
+ ...idle,
+ hasPendingApprovals: true,
+ session: null,
+ backgroundLiveness: "monitoring",
+ }),
+ ).toBe("approval");