From 56c70a3b206aa7c31cda3ff6951d78629146d7f4 Mon Sep 17 00:00:00 2001 From: 0x404 <871206929@qq.com> Date: Thu, 15 Jan 2026 19:34:56 +0800 Subject: [PATCH] fix(session): ensure agent exists before processing title in session summary --- packages/opencode/src/session/summary.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opencode/src/session/summary.ts b/packages/opencode/src/session/summary.ts index 2bd1b0da601..dbca218f9c6 100644 --- a/packages/opencode/src/session/summary.ts +++ b/packages/opencode/src/session/summary.ts @@ -77,6 +77,7 @@ export namespace SessionSummary { const textPart = msgWithParts.parts.find((p) => p.type === "text" && !p.synthetic) as MessageV2.TextPart if (textPart && !userMsg.summary?.title) { const agent = await Agent.get("title") + if (!agent) return const stream = await LLM.stream({ agent, user: userMsg,