An automation path refusal says what a relative path was taken as (it is made absolute against the working folder of the process that runs the command: the attached app's when attached), for every refusal including those inside a root. docs/mcp.md: how relative paths resolve when attached, and that an attached agent's copies use FigCraft's own clipboard, never the system clipboard. Part of #2524 (points 2 and 6).
A missing, moved or access-denied file now reports once and is retried on the
30 s deadline, instead of clearing the failure silently; recovery clears it.
Covers keyframe move/ease/delete, clip update/delete and track visibility through the engine commands; every animatable property evaluated to its last key; spring and bezier edge cases; every clip kind and direction resting on the layer at its end.
Port the saved-file refresh onto main's split modules: stamps in automation/file_access,
refresh beside file.open's reload in cmd/file/open, save conflict checks in cmd/file/save.
A refresh also keeps the tab's page views and fit-to-content state. Adds the file.refresh
label to the ar, bs, he, ta and zh-Hant catalogs.
- clip_dragged and layer_dragged saturate their i64 arithmetic and clamp
results into u32, so a stored clip with u32::MAX duration and repeat count
no longer overflows on drag. Test with huge stored values.
- MotionPlayer had no caller (the editor evaluates through `evaluate` and a
per-revision cache) and kept stale scratch state when the base changed:
removed with its test.
- Delta snapshots: an instance whose motion differs from its source is sent as
a full record, so catch-up no longer replaces it with the source's motion.
- motion.timeline refuses an id that is not a page.
- request_render's new preview argument in the zoom preview test; the Motion
preview takes no drag sprite, since it already draws every layer.
- Node size budget raised by the 48 B of the inline motion field.
- Parity checklist regenerated (697 commands); architecture count updated.
Implements the Motion panel: the document model (clips, tracks, keyframes, easing, smart animate), 11 engine commands (motion.keyframe, keyframeMove, keyframeDelete, keyframeEase, clip, clipUpdate, clipDelete, track, replace, timeline, animation.transitionPoses), and the timeline, inspector and easing panel that drive them.
Review gate: Prototype keeps its own entry in the mode switcher and Animation is a fifth entry beside it; the preview is evaluated for the renderer only, so the session's document is never replaced and a canvas gesture writes the document; every inspector, easing and clip edit opens an interaction first (begin_interaction) and drops itself when the document refuses it. cargo fmt and clippy -D warnings pass, body_rows/apply are split, parameter docs are list-form, and ROADMAP/parity/architecture are updated (634 ids).
Review fixes: a page copies its timeline settings and takes them with it when deleted; reading timeline settings clamps them, so a collaborator's entry cannot hang the ruler; motion.keyframe rejects a value of the wrong shape before writing; a reparented smart-animate pair is rewritten into its new parent's space; the preview cache key carries the document uid; the mode setup lives in motion::set_open, shared by the toolbar and ui.set {motion}; stretching a zero-width layer span keeps the motion instead of panicking; the timeline header's tooltips go through tr().
After an answer, the person could undo its last step and make an edit of
their own: the undo depth came back to the recorded number, so Undo answer
was offered again and would have undone their edit. The panel now keeps the
document the answer (or its last Undo/Redo) left and offers the buttons only
while the document is still that one.
- The loopback MCP endpoint's bearer token comes from the operating
system's secure random source (getrandom, as collab-net's session
secrets), not from the standard library's hash keys.
- Undo answer also checks that the document is the one the agent's last
call left: an agent step the person undid and replaced with their own
edit (same undo depth) no longer counts as the agent's.
- Saving a skill replaces only that skill's own file; any other file at
the same name, unreadable or not a skill, is left alone, and new files
are created exclusively.
- Switching conversations parks the queued requests with the
conversation they were typed in, as switching files already did.
- The Ask gate missed `plugins.*` (runLast runs a plugin) and `libraries.*`
(only `plugin.`/`library.` were matched), and `pref.publishServer`, which
changes where shared files are sent.
- The Auto mode's doc said the automation roots confine file access; a
window opened normally has none, so say when they apply.
- rustfmt the same-layer exceptions in xtask/src/layers.rs.
A multiply (or other non-Normal) drop or inner shadow blends with what lies beneath the layer.
The sprite is rendered on a transparent surface, so the shadow would look different while dragging.
Streaming
- Bound SSE line and event sizes; read the stream on its own thread so
Stop returns at once, even while the endpoint is silent.
- Report a stream that ends before its completion marker
(finish_reason/[DONE], message_stop) as interrupted.
- Anthropic: use the start block's input only when no argument fragments
follow (the `{}` placeholder no longer corrupts streamed arguments).
Agent loop
- Don't run tool calls from an answer cut off at the output limit.
- On Stop, give every pending tool call a result so the history stays valid.
- Send no images to a text-only model, from earlier turns included.
- Trim old images regardless of text length, then long old text.
- Ask before file commands nested in batch / command.batch.
MCP endpoint and CLI agents
- Bound header reads; check Stop before any tool, and again after Allow.
- Codex: exec options before `resume`, so resumed turns keep read-only.
- Remove staged images after the run; keep Stop working after stdout closes.
Design system and skills
- One command.batch for page, tokens and guidelines (one undo step,
all-or-nothing), pinned to the file the call started in.
- Match the page name exactly; update variables by id.
- Never overwrite another skill that maps to the same file name.
Chat panel
- No clipboard read on control-channel paste.
- Removing a connection keeps the active one; model lists go only to the
connection that asked.
- Queue waits after a failed turn and stays with its file/conversation.
- Try again resends the original images and hidden instructions.
- New chat during a turn waits for it to finish.
- Undo answer is withheld when the person edited during the turn.
- Layers panel: cover the Agent tab in the left panel title match.
Docs: name the same-layer exceptions the layer check allows.
Resolves conflicts with the .fig reader moving to craft-fig and craft-figma-rest: the paste-only identity import goes through the budgeted importer, a main's library key is added to its mapped source in FigCraft's map pass (the shared mapper no longer has it), and load_fig is test-only now that the paste reads through load_fig_pasted.
At opt-level 0 the .fig deep-import tests overflow their 1 MiB thread
stack and the plug-in host crashes (STATUS_ACCESS_VIOLATION) in the
plugin and engine tests on Windows.
A frame, component, component set or instance with Clip content off now draws its
drop shadows as its outline is, only moved by their offset: no ring for a positive
spread, no shrinking for a negative one. A rectangle or a clipping frame still grows
and shrinks them, and turning Clip content back on brings the spread back (the
stored value is unchanged).
The canvas, PNG/JPG/WebP, PDF and SVG exports agree, and the paint and export
bounds leave no room for the ignored spread. Inner shadows keep their spread.
In the full-window presenter (and the preview pane, which shares the player) touch
now acts as touch:
- A tap is a click: its release counts where the finger lifted, although a touch
screen takes the pointer away in the same frame.
- A finger has no hover: Mouse enter, Mouse leave and While hovering don't fire from
it, so they can no longer swallow the tap. A press that comes from nowhere (no
pointer position before it, no move to it) counts as a finger even before its
touch event arrives, as a browser sends them. A mouse moving hands hover back.
- A swipe scrolls a scrolling frame, or fires an On drag trigger, as a mouse drag
does; a small wobble is still a tap.
- A second finger cancels the press: a pinch neither drags, scrolls nor taps, and a
scroll it interrupts springs back inside its range.
The control channel's ui.input takes {touch: [x, y], phase, finger?}, sent as a
touch screen sends it, so this can be driven without a touch screen.
- Lazy open verifies image members within the same archive-wide expansion limit the eager
loader uses; members past it open unverified and stay bounded per read when used.
- An in-place save pins an undo/saved image when the new file holds different bytes under its
key, not only when the key is gone (keys need not be content hashes).
- collect_live_image_keys becomes collect_live_images (key -> the image written for it).
- ImageData equality: two lazy images that both fail to load no longer compare equal; equal
content-hash keys compare without reading either store (as the PR describes).
- save_to and encode_at share FileSnapshot::prepared instead of duplicating the doc prep.
- render: video players read lazy bytes through ImageData::bytes (new on main since the PR).
- docs/file-format-parity.md: revision row for #1313.
Resolves conflicts in crates/engine/src/lib.rs (keep both test modules) and
crates/penpot/src/export.rs (keep main's orientation check on lazily loaded bytes).
Once the drag ends, the sprite keeps asking for and showing a backdrop render of its last
place until the canvas render replaces it, so a render still on its way when the button goes
up isn't left showing an older place's backdrop. A render test checks that a layer dragged
together with the pane, under it, shows through the pane as it would where both are.
follow_text_style compared a char's variations as a whole, so once a
local Bold left a style's wght out, later changes of the style's other
axes (wdth) no longer reached it. Axes now follow one by one, the style
axes still the char's own under a local style name.
style.apply on a range (Reset to style while editing) wrote a bound
style's default-mode values; it now resolves them in the layer's modes,
as applying to the whole layer does.
A range such as ::ffff:10.0.0.1/95 or ::/0 was accepted but never held an IPv4 peer, since the
peer is compared as IPv4 while the range stays IPv6. An IPv6 range now holds an IPv4 address when
it holds its mapped form (::ffff:a.b.c.d); an IPv4 range still holds no IPv6 address.
A dragged layer with any effect on it used to give up the drag sprite, so every pointer
move asked the canvas for a new render (about 20 ms each for a 600 x 360 glass pane over
stripes in a debug build here; 48 ms per move in the release glass bench at 200 %), and the
layer stuttered behind the pointer.
- The sprite now takes layers with effects of their own (drop and inner shadows, blurs,
noise, texture, glass): render_area draws them as the page does.
- A background blur or glass in the sprite reads what lies under it where the layer is now:
figcraft_render::render_area_moved draws the layers where they started but reads their
backdrop at the drag's shift. A thread of the sprite's own renders it for the latest shift
and hands the image back; the sprite keeps moving with the outline every frame and shows
the newest render. The canvas renders nothing until the drop.
- The glass shading loop runs its rows in parallel outside a parallel render (exports and
the sprite), as blurs already do; bands of a canvas render stay on their own thread.