Skip to content

Refactor: Implement explicit persistence state tracking for placeholder nodes #450

Closed

Description

@malibio

Closing this issue in favor of simplified persistence approach.

Problem identified: UNIQUE constraint violations when outdenting placeholder nodes, caused by fundamental issues with how persistenceState conflates identity ("has been persisted?") with operation state ("has pending work?").

Original approach attempted: Multiple patches on feature branch feature/issue-450-explicit-persistence-state - all caused regressions.

New approach: Issue #471 and related persistence refactoring. Implements: Only ONE placeholder on initial load when parent has no children. All other blank nodes persist immediately (with 500ms debounce).

See /docs/architecture/persistence/ for root cause analysis.

Branch feature/issue-450-explicit-persistence-state should be discarded (patches don't work).

Activity

  1. malibio commented on Nov 11, 2025

    @malibio
    CollaboratorAuthor

    Test Baseline Before Implementation

    Running baseline tests before starting refactoring work:

    Frontend Tests:

    • ✅ 728 tests passed
    • ❌ 0 tests failed

    Backend Tests:

    • ✅ 494 tests passed
    • ❌ 0 tests failed
    • ⏭️ 6 tests ignored

    Total: 1222 passing tests, 0 failures

    All tests passing. Beginning implementation of explicit persistence state architecture.

  2. self-assigned this
    on Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions