Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(web): the open thread's chat chrome no longer re-renders on every streaming tick #20860

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/20860/headmerged by juliusmarminge View on GitHub

Showing 18 changed files with 5 additions and 5 deletions (loading 15).

x
0 of 18 viewed, 18 left
2 additions and 2 deletionsapps/web/src/components/terminal/useThreadTerminalActions.tsModified
View file
@@ -11,7 +11,7 @@
import { useStableCallback } from "../../hooks/useStableCallback";
import { randomUUID } from "~/lib/utils";
import { selectThreadRightPanelState, useRightPanelStore } from "../../rightPanelStore";
-import { useProject, useThreadShell } from "../../state/entities";
+import { useProject, useQuietThreadShell } from "../../state/entities";
import { readEnvironmentScope } from "../../state/session";
import { terminalEnvironment } from "../../state/terminal";
import { useKnownTerminalSessions } from "../../state/terminalSessions";
@@ -34,7 +34,7 @@
const openTerminalCommand = useAtomCommand(terminalEnvironment.open, "terminal open");
const writeTerminal = useAtomCommand(terminalEnvironment.write, "terminal write");
const closeTerminalCommand = useAtomCommand(terminalEnvironment.close, "terminal close");
- const serverThread = useThreadShell(threadRef);
+ const serverThread = useQuietThreadShell(threadRef);
const draftThread = useComposerDraftStore((store) =>
threadRef ? store.getDraftThreadByRef(threadRef) : null,
);
1 addition and 1 deletionapps/web/src/components/BranchToolbar.panel.test.tsxModified
View file
@@ -23,7 +23,7 @@
select({ getDraftThreadByRef: () => null, setDraftThreadContext: vi.fn() }),
}));
vi.mock("../state/entities", () => ({
- useThreadShell: () => ({
+ useQuietThreadShell: () => ({
environmentId: "local",