You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 68acab6
Browse filesBrowse the repository at this point in the historyBrowse files
Review round on #6108:
- Greptile P1 (durable merges lose ordering): serialize ALL merges per file on one chain in
mergeEditIntoLiveFileDoc (each chains after the current tail), so concurrent durable writes
can't resume-and-fire out of order. notify now exposes isLiveDocMergeInFlight.
- Cursor High (update stream blanks the doc): only append/patch stream — they build on the loaded
base; update is a from-scratch rewrite whose partial snapshot would diff the full doc toward a
fragment, so it applies atomically at the durable write.
- Cursor Medium (throttle advances on a dropped merge): the adapter gates on !isLiveDocMergeInFlight,
so the send throttle advances only on an actual dispatch — no lag, no backlog behind a slow relay.
- Cursor Medium (placeholder hides a live stream): show the fast-render placeholder only when not
streaming, so a stream that starts before the doc seeds shows through the editor.
- Soften merge.ts/notify.ts comments per the lifecycle audit: only UNTOUCHED regions are preserved;
a region the merge rewrites reconciles toward copilot's content.
Tests updated: notify covers chain ordering + isLiveDocMergeInFlight; adapter covers append streaming,
throttle, non-markdown/base-less/update skips, and the in-flight skip.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -935,6 +935,11 @@ export function LoadedRichMarkdownEditor({
935
935
[]
936
936
)
937
937
938
+
// Show the read-only placeholder only for a plain cold open — never during an agent stream. A stream
939
+
// that begins before the doc has seeded fills the (hidden) editor via Yjs, so gating the placeholder
940
+
// off while streaming lets that live content show through instead of hiding it behind stale markdown.
0 commit comments