fix(core): log Plan reminder failures (#41856)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-08-11 16:39:26 -05:00 committed by GitHub
parent 59970699d0
commit 549a8f826b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,11 @@ export const Plugin = define({
text,
resume: false,
})
.pipe(Effect.catch(() => Effect.void))
.pipe(
Effect.catchCause((cause) =>
Effect.logWarning("failed to inject Plan mode reminder", { sessionID: event.data.sessionID, cause }),
),
)
}),
Effect.forkScoped({ startImmediately: true }),
)