feat: 暂存工作区载荷并捕获外部 Sync 变更

This commit is contained in:
2026-09-08 16:15:09 +08:00
parent 91ef49442d
commit f08a338ece
11 changed files with 589 additions and 35 deletions
+1
View File
@@ -321,6 +321,7 @@ async fn cycle(host: &Host, binding: &Binding) -> Result<(), SyncError> {
.await?;
let work = async {
client.handshake().await?;
host.workspace.access(|ws| ws.sync_discover(&binding.id))?;
for _ in 0..10 {
if client.pull_page(&host.workspace, binding).await? == 0 {
break;