You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d3dda9
Browse filesBrowse the repository at this point in the historyBrowse files
fix(logs): treat a logs query path as withheld only when its content field was omitted (#9318)
- The projection omits a content field whole, so logs query treats a path as withheld only when the span is marked and the content field it reads through (input/output/thinking/errorMessage, tool-call or provider-segment content) is absent; a key missing inside a present field is path not found and fails --where again
- A direct path through a withheld field (e.g. thinking) stays unknown instead of falling back to a same-named key under output
- Runs whose --where could not be checked get whereUnchecked: true and a separate whereUnchecked summary count; contentWithheld counts only withheld --field rows
- Usage text and the v2 contentWithheld description state whole-field semantics (openapi regenerated)
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-logs.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1451,7 +1451,7 @@
1451
1451
"contentWithheld": {
1452
1452
"type": "boolean",
1453
1453
"const": true,
1454
-
"description": "Present when the log projection withheld some or all of this span's content (input, output, thinking, error message, tool-call or provider-segment content) because it could not be proven safe to display. Status, timing, and usage remain. A field missing from a span carrying this marker may exist on the run but was not returned."
1454
+
"description": "Present when the log projection withheld some or all of this span's content (input, output, thinking, error message, tool-call or provider-segment content) because it could not be proven safe to display. Status, timing, and usage remain. A withheld content field is omitted whole, never a key inside it: a content field absent from a span carrying this marker may exist on the run but was not returned, while a key missing inside a content field that is present is genuinely absent."
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/logs.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -277,7 +277,7 @@ export const traceSpanSchema: z.ZodType<LogTraceSpan> = z
277
277
contentWithheld: z
278
278
.literal(true)
279
279
.describe(
280
-
"Present when the log projection withheld some or all of this span's content (input, output, thinking, error message, tool-call or provider-segment content) because it could not be proven safe to display. Status, timing, and usage remain. A field missing from a span carrying this marker may exist on the run but was not returned."
280
+
"Present when the log projection withheld some or all of this span's content (input, output, thinking, error message, tool-call or provider-segment content) because it could not be proven safe to display. Status, timing, and usage remain. A withheld content field is omitted whole, never a key inside it: a content field absent from a span carrying this marker may exist on the run but was not returned, while a key missing inside a content field that is present is genuinely absent."
281
281
)
282
282
.optional(),
283
283
toolCalls: z.array(toolCallSchema).describe('Tool calls recorded by the span.').optional(),
'A path that names no span-level key is read under output. (result.count means output.result.count).'
191
+
'A path that names no span-level key is read under output. (result.count means output.result.count).\n'+
192
+
'When the log projection withheld a content field (input, output, thinking, errorMessage, tool-call or provider-segment content), '+
193
+
'a path through it reports "value unknown" and, under --where, the run is kept with whereUnchecked: true (counted in whereUnchecked, not a confirmed match). '+
194
+
'A path missing inside a field that is present is "path not found" and fails --where.'
0 commit comments