Skip to content

Commit b994978

Browse files
committed
span output can be object other than an object, like a string
1 parent 0747699 commit b994978

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli-v3/src/mcp/formatters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function formatSpan(
230230
}
231231

232232
// Show output if it exists
233-
if (span.data.output && Object.keys(span.data.output).length > 0) {
233+
if (span.data.output) {
234234
lines.push(
235235
`${indent} Output: ${JSON.stringify(span.data.output, null, 2).replace(
236236
/\n/g,

packages/core/src/v3/schemas/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ export const RetrieveRunTraceSpanSchema = z.object({
12451245
queueName: z.string().optional(),
12461246
machinePreset: z.string().optional(),
12471247
properties: z.record(z.any()).optional(),
1248-
output: z.record(z.any()).optional(),
1248+
output: z.unknown().optional(),
12491249
}),
12501250
});
12511251

0 commit comments

Comments
 (0)