Skip to content

Commit 74cc65c

Browse files
scaryrawrjayair
authored andcommitted
Fix undefined is not an object (evaluating 'G.title') (sst#395)
1 parent a80fb59 commit 74cc65c

File tree

1 file changed

+1
-1
lines changed
  • packages/opencode/src/cli/cmd

1 file changed

+1
-1
lines changed

packages/opencode/src/cli/cmd/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const RunCommand = cmd({
134134
part.toolInvocation.toolName,
135135
UI.Style.TEXT_INFO_BOLD,
136136
]
137-
printEvent(color, tool, metadata.title)
137+
printEvent(color, tool, metadata?.title || 'Unknown')
138138
}
139139

140140
if (part.type === "text") {

0 commit comments

Comments
 (0)