Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apps/web/src/components/chat/useComposerSend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1171,9 +1171,12 @@ export function useComposerSend(input: ComposerSendInput) {
: null;
// Keep new-thread flows from reusing this draft while attachments and worktree setup settle.
if (sentDraftThreadRef) markPromotedDraftThreadByRef(sentDraftThreadRef);
promptRef.current = "";
clearComposerDraftContent(composerDraftTarget);
composerRef.current?.resetCursorState();
// The prompt ref and cursor belong to the thread on screen, which may no longer be this one.
if (currentRouteThreadKeyRef.current === routeThreadKey) {
promptRef.current = "";
composerRef.current?.resetCursorState();
}

const title = deriveThreadTitleSeed({
text: messageTextForSend,
Expand Down
Loading