mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix: use async prompt endpoint to prevent timeout on subagent tasks
This commit is contained in:
1 parent
a90516410b
commit
efd3b94372
2 files changed
+4
-5
No files matched your search
@@ -320,9 +320,9 @@ export const useSendPrompt = (opcodeUrl: string | null | undefined, directory?:
|
||||
requestData.variant = variant;
|
||||
}
|
||||
|
||||
const response = await client.sendPrompt(sessionID, requestData);
|
||||
await client.sendPrompt(sessionID, requestData);
|
||||
|
||||
return { optimisticUserID, response, userPromptText };
|
||||
return { optimisticUserID, userPromptText };
|
||||
},
|
||||
onError: (error, variables) => {
|
||||
const { sessionID } = variables;
|
||||
|
||||
Reference in new issue
Block a user