mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
fix(ffi): atomic compound outline edits, validated anchors, shared graph
- indent, outdent and merge run in one Graph::transaction, so a failure part-way no longer duplicates merged text or strands siblings. - Placements check that the anchor block exists and is on the target page. - SynapseGraph holds Arc<Mutex<Graph>> and exposes shared() (not bridged) for the sync client. - docs: rustup's cargo must come first in PATH; sync wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3266ddda3a
commit
268e152efc
5 files changed
+208
-49
No files matched your search
+3
-1
@@ -79,7 +79,9 @@ sync on SSE hint, when ops are pending or when due; on failure exponential backo
|
||||
with jitter); "offline" (connect/timeout errors) never loses edits, they stay pending. Call
|
||||
`trigger()` after local edits to sync without waiting for the poll.
|
||||
|
||||
The graph is shared as `Arc<Mutex<Graph>>`; the client locks it only for short DB steps.
|
||||
The graph is shared as `Arc<Mutex<Graph>>`; the client locks it only for short DB steps. In the
|
||||
app, `synapse_ffi::api::graph::SynapseGraph::shared()` returns that same `Arc` to build a
|
||||
`SyncClient` next to the FFI handle.
|
||||
|
||||
## Limits / not in v1
|
||||
- Per-user tokens and per-graph ACLs: `auth::Principal` already carries a graph allow-list;
|
||||
|
||||
Reference in new issue
Block a user