From 27bb14fa157656dc134a78134b7fc5ee4a0114e1 Mon Sep 17 00:00:00 2001 From: deploy Date: Thu, 28 May 2026 08:41:49 -0400 Subject: [PATCH] fix(session): log warning when title generation fails Replace Effect.ignore with Effect.catchCause + warning log so title generation failures are visible instead of silently swallowed. Fixes #29734 --- packages/opencode/src/session/prompt.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/session/prompt.ts b/packages/opencode/src/session/prompt.ts index e8b84524786e..a0b8504c5348 100644 --- a/packages/opencode/src/session/prompt.ts +++ b/packages/opencode/src/session/prompt.ts @@ -1685,7 +1685,10 @@ NOTE: At any point in time through this workflow you should feel free to ask the modelID: lastUser.model.modelID, providerID: lastUser.model.providerID, history: msgs, - }).pipe(Effect.ignore, Effect.forkIn(scope)) + }).pipe( + Effect.catchCause((cause) => elog.warn("title generation failed", { error: Cause.squash(cause) })), + Effect.forkIn(scope), + ) const model = yield* getModel(lastUser.model.providerID, lastUser.model.modelID, sessionID) const task = tasks.pop()