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
feat(notebook): autofocus first cell in new notebooks (#1020)
The daemon now creates notebooks with zero cells instead of one.
After sync completes, the frontend creates the first code cell locally
via the CRDT, giving the user an instant focused editor. This is more
local-first: the cell appears immediately without waiting for a daemon
round-trip.
Changes:
- Remove cell seeding from create_empty_notebook() in the daemon
- Add autoseed effect in NotebookView that creates a code cell when
cellIds is empty after sync, with a didAutoSeed ref guard
- Move setIsLoading(false) after materializeCells completes in the
frame pipeline (both success and error paths)
- Add useEffect([autoFocus]) in CodeMirrorEditor for post-mount focus
- Add sync convergence test: empty daemon doc + frontend cell creation
- Update Rust and Python test assertions for 0-cell notebooks
Closes#1007
0 commit comments