Tienson Qin
cd1a9926e2
chore: remove outdated assert
2026-05-09 15:46:34 +08:00
Tienson Qin
05e8d0c435
fix: remove deleted property pairs from remote tx
2026-05-09 15:26:12 +08:00
Tienson Qin
8857be2baf
fix: can't download graphs on Android
2026-05-09 11:44:44 +08:00
rcmerci
6d91d8ccae
Merge remote-tracking branch 'origin/master' into feat/cliable
2026-04-28 22:59:59 +08:00
Tienson Qin
bba25ea579
fix: set batch upload kvs to 500 instead of 2000
2026-04-28 18:29:43 +08:00
Tienson Qin
9bd349dfe9
fix: lint and tests
2026-04-21 21:15:39 +08:00
Tienson Qin
b2cc4ea829
fix(sync): handle snapshot reset and tx epoch rollback
...
Fix snapshot-stream reset coercion so first non-empty chunk actually applies reset during full uploads.
Broadcast changed(t-now) after finished snapshot upload so connected peers learn the new snapshot epoch immediately.
Handle remote tx rollback on clients (hello/changed with remote-tx < local-tx) by rebasing local tx/checksum cursor and requesting pull from the new baseline.
Harden ws broadcast in non-WS test contexts and add regression tests for reset-on-first-chunk and finished-upload changed broadcast.
Verified with: cli-e2e sync-multi-batch-operations (passes).
2026-04-20 17:45:57 +08:00
rcmerci
1bdba923eb
fix sync test
2026-04-20 10:56:44 +08:00
Tienson Qin
174fd15c8e
fix(sync): stabilize incremental checksum updates
2026-04-12 19:27:05 +08:00
Tienson Qin
3dd7302dc9
fix(db-sync): handle duplicate :block/uuid in incremental checksum
...
Account for duplicate :block/uuid datom multiplicity during incremental checksum delta calculation.
Expand touched eids to uuid peers and apply digest add/remove by tuple counts.
Add regression fixture+test from rebased retract mismatch log.
2026-04-12 17:46:14 +08:00
Tienson Qin
6cda7fc869
fix: align outliner and db-sync tests with history-op changes
2026-04-11 07:24:28 +08:00
Tienson Qin
e275cbef0b
fix: slow checksum
2026-04-10 03:42:01 +08:00
Tienson Qin
c24e66f3e6
fix: lint and tests
2026-04-09 23:16:37 +08:00
Tienson Qin
8fcd8fb518
test(sync): cover stale fix/reject flows
2026-04-09 22:43:52 +08:00
Tienson Qin
75bf1e683b
fix(db-sync): normalize tx-reject payload shapes
2026-04-09 22:43:40 +08:00
Tienson Qin
1cb3158208
enhance(db-sync): harden server tx batch handling and protocol
2026-04-09 03:27:41 +08:00
Tienson Qin
262e221069
fix: lint
2026-04-07 19:38:13 +08:00
Tienson Qin
5685a2dacf
fix: retract children entities on server
2026-04-07 16:49:55 +08:00
Tienson Qin
66c0fbb50f
add checksum check in chrome tab simulate
2026-04-07 06:34:13 +08:00
Tienson Qin
f3758e1f12
fix: lint and tests
2026-04-07 06:23:03 +08:00
Tienson Qin
1c8418e584
fix: checksum
2026-04-07 06:00:42 +08:00
Tienson Qin
1d98f1d214
ensure :block/uuid immutability
2026-04-07 04:17:09 +08:00
Tienson Qin
56e85624dc
switch to EAV-style incremental hashing
2026-04-07 04:01:39 +08:00
Tienson Qin
92999a6a76
use agent-browser for sync parallel clients tests
2026-04-06 23:02:48 +08:00
TechnoHouse (deephbz)
8e1be9afbb
fix(db-sync): stream snapshot downloads directly from sync do
2026-04-01 14:39:51 +08:00
Tienson Qin
7960f398ca
server should never recompute checksum
2026-04-01 03:20:33 +08:00
Tienson Qin
6bf4b51ba1
code cleanup
2026-04-01 03:19:23 +08:00
Tienson Qin
b3e400c2ae
enhance(db-sync): move graph download to worker and stream kv snapshots
2026-04-01 03:04:23 +08:00
Tienson Qin
068c34355a
fix: checksum drift after rebase/undo/redo ops
2026-03-30 18:51:44 +08:00
Tienson Qin
c360713063
add script to download a graph to debug
2026-03-30 18:36:18 +08:00
Tienson Qin
0e3a3aabf7
add command to debug graph checksum
2026-03-30 17:05:11 +08:00
Tienson Qin
a7436c0d8b
fix(db-sync): expose rsa-key-exists and enforce key bootstrap
2026-03-26 15:15:20 +08:00
Tienson Qin
b4e397abff
fix(db-sync): require user rsa key pair for e2ee graph create
2026-03-26 15:05:10 +08:00
Tienson Qin
ba64df8c08
fix(db-sync): stabilize checksum parity for e2ee graph init
2026-03-25 12:55:32 +08:00
Tienson Qin
e122073693
fix: lint
2026-03-18 06:23:22 +08:00
Tienson Qin
5e957beafb
add more tests
2026-03-18 06:11:04 +08:00
Tienson Qin
917309113f
feat: sync checksum
2026-03-17 00:07:33 +08:00
Tienson Qin
33098113ee
enhance: returns rejected tx
2026-03-17 00:07:33 +08:00
Tienson Qin
42fec8324e
simplify sync by applied txs sequentially
2026-03-17 00:07:33 +08:00
Tienson Qin
84965424a9
fix: gate graph when it's not ready for downloading
2026-03-13 18:22:16 +08:00
Tienson Qin
eeabd54d87
refactor: graph download switch to use r2 snapshot
2026-03-13 16:43:54 +08:00
Tienson Qin
81d1ded924
fix(sync): gate rtc until snapshot upload finishes
2026-03-12 20:00:29 +08:00
Tienson Qin
5d602c9d58
fix(db-sync): drop stale lookup-ref tx datoms
2026-03-12 08:18:52 +08:00
Tienson Qin
0055e8128c
add d1 sql table indexes
2026-03-04 11:18:58 +08:00
Tienson Qin
8f923a911d
Revert "client hello now sends since"
...
This reverts commit 2799a57074 .
2026-03-03 22:37:30 +08:00
Tienson Qin
2799a57074
client hello now sends since
2026-03-03 20:52:44 +08:00
Tienson Qin
1df918728b
fix: ws latency
2026-02-26 17:42:25 +08:00
Tienson Qin
ae9a37c889
fix: sync missing :block/title
2026-02-26 10:32:25 +08:00
Tienson Qin
084b5193c3
fix: sync doesn't work on node adapter
2026-02-12 19:31:24 +08:00
Tienson Qin
adff65c6bc
support unencrypted graph
2026-02-12 02:15:14 +08:00