@devries-cameron20 / t3code-1 / commits / 2b7fc890de
Fork 0

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

fix(web): a send that finishes after you leave its thread no longer blanks the open thread's composer (#30947)

Co-authored-by: Isaac-b-ux <264455269+Isaac-b-ux@users.noreply.github.com> Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Julius Marminge <julius0216@outlook.com>

Isaac-b-ux committed Nov 14, 2026 at 19:54 UTC 2b7fc890ded16bbf67c46e901219d01c4062457d
1 file changed +5 -2
apps/web/src/components/chat/useComposerSend.ts
+5 -2
@@ -1171,9 +1171,12 @@ export function useComposerSend(input: ComposerSendInput) {
1171 : null;
1172 // Keep new-thread flows from reusing this draft while attachments and worktree setup settle.
1173 if (sentDraftThreadRef) markPromotedDraftThreadByRef(sentDraftThreadRef);
1174 - promptRef.current = "";
1174 clearComposerDraftContent(composerDraftTarget);
1176 - composerRef.current?.resetCursorState();
1175 + // The prompt ref and cursor belong to the thread on screen, which may no longer be this one.
1176 + if (currentRouteThreadKeyRef.current === routeThreadKey) {
1177 + promptRef.current = "";
1178 + composerRef.current?.resetCursorState();
1179 + }
1180
1181 const title = deriveThreadTitleSeed({
1182 text: messageTextForSend,