Skip to content

Commit 83887ac

Browse files
committed
no-mistakes(review): await showTaskWithId dispatches consistently
1 parent 65e2bae commit 83887ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/cli/src/commands/cli/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const SIGNAL_ONLY_EXIT_KEEPALIVE_MS = 60_000
3838
const STREAM_RESUME_WAIT_TIMEOUT_MS = 2_000
3939

4040
async function bootstrapResumeForStdinStream(host: ExtensionHost, sessionId: string): Promise<void> {
41-
host.sendToExtension({ type: "showTaskWithId", text: sessionId })
41+
await host.sendToExtension({ type: "showTaskWithId", text: sessionId })
4242

4343
// Best-effort wait so early stdin "message" commands can target the resumed task.
4444
await pWaitFor(() => host.client.hasActiveTask() || host.isWaitingForInput(), {

apps/cli/src/ui/hooks/useExtensionHost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function useExtensionHost({
186186
setIsResumingTask(true)
187187
setHasStartedTask(true)
188188
setLoading(true)
189-
host.sendToExtension({ type: "showTaskWithId", text: resolvedSessionId })
189+
await host.sendToExtension({ type: "showTaskWithId", text: resolvedSessionId })
190190
return
191191
}
192192
}

0 commit comments

Comments
 (0)