Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): allow goal resume during an active turn #26022

Closeddiddletime(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/26022/headopened View on GitHub

Showing 2 changed files with 16 additions and 2 deletions.

x
0 of 2 viewed, 2 left
15 additions and 0 deletionsapps/web/src/components/chat/ComposerBannerStack.browser.test.tsxModified
View file
@@ -1,4 +1,5 @@
import { InfoIcon } from "lucide-react";
+import { ThreadId } from "@t3tools/contracts";
import type { ReactNode } from "react";
import { expect, it, vi } from "vite-plus/test";
​
@@ -11,6 +12,20 @@
NoticeText,
type ComposerBannerStackItem,
} from "./ComposerBannerStack";
+import { goalNowItem } from "./ThreadActivityBanners";
+​
+it("offers Resume for a paused goal while another turn is working", async () => {
+ const goal = goalNowItem({
+ threadId: ThreadId.make("thread:goal-resume"),
+ goal: { objective: "Fix the tests", status: "paused" },
+ isWorking: true,
+ onSendCommand: async () => {},
+ });
+ await using screen = await render(
+ <ComposerBannerStack items={[{ ...goal, variant: "default" }]} />,
+ );
+ await expect.element(screen.getByRole("button", { name: "Resume", exact: true })).toBeVisible();
+});
​
function notice(title: string, group?: ComposerBannerStackItem["group"]): ComposerBannerStackItem {
return { id: title, variant: "default", icon: <InfoIcon />, title, ...(group ? { group } : {}) };
1 addition and 2 deletionsapps/web/src/components/chat/ThreadActivityBanners.tsxModified
View file