summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMike Wallio <[email protected]>2025-06-25 19:40:09 -0400
committerJay V <[email protected]>2025-06-26 17:21:53 -0400
commit31b56e5a05313fea9232bea4c9e90db00a2d23e7 (patch)
tree876645706da9d9c5ef329a39c027658cd4fc8fb6
parent47c401cf25b0e087835eb19948c0afeea255e5ef (diff)
downloadopencode-31b56e5a05313fea9232bea4c9e90db00a2d23e7.tar.gz
opencode-31b56e5a05313fea9232bea4c9e90db00a2d23e7.zip
Fix `undefined is not an object (evaluating 'G.title')` (#395)
-rw-r--r--packages/opencode/src/cli/cmd/run.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts
index 526785103..c9ce3d4a2 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") {