Skip to content

Simplify widget state, event semantics, and live development previews - #294

Merged
max-sixty merged 21 commits into
mainfrom
codex/leaf-development-foundations
Sep 5, 2026
Merged

max-sixty merged 21 commits into
mainfrom
codex/leaf-development-foundations

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Undo and richer widgets were accumulating restoration machinery, while development previews required rebuilding pages and losing their feedback. This change gives widgets complete projected state, records event meaning at admission, and refreshes previews in place.

  • Replace partial action replay and subtree restoration with renderState. All bundled widgets with declared action or report state, including swipe decks, use the same complete-state contract; nested choices, draft text, and retained nodes survive undo.
  • Record admitted coordinates, direct dependencies, and answer effects in events. Historical replay reads those facts, and re-vendoring rejects changes to their meaning, record form, or completion condition.
  • Watch source and runtime changes through the existing page/layer lifecycle, preserving the preview URL and event history. Startup supervision handles interrupted required imports, and detached watchers retain and release their original session claim.
  • Derive authored conflicts in the render gate from the complete-state fold. This distinguishes carried decisions from actions made on the current revision and removes normal-runtime DOM-write tracking.

The owning protocol documentation, bundled widgets, examples, generated references, and event fixtures are updated together. Validation covers the everyday suite, browser projection and undo, preview recovery and ownership, export, and rendering in light and dark themes.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit 56c5663 into main Sep 5, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/leaf-development-foundations branch September 5, 2026 05:48
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.

2 participants