Skip to content

Commit efcab47

Browse files
committed
fix: update to experimental.text.complete
1 parent 614c592 commit efcab47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/opencode/src/session/processor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export namespace SessionProcessor {
318318
if (currentText) {
319319
currentText.text = currentText.text.trimEnd()
320320
const textOutput = await Plugin.trigger(
321-
"text.complete",
321+
"experimental.text.complete",
322322
{
323323
sessionID: input.sessionID,
324324
messageID: input.assistantMessage.id,
@@ -363,7 +363,7 @@ export namespace SessionProcessor {
363363
message: retry,
364364
next: Date.now() + delay,
365365
})
366-
await SessionRetry.sleep(delay, input.abort).catch(() => { })
366+
await SessionRetry.sleep(delay, input.abort).catch(() => {})
367367
continue
368368
}
369369
input.assistantMessage.error = error

packages/plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export interface Hooks {
175175
metadata: any
176176
},
177177
) => Promise<void>
178-
"text.complete"?: (
178+
"experimental.text.complete"?: (
179179
input: { sessionID: string; messageID: string; partID: string },
180180
output: { text: string },
181181
) => Promise<void>

0 commit comments

Comments
 (0)