Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): new threads no longer stay empty after the first message #27452

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

Showing 4 changed files with 34 additions and 11 deletions (loading 1).

x
0 of 4 viewed, 4 left
10 additions and 11 deletionsapps/web/src/components/chat/useThreadLifecycle.tsxModified
View file
@@ -50,7 +50,12 @@
import { useEnvironmentScope } from "~/state/session";
import { threadEnvironment } from "../../state/threads";
import { vcsEnvironment } from "../../state/vcs";
-import { useChildThreadInputs, readThreadShell, waitForThreadShell } from "../../state/entities";
+import {
+ useChildThreadInputs,
+ readThreadShell,
+ useThreadRunStop,
+ waitForThreadShell,
+} from "../../state/entities";
import { environmentShell } from "../../state/shell";
import { ThreadStatusLine } from "./ThreadStatusLine";
import { formatRelativeTimeLabel } from "../../timestampFormat";
@@ -65,15 +70,8 @@
runStopNowItem,
} from "./ThreadActivityBanners";
import { useForceStopThread } from "./useForceStopThread";
-import { useAtomValue } from "@effect/atom-react";
-import type { RunStopPresentation } from "@t3tools/client-runtime/state/thread-execution";
-import { Atom } from "effect/reactivity";
-import { environmentThreadDetails } from "../../state/threads";
import type { useLocalDispatchState } from "./useLocalDispatchState";
const RELATED_THREAD_SHELL_WAIT_MS = 1_000;
-const NO_RUN_STOP_ATOM = Atom.make<RunStopPresentation | null>(null).pipe(
- Atom.withLabel("web-thread-run-stop:empty"),
-);
​
type PendingThreadRequests = ReturnType<typeof usePendingThreadRequests>;