From db24bf87c01d3fff2a9594e55e9fab0d9ef52cfe Mon Sep 17 00:00:00 2001 From: Mike Wallio Date: Wed, 25 Jun 2025 19:40:09 -0400 Subject: [PATCH] Fix `undefined is not an object (evaluating 'G.title')` (#395) --- packages/opencode/src/cli/cmd/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index 52678510..c9ce3d4a 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -134,7 +134,7 @@ export const RunCommand = cmd({ part.toolInvocation.toolName, UI.Style.TEXT_INFO_BOLD, ] - printEvent(color, tool, metadata.title) + printEvent(color, tool, metadata?.title || 'Unknown') } if (part.type === "text") {