Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): warn before updates interrupt running tool calls #26424

Closedshivamhwp(GitHub profile, opens in a new tab)wants to merge 10 commits intomain fromissue-watch/25963opened View on GitHub

Showing 4 changed files with 84 additions and 30 deletions (loading 1).

x
0 of 4 viewed, 4 left
29 additions and 1 deletionapps/web/src/components/sidebar/SidebarUpdatePill.browser.test.tsxModified
View file
@@ -1,10 +1,11 @@
-import type { DesktopUpdateState } from "@t3tools/contracts";
+import type { DesktopUpdateState, EnvironmentId } from "@t3tools/contracts";
import { describe, expect, it, vi } from "vite-plus/test";
import { page, userEvent } from "vite-plus/test/browser";
​
import "~/index.css";
import { act, render } from "../../../test/render";
import { SidebarUpdatePill } from "./SidebarUpdatePill";
+import { UpdateEverythingDialog } from "./UpdateEverythingDialog";
​
const mocks = vi.hoisted(() => {
const listeners = new Set<() => void>();
@@ -140,4 +141,31 @@
await userEvent.keyboard("{Escape}");
await vi.waitFor(() => expect(document.activeElement).toBe(button.element()));
});
+​
+ it("warns that an app restart interrupts work before any threads have loaded", async () => {
+ setup(null);
+ const studio = "studio" as EnvironmentId;
+ await using _screen = await render(
+ <UpdateEverythingDialog
+ open
+ onOpenChange={() => {}}
+ version={null}
+ providerCount={0}
+ rows={[
+ {
+ environmentId: studio,