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
M6 补充:remote history response parser 现在接受 JSON:API`included` collection,会过滤非事件资源,并递归解包 `resource`/`attributes`/`properties` 后用外层 resource id 作为事件 ID fallback。
- 本轮补充:remote history response parser 现在也接受 JSON:API`included` collection,会过滤非事件资源,并递归解包 `resource`/`attributes`/`properties` 后保留外层 resource id 作为事件 ID fallback。
Copy file name to clipboardExpand all lines: docs/first-second-parity-audit.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -361,6 +361,7 @@ M7 progress now includes:
361
361
-`internal/session`: remote-history event arrays now unwrap element-level wrappers such as `event`/`record`/`entry`/`item`/`resource`/`value` and wrapper-only `data`/`payload`/`body`, using element cursors as event ID fallback outside GraphQL edges.
362
362
-`internal/session`: remote-history event arrays now accept JSON:API/resource-style elements with event payloads inside `attributes` or `properties`, preserving the outer resource `id` as the SDK event ID fallback.
363
363
-`internal/session`: remote-history response parsing now recurses through page-level JSON:API/resource `attributes`/`properties` wrappers, accepts `list`/`object`/`objects` as event-list aliases, and treats a single `data.attributes` resource payload as one SDK event.
364
+
-`internal/session`: remote-history response parsing now accepts JSON:API`included` collections, filters out non-event resources, and recursively unwraps resource/attributes/properties event payloads while preserving resource ID fallbacks.
364
365
-`internal/contracts`/`internal/session`: content block `type` decoding now normalizes camel/kebab/compact aliases such as `toolUse`, `tool-result`, `cacheEdits`, `inputImage`, and `chain-of-thought`.
365
366
-`internal/session`: image history dimensions now default display size to original size when only `width`/`height` or original dimensions are present, preserving source metadata for single-size image fixtures.
366
367
-`internal/session`: pasted-content history type decoding now normalizes aliases such as `inputImage`/`pasted-image`/`input_text`/`pasted-text` to canonical `image`/`text` for runtime and stored history.
0 commit comments