AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Conflict resolution
Rebase strategies, field-level conflict detection, and manual resolution for concurrent edits.
When multiple clients modify the same data, the rebase algorithm resolves conflicts automatically. This guide covers detection, strategies, and manual intervention.
Server-sequenced model
The server assigns global order. See Sync protocol for details.
How rebase works
When a server delta arrives for a model with pending local transactions, the client replays local changes on top of the new server state.
flowchart TD
A[Server delta arrives] --> B[Index pending txs by model+id]
B --> C{For each server action}
C --> D{Is this our own tx?}
D -->|Yes| E[Mark as confirmed]
D -->|No| F{Conflicts with pending tx?}
F -->|No| G[Keep pending tx]
F -->|Yes| H[Detect conflict type]
H --> I[Apply resolution strategy]
I --> J[Update in-memory model]
C --> K[Remaining txs stay pending]Three outcomes per server action:
- Own transaction:
clientTxIdmatches: confirmed and removed from outbox. - No conflict: Different model/ID or different fields. Pending transaction stays.