chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-14 11:25:37 +00:00
commit 4810df0a71
19 changed files with 115 additions and 88 deletions

View file

@ -247,8 +247,8 @@ export function createPromptSubmit(input: PromptSubmitInput) {
pending.delete(key)
return Promise.resolve()
}
return sdk().client.session
.abort({
return sdk()
.client.session.abort({
sessionID,
})
.catch(() => {})
@ -559,12 +559,14 @@ export function createPromptSubmit(input: PromptSubmitInput) {
}, timeoutMs)
})
const result = await Promise.race([WorktreeState.wait(sdk().scope, sessionDirectory), abortWait, timeout]).finally(
() => {
if (timer.id === undefined) return
clearTimeout(timer.id)
},
)
const result = await Promise.race([
WorktreeState.wait(sdk().scope, sessionDirectory),
abortWait,
timeout,
]).finally(() => {
if (timer.id === undefined) return
clearTimeout(timer.id)
})
pending.delete(pendingKey(session.id))
if (controller.signal.aborted) return false
if (result.status === "failed") throw new Error(result.message)