mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +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
@@ -78,9 +78,8 @@ export class OpenCodeClient {
|
||||
return response.data
|
||||
}
|
||||
|
||||
async sendPrompt(sessionID: string, data: SendPromptRequest) {
|
||||
const response = await this.client.post(`/session/${sessionID}/message`, data)
|
||||
return response.data
|
||||
async sendPrompt(sessionID: string, data: SendPromptRequest): Promise<void> {
|
||||
await this.client.post(`/session/${sessionID}/prompt_async`, data)
|
||||
}
|
||||
|
||||
async summarizeSession(sessionID: string, providerID: string, modelID: string) {
|
||||
|
||||
Reference in new issue
Block a user