The header records the kind when the notebook is made. find_product (the one runtime function the headless run and the editor
kernel share) falls back to the open body: a public top-level solid no cell reads and no other candidate was built from (the
operation graph says so). Several open bodies are an error naming them. An explicit make_part_rpart cell still wins (connectors,
a body other than the tip). The editor no longer writes a product cell for such notebooks and shows the implicit product.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An agent working a multi-notebook workspace had to leave the CLI to keep
working: every switch of the editor's open notebook was a raw curl to
/api/workspace/open found by reading the installed server's source, the
viewport image was read out of .sca-editor/ by hand, and a write refused
while another notebook was open left no in-CLI way out.
- sca cell open NOTEBOOK switches the running editor and waits for the
notebook's kernel (SCA_EDITOR_OPEN_WAIT or --wait, default 120s), so
the following write does not race the boot. Re-opening the notebook
that is already open and ready does not restart the kernel.
- sca cell put/insert/rm/run take --open to switch and write in one
step; a refused write now names sca cell open as the remedy.
- /api/cells reports kernel, so a caller can tell a booted notebook
from one whose name has flipped while the kernel still boots.
- sca viewport [WORKSPACE] [--out PATH] reports the viewport image's
path, age and size, and copies it out for an agent's image reader.
- The bundled skill's editor-collaboration reference documents all three.
sca run --timeout now defaults to no limit (the runner's own default): a
command that never timed out does not grow a hard failure; --timeout 240
was verified against a real fillet notebook through the worker thread.
sca cell write calls time out with "the edit was applied and the rerun is
still going; check sca cell ls" instead of a raw socket error, and the wait
is SCA_EDITOR_CALL_TIMEOUT (default 300s). A server.json whose pid is gone
reports the stale record and the remedy, not an unreachable url.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A container's http_proxy swallowed the health check of a 127.0.0.1 editor url
and the miss was read as "no editor is running" — both the record's url (now
always the loopback) and the check (now a proxy-bypassing opener) are fixed,
and a record whose server does not answer is an error naming the record and
url, not a silent fallthrough. Reading the file as a fallback says so on
stderr. Cell feedback: put/insert/run carry console and the not-healthy
dependents, the swept dependents run, and a failing cell names its upstream
(the failing ancestors first) with marimo's own dependency semantics.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The page's veil lifts on a preview or an error. A publish error was deduped
per identical message with no reset when a new run began, so a repeat of the
same failure (a rerun after the first report) stayed silent: no preview, no
error, and the page waited out its three-minute veil. The dedup is kept for
the parameter burst; discrete runs (page commands, agent cell commands, a
file change, a module reload, a param commit) reset it. A page that connects
after the failure is told the last error at the end of the handshake.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The editor held the open notebook in memory and rewrote the file on each edit, so an
agent's saved change was overwritten and never noticed. The file is now watched and
applied cell by cell (agent's version wins a same-cell conflict), the workspace list
follows new files, and sca cell/new edit through the running editor.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- GET /api/sdk: the running package's public API (names, parameters, which are required, summaries)
from inspect, for scad, scad.ql and scad.std.<module>
- editor-web/src/lib/sdk-complete.ts: member completion (scad., scad.ql., ql., Q.), snippet on accepting
a function or typing ( after a known name, name= completion inside calls (required first, above
Python's builtins), Tab accepts a suggestion and then moves between parameters
- the editor wrapper rebuilt its configuration on every render (new onChange / basicSetup each time),
which drops a snippet in progress; both are stable now
- popup styled to the editor's themes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- bottom dock: log of events/errors, progress of the cells being re-evaluated,
running/queued/blocked on cells; errors leave the header
- opening notebooks is ordered (latest wins), a superseded open ends quietly,
the list highlights the notebook being opened immediately
- boot waits for the instantiate run before publishing; a failing setup is
reported as the cause; refreshed pages load an unchanged model; viewport
redraws after resize
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The kernel publishes a SCAPREV1 preview (triangles, edges, vertices, face/edge
groups) straight from the solids; the viewer loads it, and per-entity details
are fetched on demand (entity.info) before a selection cell is written.
Previews are cached per dependency signature for instant revisit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A cell's run button is a stop button while the kernel runs it (so is run-all in
the header); stopping interrupts the kernel and drops the work queued behind it.
The server forwards marimo's live cell states.
The editor remembers each notebook's last published package under a digest of
everything the model depends on (notebook, modules, children, data, saved
values, versions); switching back shows that model and the cells from the file
immediately while the kernel boots, and the kernel's own publish only reloads
the view if the model differs. Revisiting an assembly went from 16.5 s to 0.3 s.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
marimo interrupts the kernel when the client of /api/kernel/execute
disconnects. The bridge's scratch calls had client timeouts (the 5 s watchdog
ping: 10 s; the idle probe: 15 s), so any cell that ran longer than that - a
use() of a child notebook - was killed with KeyboardInterrupt and the
product was missing. Scratch calls now wait without a timeout and the
watchdog asks /api/sessions instead.
The loading veil's swell is one long wave and its dots are dimmer.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The cell cache is stored under a digest of the files each cell depends on
(modules reached through the names it reads, through the notebook functions it
calls, and through the cells it reads from; child notebooks; inputs) instead
of one digest for the notebook: a changed module recomputes what reads it and
restores the rest, and going back restores everything. The editor kernel runs
cells through the same cache (cells downstream of saved parameter values are
keyed by them; cells that run child notebooks are not cached there).
The render mesh of a face is computed with numpy in the profile's fixed
operation order: identical bytes, package builds about twice as fast.
The editor also watches the data files a notebook lists in 'inputs'.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The kernel runs scratch code one piece at a time, so a selection write queued
behind a long run (publishing a big assembly takes seconds) delayed the cell,
and fast picks piled up one thread each. The server now pushes the selection
cell from memory immediately and coalesces the kernel writes. SCA_EDITOR_TRACE=1
logs the time of every kernel call.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The workspace lists the local modules notebooks import (sca ls reports them
too) and opens one in a module view: autosaved source plus its dataclass
fields (and commented constants) as controls written into the file. A change,
from the editor or on disk, reloads the module in the kernel and reruns the
notebook; used notebooks are rerun from their files. Number boxes keep the
typed text until it is committed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Each cell header gets a copy button: the reference is the notebook path, the
cell's line range in the file, its number and name; Alt/Shift+click adds the
code. Line ranges come from the saved file, so they follow autosave.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Picking in the viewport writes a selection cell (ql selectors from the picked
geometry, selected_<kind>[_<i>] and selected_item) and saves a snapshot
(.sca-editor/snapshot.json + viewport.png, sca snapshot) for coding agents.
The viewport gets a ground grid and an axis gizmo in a CAD (Z up) frame.
Cells fold to their step name, run everything above, autosave, and are
deleted with a trash button; the inspector shows a JSON tree; the chrome is
black and white with square 2px rules. Opening a notebook clears the model at
once. ql.vertices() now resolves through solids and faces.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
code.edit stripped every line starting with 'return', including those inside
@app.function bodies, and rewrote the file even when the code was unchanged.
Now only the cell's own top-level return is stripped (by AST), unchanged code
just runs, and @app.function cells are not edited through code mode (marimo
would turn them into plain cells).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The editor moves in from sca-web-editor as simplecadapi.editor (UI sources
in editor-web/, built into the package; 'editor' extra). It no longer
records anything itself: the kernel runs the notebook with the SDK cell
executor, the server asks it for the product (runtime.live.publish_live)
when marimo reports a completed run, and parameters are saved values the
executor applies, so marimo's dataflow reruns what reads them. Controls
come from '# ui:' comments; a workspace is any directory of notebooks.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>