Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: max-sixty/leaf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8eb3a8f
Choose a base ref
...
head repository: max-sixty/leaf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e4be680
Choose a head ref
  • 1 commit
  • 31 files changed
  • 2 contributors

Commits on Aug 28, 2026

  1. Make Python the canonical browser projector (#87)

    Leaf previously reconstructed durable page state in both Python and
    browser JavaScript, which let winner, retraction, ask, conversation,
    update, and undo rules drift. This change makes Python produce the
    browser-ready projection for an exact document revision and log
    sequence. JavaScript consumes that projection, maps it to the DOM, and
    overlays only unresolved local gestures.
    
    `/api/state` returns the shown and active revision views, accepted event
    responses retain the revision shown by the tab, and `/api/view` projects
    a historical comparison at the sequence the DOM has applied. The static
    documentation host keeps a small in-memory emulator because it has no
    Python process; that path resets on reload and is not used by served
    Leaf pages. Its shim now answers `/api/view` as well as the other
    runtime routes.
    
    Local evidence on the current head: `pre-commit run --all-files`; 225
    startup, server, undo, reaction, conversation, and static-site cases.
    Before the final `main` refreshes, the full branch passed 661 tests with
    1 skip.
    
    > _This was written by Codex on behalf of max-sixty_
    
    ---------
    
    Co-authored-by: leaf-agent <[email protected]>
    max-sixty and leaf-agent authored Aug 28, 2026
    Configuration menu
    Copy the full SHA
    e4be680 View commit details
    Browse the repository at this point in the history
Loading