@devries-cameron20 / t3code-1 / commits / de545c4173
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): stop the bar under the composer popping in after threads load (#10727)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>

Theo Browne committed Sep 8, 2026 at 14:40 UTC de545c41737aca08359244b7778ab52e55934f17
3 files changed +6 -8
apps/web/src/components/BranchToolbar.tsx
+2 -2
@@ -12,7 +12,7 @@ import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useStat
12
13 import { useComposerDraftStore, type DraftId } from "../composerDraftStore";
14 import { EnvironmentMachineIcon } from "./EnvironmentMachineIcon";
15 -import { useProject, useThread, useThreadShellsForProjectRefs } from "../state/entities";
15 +import { useProject, useThreadShell, useThreadShellsForProjectRefs } from "../state/entities";
16 import {
17 type EnvMode,
18 type EnvironmentOption,
@@ -465,7 +465,7 @@ export const BranchToolbar = memo(function BranchToolbar({
465 const draftThread = useComposerDraftStore((store) =>
466 draftId ? store.getDraftSession(draftId) : store.getDraftThreadByRef(threadRef),
467 );
468 - const serverThread = useThread(threadRef, { waitForShell: draftThread !== null });
468 + const serverThread = useThreadShell(threadRef);
469 const setDraftThreadContext = useComposerDraftStore((store) => store.setDraftThreadContext);
470 const activeProjectRef = serverThread
471 ? scopeProjectRef(serverThread.environmentId, serverThread.projectId)
apps/web/src/components/BranchToolbarBranchSelector.tsx
+2 -2
@@ -27,7 +27,7 @@ import { readLocalApi } from "../localApi";
27 import { useOpenPrLink } from "../lib/openPullRequestLink";
28 import { shouldLoadNextBranchPageAfterScroll } from "../state/paginatedBranches";
29 import { usePaginatedBranches } from "../state/queries";
30 -import { useProject, useThread } from "../state/entities";
30 +import { useProject, useThreadShell } from "../state/entities";
31 import { useEnvironmentQuery } from "../state/query";
32 import { threadEnvironment } from "../state/threads";
33 import { useAtomCommand } from "../state/use-atom-command";
@@ -119,7 +119,7 @@ export function BranchToolbarBranchSelector({
119 const draftThread = useComposerDraftStore((store) =>
120 draftId ? store.getDraftSession(draftId) : store.getDraftThreadByRef(threadRef),
121 );
122 - const serverThread = useThread(threadRef, { waitForShell: draftThread !== null });
122 + const serverThread = useThreadShell(threadRef);
123 const serverSession = serverThread?.session ?? null;
124 const setDraftThreadContext = useComposerDraftStore((store) => store.setDraftThreadContext);
125
apps/web/src/components/GitActionsControl.tsx
+2 -4
@@ -87,7 +87,7 @@ import {
87 useVcsInitAction,
88 useVcsPullAction,
89 } from "~/lib/sourceControlActions";
90 -import { useThread } from "~/state/entities";
90 +import { useThreadShell } from "~/state/entities";
91 import { useEnvironmentQuery } from "~/state/query";
92 import { serverEnvironment } from "~/state/server";
93 import { sourceControlEnvironment } from "~/state/sourceControl";
@@ -950,9 +950,7 @@ export default function GitActionsControl({
950 ? store.getDraftThreadByRef(activeThreadRef)
951 : null,
952 );
953 - const activeServerThread = useThread(activeThreadRef, {
954 - waitForShell: activeDraftThread !== null,
955 - });
953 + const activeServerThread = useThreadShell(activeThreadRef);
954 const setDraftThreadContext = useComposerDraftStore((store) => store.setDraftThreadContext);
955 const [isCommitDialogOpen, setIsCommitDialogOpen] = useState(false);
956 const [dialogCommitMessage, setDialogCommitMessage] = useState("");