Skip to content

refactor(hub-client): extract useAutomergeSync hook from Editor.tsx#104

Merged
shikokuchuo merged 1 commit intomainfrom
refactor
Apr 1, 2026
Merged

refactor(hub-client): extract useAutomergeSync hook from Editor.tsx#104
shikokuchuo merged 1 commit intomainfrom
refactor

Conversation

@shikokuchuo
Copy link
Copy Markdown
Collaborator

  • Extract ~120 lines of bidirectional Automerge↔Monaco sync logic from Editor.tsx into a dedicated useAutomergeSync hook
  • Add comprehensive test suite covering real-time remote edits, reconciliation, echo prevention, replay gating, and edge cases
  • Follow existing usePresence/useReplayMode pattern for hook structure and editor mount wiring

Move bidirectional Automerge↔Monaco sync logic (real-time remote edits,
reconciliation on mount/file-switch, handleEditorChange, handleContentRewrite)
into a dedicated hook with tests, following the usePresence/useReplayMode pattern.
@shikokuchuo shikokuchuo merged commit f4368a1 into main Apr 1, 2026
4 checks passed
@shikokuchuo shikokuchuo deleted the refactor branch April 1, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant