DOC-FULL-A3 P0 | Position 手动 Serialize 只对 serde 生效,UniFFI 不经过 #92

Closed
opened 2026-06-07 20:04:17 +08:00 by wangdl · 0 comments
Owner

审查发现

F3: progress.rs 的 Serialize impl 只影响 serde_json::to_string() 调用。UniFFI 用自己的序列化器,FFI 传给 Swift 的 position JSON 仍是 snake_case+未clamp。normalized() 方法存在但无人调用。

修复: events_v2 push_event 在保存前调用 position.normalized()。FFI export 前对 events 做 normalize。

M-DOC-FULL Batch 0 审查 issue。

## 审查发现 F3: progress.rs 的 Serialize impl 只影响 serde_json::to_string() 调用。UniFFI 用自己的序列化器,FFI 传给 Swift 的 position JSON 仍是 snake_case+未clamp。normalized() 方法存在但无人调用。 修复: events_v2 push_event 在保存前调用 position.normalized()。FFI export 前对 events 做 normalize。 M-DOC-FULL Batch 0 审查 issue。
wangdl added this to the M-DOC-FULL:Document Runtime 完整阅读内核与学习事件协议 milestone 2026-06-07 20:04:17 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/zhixi-document-runtime#92
No description provided.