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
Extract an explicit remote-update policy from the skip-while-editing logic #1512
The "skip-while-editing" conflict policy is load-bearing but embedded inline in setNode, branching on editing state plus ai-chat message-count heuristics plus foreign-write stashing.
Problem Statement
The policy that decides whether a remote update is applied is spread through setNode and paired controller code, making it hard to reason about and a recurring source of the echo-clobbers-local-state bugs.
Proposed Solution
Extract an explicit shouldApplyRemoteUpdate(node, source, editingState) unit with its own tests (the skip-while-editing test suite already exists). Relates to ADR-026/042.
Acceptance Criteria
Remote-update decision logic extracted into a tested unit
setNode calls the unit rather than inlining the policy
Activity
malibio commentedon Jul 10, 2026
Frontend baseline: 156 test files, 3991 tests passed.