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
The factory pattern already provides reactive getters (() => content, () => editableConfig), so these sync effects may be unnecessary if controller methods read from getters directly.
Investigation Required
Determine if controller methods can read from getters instead of cached values
Verify that eliminating effects doesn't break reactivity
Test thoroughly - this is a critical component
Proposed Solution
Replace effect-based synchronization with direct reactive reads:
// BEFORE: Cache value via effectletcachedContent: string;$effect(()=>{cachedContent=getContent();});// AFTER: Read directly from getter in methodsfunctionsomeMethod(){constcontent=getContent();// Reactive read// ... use content}
Files to Modify
textarea-controller.svelte.ts: Remove content/config sync effects, update methods to use getters
Acceptance Criteria
Content sync effect eliminated or justified as necessary
Config sync effect eliminated or justified as necessary
Edit mode works correctly (typing, cursor position)
Content changes persist correctly
All node types work with controller
Tests pass (bun run test:all)
Quality checks pass (bun run quality:fix)
Technical Notes
This is a higher-risk refactor than the prop-sync issues. The TextareaController is central to the editing experience and requires careful testing.
Activity
malibio commentedon Nov 30, 2025
Test baseline: Frontend 728 passed, Rust 547 passed (3 skipped: vector search)
Document textarea-controller content/config sync effects as necessary (…
Eliminate config sync $effect in textarea-controller (#695)
Eliminate config sync $effect in textarea-controller (#695) (#699)
malibio commentedon Dec 1, 2025
Completed in PR #699. Config sync effect eliminated via getter pattern; content sync effect retained with documented justification.
Eliminate config sync $effect in textarea-controller (#695) (#699)
Eliminate config sync $effect in textarea-controller (#695) (#699)
Eliminate config sync $effect in textarea-controller (#695) (#699)