Repository navigation
Remove dead textarea re-sync from requestNodeFocus - #4410
Merged
Merged
Conversation
Contributor
Author
|
APPROVE (head eda1e4d) Verified in a detached worktree of that commit:
Blocking: none. Nits: none. 🤖 Generated with Claude Code |
requestNodeFocus queried textarea[id="textarea-<nodeId>"], but the editor textarea id is textarea__<paneId>__<nodeId>, so the lookup always returned null and the delayed re-sync never ran. The textarea controller's content effect already syncs merged content. Also drops stale removed-workaround comments in the viewer. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-c6cb44c4-dead-editor-workarounds
branch
from
December 1, 2026 10:24
eda1e4d to
51dc5d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NodeSpace task: c6cb44c4 (Remove dead editor workarounds and state-writing effects the reactivity rule forbids).
What changed
BaseNodeViewer.requestNodeFocusno longer runs a delayed textarea re-sync. It looked uptextarea[id="textarea-<nodeId>"], but the editor textarea id istextarea__{paneId}__{nodeId}(base-node.svelte), so the lookup always returned null and the block never did anything. Merged content is already synced by the textarea controller's content effect. Two stale "removed workaround" comments in the viewer are dropped too.Not changed (needs a decision or is outside scope)
$state. The state-writing effects are elsewhere (settings-pane, remote-tool-confirmation-card, node-ref-preview, database-name-dialog, person-schema-form, typed-form-shell, kanban-view, relationship-viewer-modal, ai-chat-acp-node-viewer); not touched here.handleCreateNewNode: theupdateNodeContent(afterNodeId, sameContent)"to trigger focus" call and the<span class="markdown-tohtmlToMarkdownbranch are not provably dead (the first still writes the store and schedules processing; the second fires if a user types that literal text), so they are left.Checks
bun run test:changed: passed (frontend Happy-DOM, Chromium browser tier)bun run quality:check(eslint, design tokens, svelte-check): 0 errors, 0 warningsgit push🤖 Generated with Claude Code