Skip to content

Commit 029a602

Browse files
committed
Fix: move beginLocalDispatch before await dispatchCommand to ensure busy state during send
1 parent 49bf283 commit 029a602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/components/ChatView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3072,6 +3072,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
30723072
: {}),
30733073
}
30743074
: undefined;
3075+
beginLocalDispatch({ preparingWorktree: false });
30753076
await api.orchestration.dispatchCommand({
30763077
type: "thread.turn.start",
30773078
commandId: newCommandId(),
@@ -3089,7 +3090,6 @@ export default function ChatView({ threadId }: ChatViewProps) {
30893090
...(bootstrap ? { bootstrap } : {}),
30903091
createdAt: messageCreatedAt,
30913092
});
3092-
beginLocalDispatch({ preparingWorktree: false });
30933093
turnStartSucceeded = true;
30943094
})().catch(async (err: unknown) => {
30953095
if (

0 commit comments

Comments
 (0)