Instead of replacing the entire document or selection, we want it to create diffs or operations for the minimal amount of edits as possible. This helps preserve intent better when merging the doc later on with OT/CRDTs. (Of course, you could also ask GPT to semantically merge docs for you haha).
So far, it's been harder than plain text or spreadsheets which have an easier position/coordinate system to work with: just line-col or row-col.
Rich text is usually stored as trees with json or html. Have seen a paper (https://www.inkandswitch.com/peritext/) that represents it as a flat array.
Difference in approach would then be: is it easier for gpt to work with diffs or with operations/tool calls?