Repository navigation
chore(sync): sync commits - #518
Conversation
#456) * fix(screenshot): recover from a wedged Chromium and bound every render On 2026-11-05 prod's one shared headless Chromium stopped creating pages from 17:41 UTC: its DevTools socket stayed open, so `connected` stayed true, and every render (frame images, MCP screenshots, the resident's checks, exports, imports) waited out puppeteer's 30s target timeout for two hours until a manual restart. getBrowser only ever checked `connected`, nothing bounded concurrent pages, and a stuck DevTools call held its caller for puppeteer's default 180s. server/renderBrowser.ts now owns the browser's lifecycle: - a gate of RENDER_CONCURRENCY pages (default 4), background thumbnails capped at 2 and served after waiting agents, with a bounded, timed queue that refuses with RendererBusyError (HTTP 503 + Retry-After) - opening a page has a 15s deadline; a browser that cannot open one is killed with its process group (a stalled graceful close no longer prevents the SIGKILL) and the open retried once on one shared replacement launch - a render that fails like a browser failure runs a health probe outside the gate; a browser that fails it is killed and the render rerun once, a frame that is merely slow is not retried - every page has a 120s lease, so a stuck caller cannot starve the gate - browsers are recycled after 500 pages or an hour, drained first - DevTools commands time out at 60s instead of 180s - screenshots are capped at 50M device pixels (renderLimits.ts); the MCP tool says when it cropped - GET /healthz/renderer reports kills, queue depth, lastOpenedAt and failed opens in a row for an uptime check Builds on #399 (deadline, retry on a fresh launch) and fixes its two open review findings. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(screenshot): address review on the render pool - importPage gives its capture page back before opening the preview page, so view_website and import_webpage no longer wait on themselves when RENDER_CONCURRENCY=1. - Tall renders keep the full frame height as the viewport (100vh, height media queries and bottom-fixed elements lay out as on the canvas); the pixel budget only bounds the captured clip. - A page whose context will not close kills its browser instead of handing its slot to the next render while it may still be alive. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit 8bfec4dffbf2f862cca00278bcf7a19516b9d38a) (cherry picked from commit 10a37c9)
…ser Run) (#458) * feat(screenshot): render in a remote Chrome over CDP, e.g. Cloudflare Browser Run REMOTE_BROWSER_URL (+ REMOTE_BROWSER_TOKEN as a Bearer header) swaps the local Chromium launch for puppeteer.connect; the gate, deadlines, probe and recycling from the render pool stay in front of it. A remote browser is closed 30s after its last page, since providers bill open sessions, and one whose close stalls is disconnected. Provider-neutral: Cloudflare, browserless or our own renderer service are each just a URL. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(screenshot): name a refused remote connection, and let PDF export run on a remote browser only A provider refusing the CDP upgrade rejects with a ws ErrorEvent, not an Error, so routes answered a bare 500; a 429 now surfaces as RendererBusyError (503 + Retry-After) and anything else keeps its message. PDF availability asked only for a local Chrome binary. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(screenshot): let a remote browser fetch public resources itself The pinned proxy in guardPublicPageRequests keeps a local browser off the server's private network by fetching every resource in Node and handing the body back over CDP. A remote browser is not on that network, and shipping every body across the internet timed heavy website imports out (stripe.com, doop.design). Off the network, public http(s) requests continue in the browser; private addresses and other schemes are still refused. Closing a remote page gets 15s, since a heavy import's teardown outlived 5s. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * test(pdf): count a remote browser on a server without a local Chrome Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(screenshot): fetch directly only from a remote browser declared isolated Being remote does not mean being off our network: a self-hosted renderer can sit beside private services, and continuing its requests would let an imported page reach them through a hostname that resolves privately. REMOTE_BROWSER_ISOLATED is the explicit declaration (a hosted provider such as Cloudflare); without it a remote browser stays on the DNS-pinned proxy. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit af873bed1d6d16ebe6da53f01d466cdcbaba03a2) (cherry picked from commit 9d62ccf)
The frame replay bridge only reached iframe[data-doop-frame], so the prototype player's screens (data-doop-proto-frame) stayed opaque sandboxed documents and replayed blank. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit cebc050ac93202eddeb0b470f63be6fe93c1fc56) (cherry picked from commit 824a1a1)
search_logos' keyless fallback handed agents DuckDuckGo .ico URLs, which sharp cannot decode. A small decoder now reads the icon's largest entry, PNG or bitmap, with its transparency; the favicon is converted to PNG and stored as a Doop asset (one per domain per process), so frames hold a plain image on our own origin. When an open-source vector mark exists and the only brand hit is a favicon, the vector marks come first and the favicon is labelled as one, in both the MCP tool and the resident agent. (cherry picked from commit b42dc426a05555e4a40f81eb452ba963f4c6cbbe, without the Figma and Canva export paths, which OSS does not ship) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit 2bfe8f4)
Design tokens, prototypes, page backgrounds, version restores, Figma imports, every export and Copy as PNG, rich text formatting and SVG / PDF imports sent no events. Features agents can reach now report from the server at the route, MCP tool and resident tool, on the person the work belongs to and with where it came from, so agent use is counted too. The browser-only ones capture with posthog-js, and every export, whichever control started it, lands as one frames_exported with its source. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit 78d0c3acb78dcb5010727afb93921c5e63e62137)
* feat(shell): suggest the native app from the browser A computer's browser gets a desktop-app card at the foot of the rail (Download for macOS / Windows / Linux, dismissed for good); an iPhone or iPad gets a bottom sheet pointing at the App Store (snoozed 14 days), on Home and the canvas, held while the onboarding questions are open. Nothing shows inside the desktop app, on Android or on ChromeOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(shell): hold the iOS sheet until onboarding is settled, drop the grab handle useOnboardingAsk now reports `pending` while the account or its answers are loading (a failed check settles as not asked), so the App Store sheet no longer opens, hides under the questionnaire and opens again on a slow connection. The sheet's grab handle implied a swipe the Radix sheet does not have, so it is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 1cd31f6a9e32d364510129953ed85db34a9b0a87)
* fix(components): queue a standalone main's frame rename with its others The companion frame write now goes through renameFrame's per-frame queue with no undo step, so overlapping failed saves roll back to the last saved name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(components): name an instance's layer from its Layers row, as Figma does A double-click on an instance's row now names that layer alone. The name is a data-doop-name the instance keeps as an override, so it stays linked and the name survives changes to the main; an unnamed instance still shows the component's name. The main's row keeps renaming the component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): show the component's name on an instance that only inherits a layer name An instance inherits the data-doop-name its main carries, so a main named as a layer before it became a component made every unnamed instance show that stale name. A name now counts as the instance's own only when it differs from the main's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): read an instance's own name from its saved overrides Comparing with the main's layer name hid an instance's own name once the main took the same one. The Layers tree now asks the instance root's overrides whether they name it, which is what the server keeps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): find an instance's own name under its component's root key A nested instance's part attribute names its place in the outer component, which need not be its own root's key, so the name override is now looked up under the root key read from the instance's component template. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 2254225215628be63847b1a57baae8109a0d5891)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 3653221318ba04ef7e3064a4f72536d580fbca47)
…iew (#494) * fix(components): show only the default in the Components panel's preview The panel card rendered every enum variant with a prop=value caption under each. The panel route now asks for the default alone, uncaptioned; agents' get_component_preview keeps the full variant sheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(components): pin the panel card to the declared default, not the first option Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit cbc7d4b89dd6a673ef1be947eb21080f5c4e6441)
…ds (#495) * feat(components): match the component section to the inspector's dense fields Instance props use PropertyRow fields, the section's spacing matches the sections below it, and image props open the image fill's popover (now a shared ImagePicker). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): read the frame after an image pick, let image props clear, gate scrub on disabled Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 37f7ea1d153fbf7fc3e4e70f5c39fd8f14fb3a67)
…ions at the top (#500) * feat(components): search at the bottom of the Components tab, its actions at the top Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(panels): keep the 16px phone font in the panel search so iOS does not zoom Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit efb030d68b1c0c3e7bcecfed04edb9fce0dc3ce9)
…t previews (#497) * fix(tokens): write canvas tokens and fonts into a frame while it streams An append stream only got its token block, library font faces and hosted font link on the done chunk, so mid-stream screenshots and viewers saw unstyled var(--…) values and fallback fonts, and agents pasted token CSS in by hand to work around it. Every chunk now runs the same pass once a complete <head> or <body> tag has arrived; before that, the insertion point can still be a half-written tag. Each pass replaces the blocks the last one wrote, so chunks never stack them. The pass moves to withCanvasFaces in server/canvasFaces.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): preview components with the canvas tokens and fonts get_component_preview rendered its variant sheet without the canvas's token block or font faces, so a component styled through var(--…) previewed with none of its values. The sheet now runs withCanvasFaces like every frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(tokens): keep a mid-stream rename's values and redraw component cards on token edits Greptile review on #497: a token renamed while a frame streams waits for the stream to close, so a chunk before then keeps the block under the names the frame uses instead of dropping their values. Component cards now refetch their preview when the canvas's tokens change, since the sheet carries their values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0227017338d612d46d5ef1edf913cfd0019db0fa)
* docs(guide): steer agents to tokens and nested components An agent that designed a two-screen canvas reported why it used neither tokens nor components until asked: the brief sent the palette to save_decision, create_tokens was never mentioned, and the component rules read as if they only applied to frames. - The brief creates the canvas's tokens before the first frame; a canvas with tokens counts as an established style. - save_decision records the why behind a choice or a requested change, never a copy of the values (MCP and resident descriptions, Memory). - FRAME_STYLES: use var(--…) from the canvas tokens, never a frame's own :root palette; a missing value becomes a token. - COMPONENTS: mains nest <doop-use>, the repetition rule holds inside them, states are item props, and what auto_props=false freezes. - The review checklist gets a Reuse item (resident review line too). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(guide): say what auto_props=false actually turns off Greptile review on #498: it skips automatic props only; explicit bindings and per-instance edits still work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 6369f753847ec364250a01c92c8dff9c74846ddc)
* feat(agents): warn at the write about blocks and colours to reuse Agents follow a tool result more reliably than a guide read at the start of a session. A whole-frame write (create, replace, a finished stream; the resident's create, set and commit too) now also hears: - REUSE: a block written out three or more times, with the create_component + replace_matching call that fixes it. - TOKENS: colours the canvas has as tokens (#hex -> var(--name)), a palette declared on :root or tokens redefined there, and on a canvas with no tokens a frame hardcoding four or more colours. create_component and update_component name rows a main repeats by hand and what auto_props=false costs. get_canvas and the resident kickoff say when a canvas has no tokens yet. upload_asset states its per-minute limit and its refusal says when to retry. The resident's whole-frame writes returned no component notes before; they now get the same notes as MCP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): make the reuse and token notes accurate Greptile review on #501: - The three-copy threshold now applies before larger groups hide what repeats inside them, so two panels of three rows report the rows. - A token whose value changes under a theme is never suggested for a hex, since it would change the colour in a frame under that theme. - A token redefined on :root is flagged on its own, whatever its value. - Colours are read from declaration values only: selectors, url(#…), strings and comments no longer count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 85c8a221eb35d456653460958f0129a0f8328c5c)
* fix(icons): serve search_icons icons from Doop's origin Frames hotlinking api.iconify.design rendered blank in screenshots and exports on and off: the hosted renderer fetches outside pages itself, while Doop's own /a/ assets always loaded. search_icons now hands out /icons/<prefix>/<name>.svg, which the server fetches from Iconify (only its known customisations pass), caches in memory and serves like an /a/ SVG. The renderer also points a frame's existing Iconify hotlinks at Doop before loading it, so frames written before this render too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(icons): keep icons in the bucket, cap Iconify fetches, read them in-process for Figma Greptile review on #499: - Figma export read a Doop icon URL through fetchRemote, which refuses a private BETTER_AUTH_URL; it now reads the icon in-process. - Distinct colours or sizes bypass the cache, so a burst could start unbounded upstream fetches; at most 16 run and 64 wait, then 503 with Retry-After. Each icon is also kept in the bucket (icons/<sha256>.svg), so it is fetched from Iconify once ever and survives restarts and Iconify outages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(icons): type the stubbed fetch with the global Response Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(icons): name the provider in the icon URL and bucket folder /icons/iconify/<prefix>/<name>.svg, stored under iconify/, so another icon source can sit beside Iconify without a URL that frames already hold changing meaning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit ed3b3929cdc906588bc21ca3f878647c1c70fc1d)
Stock photos get the treatment icons got: search_images hands out /photos/pexels/<id>.jpeg?w=&h= (the provider in the path), which the server copies from Pexels into the bucket the first time anything loads it and serves as an immutable image. Photography then renders in screenshots and exports like an /a/ asset, and outlives Pexels' links. Pexels' licence allows rehosting; only photos something loads are copied, never every search result, and arbitrary hotlinks are never copied. The fetch, bucket, LRU and fetch cap move from iconProxy.ts into hostedCopies.ts, shared by icons and photos. The renderer points a frame's existing Pexels hotlinks at Doop as it does Iconify's, and Figma export reads both in-process. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 264e13f4a5bca11068d44aff84a1f424e29c6628)
…hat renders nothing (#504) * fix(components): bind an image's src from a bare data-doop-prop A bare data-doop-prop="artwork" bound the element's text, so on an <img> the prop filled nothing and instances all showed the main's picture. Agents hit this in prod, since create_component's description showed only the form for links. parseBindings now takes the element's tag: a bare name binds src on img, source, video, audio, iframe and embed, and value on input, and the prop is typed as an image. The description shows src:photo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): report a doop-use that renders nothing Two ways a <doop-use> vanished with nothing said: - An unclosed one was skipped, and so was every <doop-use> after it, since the scan stopped there (a likely cause of the footer reported missing in prod). On a whole write it is now placed with no slot content, the ones after it expand, and the agent hears unclosed_use. Mid-stream it still waits for its end. - A component whose main has no markup rendered nothing; it now reports empty_template. A <doop-use> the parser cannot read is reported too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): keep stream chunk notes, read bare targets from a Map, place nested unclosed uses Greptile review on #504: - A <doop-use> a stream chunk expanded is gone by the done chunk's pass, so its note (an empty main) was lost; chunk notes are now held per stream and delivered with the done chunk, and cleared on an idle close. - BARE_TARGET is a Map, so a tag named like an Object member (constructor) keeps its text binding instead of throwing. - A whole write now reaches nested expansion: an unclosed <doop-use> in a saved html override is placed too, and the ones after it expand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 66751207f95782de469a8836bd66733fd82e4388)
…i marks (#507) An agent's icon was read only from the name it chose, so an agent called "Bau" wore the Doop mark whatever tool it ran in. The server already knew the MCP client's name (from initialize, else the OAuth application) but kept it to itself. Agent presence now carries a `brand` resolved from the client first and the display name second (shared/agentBrand.ts), and every agent icon on the canvas uses it. Adds BrandMark entries for Grok, opencode and Pi. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 1b727672e94dc772195cfd52cbd7858fb005ea6e)
…#508) * fix(inspector): size the export dropdowns like the other panel fields Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): keep the custom scale field at 16px on phones Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 25def949d5fc5dcd86b21a983e35b3bfda07811a)
* fix(settings): make the image descriptions card readable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(settings): name the server as payer when My model falls back to it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit aab4f96c2662d0d93dcbc1b5d97402fa46f5ad5b)
* feat(components): workspace component library Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(workspace): a Libraries pane on the Workspace page Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): library review findings A publication's version always rises, pulled updates carry new tokens, a pasted main of a linked component becomes an instance, library previews are keyed by publication, a deleted canvas's snapshots leave memory, and the library card returns at five components with the panel open. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): dismiss the library card when storage cannot be written Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(components): say what the library waits on at the top of the tab Unpublished changes and waiting updates move to the top of the Components tab on an accent tint with a brand button, and the tab wears a dot for either. Component previews now resolve the canvas's design tokens. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * test(layers): answer the Components tab's library status in panel tests Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): a published component brings what it nests from other libraries Found by an agent-experience run: a component built out of another library's components was adopted without them. Also names workspace libraries and publish_library in the server instructions, loosens the publish wording to any phrasing of the request, and reports the publication a link follows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(components): publish_library says where an update still has to be pulled From a second agent-experience run: the publish result lists the canvases using the library and what each has to pull, sync_component without a component pulls every waiting update, an edit on a library canvas says it is unpublished, and the publish result no longer reads as stale. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): list importable components without reading unloaded frame HTML Listing other canvases' components counted their instances, which reads frame HTML that is loaded per canvas: list_components with libraries=true and the import picker failed for any canvas not in memory. Found by an agent-experience run on a smaller model. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): library reach in dry runs, a clearer find error, one revision count for links A dry run on a library canvas names the canvases that follow it, find + replace says when the text is in the CSS, and a linked definition's revision is the publication it shows, so instance markers and the library agree. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * test(components): the library's plan gate with billing on Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(components): drag a library component onto the canvas A workspace library's card in the Components panel carries its library and component id under its own drag type. The canvas takes the component up on the drop, then places the instance where one of its own would land, so a drag let go elsewhere imports nothing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(components): resume the library flow after checkout, and a setting for who may publish Resume: LibraryUpgradeFlow notes the canvas, workspace and component in the browser just before Stripe Checkout opens. Back on the workspace page with the plan live, the person is sent to the canvas, where the Components panel takes the note once: it moves the canvas into the workspace when it is in none, then opens the publish dialog. The note lasts 30 minutes and never publishes. Publish setting: a workspace can keep publishing to its library to its owner and admins (workspaces.library_publish, migration 0054). One gate in publishToLibrary / unpublishFromLibrary covers REST (403), MCP and the resident agent; the library status reports canPublish and the panel offers no publishing where it is false. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(components): update every canvas using a library in one explicit step Publishing a workspace library still changes no other canvas. A separate action from the library's side now pulls its latest publication into every canvas of the workspace that uses it: POST /api/canvases/:id/library/update-consumers, the update_library_everywhere agent tool (MCP and resident), and an "Update everywhere" button in the Components tab and the Workspace page's Libraries pane. Each consumer is loaded and held while it is pulled, since frame HTML is loaded per canvas. Each pull is the ordinary one: history, withdrawn sign-off, the room. Only canvases the acting account may edit are changed; the rest are skipped and reported, and a dry run reports without changing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): the library card's move dialog starts on a workspace Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): say what authoring a component dropped, kept and named Five things agents hit while making components, each answered `ok: true` and nothing else: - data-doop-prop (and data-doop-if / data-doop-slot) on a <doop-use> rode along as a junk attribute override on the nested root. They are dropped with an `ignored_attribute` issue that says what to write instead, and no longer switch prop inference off. - CSS reaching into a nested component (.plan .btn) was left behind. It is kept when the selector starts at one of the component's own elements, scoped to its instances; rules passed as css that name nothing come back as a `css_not_kept` issue with their selectors. - Inferred props are named by what the element is (title, label, image, link) or a class that is not a utility class, and create_component lists them as inferred_props. - create_component from html says where the main went and that nothing was placed. - update_component with props took two revisions (its own bump, then the main's write). The main's write now fills the revision the props opened. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * docs: the library's explicit push and publish setting in the tech stack notes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * docs(components): update_component says find + replace is for the markup, not the CSS Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): library review findings, second round A pull checks its whole closure before writing anything, a nested component resolves through the library canvas's own link rather than by id, a library card places nothing on a canvas opened meanwhile, and update-everywhere reports on the Workspace page's toast. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(components): a publication records which library each nested component came from Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit 8eaf9cff6fd2bcff97d46664ccd2b987e519d64d)
…rt_layer) (#509) * feat(export): export a layer from the Design panel and over MCP (export_layer) The element panel's Design tab now ends with an Export section, as Figma ends a layer's properties: the shared scale and format, "Export <layer>" and Copy as PNG. Agents get export_layer (MCP and the resident agent): name an element by its data-doop-id or a CSS selector and get /i/<frameId>.<ext>?element= (or &selector=) URLs. The server renders the frame whole and screenshots the first match's box, clipped to the frame; a missing, invalid or empty match is a 404. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(export): crop a layer against the whole frame, refuse an empty box before rounding Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 83eae301a1fb6211673c1113fd7fa9068dcdb4b5)
…ponents (#505) * feat(canvas): pages in the URL /c/<canvas>?page=<page> opens that page in the first paint, the address bar follows the open page with replaceState (as ?pane= does on the Workspace page), and a page's row menu copies a link to it. A frame link's page wins over `page`, a page that is not on the canvas falls back to the default and is dropped from the URL, and the default page carries no parameter. The default is the first page unless the canvas payload names a landingPageId. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(components): a library canvas opens on its components A canvas that publishes a workspace library, opened by a link naming no page, frame or element, lands on the page holding the most published components' mains (a tie goes to the page named "Components", then to page order) instead of its first page. The server works it out from frame metadata and sends it as landingPageId on the canvas GET and the room's init, so the editor opens there in its first paint. A canvas that is not a library opens as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit f97d2579669b62ad601e5fd0eafdb8786a95f1e0)
* feat(agents): chat history in the Agents tab Under Recent tasks the Agents tab now shows the conversation: each prompt sent from the composer (and feedback left on one) with the agent's answer under it — waiting, working, the run's closing words, or why it failed. A finished resident run keeps its closing words on the cards and feedback it handled (actions.recordWorkReply; a `reply` column on tasks and feedback, migration 0056), so answers survive a reload instead of living only in the activity log. The line between Recent tasks and the chat drags to resize, takes ↑/↓ when focused, resets on double-click, and is remembered per browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): keep feedback completion and show active runs in the chat - Feedback writes queue per row, as task writes already did. A run saves a feedback's reply and then its completion back to back; unordered, the older write could land last and erase completedAt, so after a restart finished feedback read as interrupted. - A retry or the next pipeline stage shows "Working on it…" instead of the previous run's answer, which stays on the card until replaced. - The resize line reports its real height and range to assistive tech. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(persist): wait for queued task and feedback writes before deleting a canvas Task and feedback writes queue per row; deleting a canvas did not wait for them, so a write queued just before (a run's reply, then its completion) could re-insert a row after the delete. Each queued write now records its canvas, and deleteCanvas deletes tasks and feedback once that canvas's writes have settled, as it already does for tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 94a78297496d65e1bc413820d3f2c2da8cdc37e7)
…n team (#510) * feat(agents): custom agents, and switching off or editing the built-in team A workspace (Workspace → Agents) or a person (Settings → Doop Agent, for their personal canvases) now shapes its own Doop Agent team: - add custom agents: a fixed name and @handle, plus a colour, one-liner, instructions and reviewer flag; they answer @mentions in comments and the composer, take automation steps, and are listed by get_canvas - switch built-in agents off (Doop stays on) or edit their colour, one-liner, instructions and reviewer flag, with Reset to default Every role lookup takes the canvas's roster. Instructions a team wrote are set apart in the resident's system prompt under the shared rules, and never reach a canvas's viewers. Work waiting on an agent that is deleted or off goes to Doop. An @mention in the composer now picks the card's pipeline. Migration 0056 adds custom_agents and agent_overrides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): scope the resident check, recheck membership, refresh moved rooms - restart recovery counts a custom agent as resident only on its own team's canvases, so an outside agent sharing its name elsewhere keeps its in-flight feedback - built-in agent edits and resets ask again for membership once their turn in the scope's queue comes, as custom-agent writes do - moving or claiming a canvas, and deleting its workspace, sends open rooms the team they now have Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): mark resident feedback claims instead of matching names A custom agent may share an outside MCP agent's name on its own canvas, so restart recovery can no longer tell a resident claim from an outside one by name. Resident runs now claim through takeResidentFeedbackFor, which records claimed_by_resident (migration 0056); recovery fails only those. Claims from before the column could only be the built-in team's, and keep the old built-in-name check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 65a3f70fdcdb40b66c029a787d00d9ec8eae4495)
…#513) prepareMains re-parsed the whole frame HTML twice (stylesheets, head tags) for every main it held. propagateComponents runs it on every frame using a changed component, so a canvas with hundreds of mains blocked the event loop for minutes and spiked the heap by ~10 GB (prod stalls 2026-11-11). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 4d31b66a0182baab5de0c900b0aa326364fb258c)
…tes (#514) DOOP_DEFER_COMPONENT_PROPAGATION=true stops a frame write that changes a main from rewriting every other frame using it in the same tick; each one catches up on its own next write (prepareFrameHtml upgrades instances). Explicit component tools still propagate. The sweep is unbounded on large component libraries and kept blocking prod's event loop after #513. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit ea4a8e549aec7ba04cce48852f54cb794ff88e0f)
…is done (#517) * fix(agent): raise the resident step limit and finish runs whose work is done The resident's 24-turn cap failed ordinary runs: one-tool-per-turn models finished at 20-23 turns, and runs that delivered and verified their frames were marked failed when the cap landed on the last check. Raise it to 60 (80 for redesigns), count a capped run with delivered, verified work as done, and reword the failure copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agent): accept a capped run only for one checked piece of work Greptile review: a capped run with several cards could advance the unfinished ones, a screenshot on the last turn counted as checked though the model never saw it, and the desktop shell still clamped Claude Code runs to 40 turns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agent): an edit on the last turn undoes the frame's seen check Greptile review: a frame checked earlier, then edited and screenshotted again on the final turn, still passed the before-the-turn snapshot. Every invalidation now clears the seen check too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit aad97dffb33291bc800b59acf7218fb2441cff0e)
After a submit the composer flies to the first new frame. A component made from markup lands its main on the Components page, so the person was pulled off their page onto it. Pass over component mains and wait for the deliverable. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit cc1d916e867f322022e56694a9b249b4deb3e186)
#518) * feat(agents): refuse base64 data URIs in frame writes, add upload_font Agent writes that add a base64 data: URI are refused with what to do per kind; a URI the frame already holds may be carried over. upload_font adds a font file to the canvas's library (MCP and resident), and the guide's new "Keep frames lean" section covers fonts, large SVGs, libraries, data and media. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): check the assembled document for base64, keep a stream's starting HTML Greptile review on #518: a URI split across stream chunks, rewrite chunks or an edit's edges is caught on the document as it would stand; a stream compares later chunks with the design it replaced; component tools compare with the stored component and the target frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): check a stream's own text, not the component-expanded frame Greptile review on #518: a stream using a component with a base64 image had the expansion read as an upload on the next chunk. Stream chunks are now checked as the tail of the agent's previous chunk plus this one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit fba9469bac34348e0e9b9d2e87df405ee0b199e6)
* fix(canvas): frames never show a scrollbar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): frame scrollbar rule outranks a design's :root and body.x rules Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit d04c3b16163578a65341efc1acc539f5c35cf390)
* feat(inspector): number fields double as sliders; icons scrub Opacity, fill opacity and corner radius show their value as a fill and thumb on hover; dragging anywhere on the field moves it relatively. The field's icon is now the scrub handle (the unit when there is none). New corner radius and rotation glyphs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): slow alt slider drags; icons on every number field Alt now moves the slider at a tenth of the speed in 0.1 steps and Shift snaps to tens, accumulated per pointer step so a modifier change mid-drag never jumps the value. Gap, line gap, grid row/column gap, stroke width, font size, fill opacity, and prototype delay/duration get icons, so they scrub from the icon like the rest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): draw the font size icon as a small and a large T Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): font size wears a plain T Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 37ddbcef679ae62bc84191279aad594f73909621)
…#544) * feat(canvas): place hand-drawn layers absolute and group them as flex Shapes drawn into a frame are position:absolute with left/top, and moving an absolute layer rewrites left/top instead of piling on a translate. ⌘G, ⌥⌘G and ⇧A on absolute layers build one absolute group where they were: a flex row or column with the gap and alignment read from the layout, or pinned in place when they overlap. ⇧⌘G puts the layers back absolute where they show. Groups pick as a whole (double-click goes in), drops into a flex group reorder in flow with the insertion line (also for shapes on the frame), drops onto a hand-placed box go absolute where let go, and Layers panel moves place layers the same way. Flow drops strip a layer's own inline placement instead of writing position: relative !important. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): keep grouped, ungrouped and dropped layers where they show Review fixes for hand-placed layers: - new drawings and transfers count from where the body places absolute layers (a positioned body with a margin), not the frame corner - pinned groups switch older position:fixed drawings to absolute - grouping under a scaled box measures in that box's own px (gap, corner) - flex items stay positioned when they hold absolute layers, and a stylesheet-placed layer is overridden rather than left out of the flow - ungroup writes the CSS width (not the padded box), refuses a turned or scaled absolute group, and always checks for an edit made meanwhile - an absolute drop no longer counts the layer's transform twice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): read the frame after the body-corner wait when saving a drawing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit f0fd0812acfba7d72322cdfd89dd308d03f68054)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit c3ce8a344c10bd8f03cf26f780bf5b7516ab6515)
#545) * fix(inspector): the element panel swaps layers in place, no skeleton flash Picking another layer showed the loading skeleton for the one inspect round trip, which read as the panel closing and reopening. The previous values now stand in, inert and aria-busy, until the new read lands; the skeleton only shows if that takes over 400ms. The panel is no longer keyed by frame, so a layer in another frame swaps in place too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): a layer's grace resets once its read lands Greptile: after one slow read, slowFor kept that layer, so returning to it later showed the skeleton at once. Clear it when the read arrives, and test the slow-read-then-revisit path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): picking another standalone shape keeps the element panel up A press on a standalone shape selected its frame first, which closed the element panel, and the shape came back only once the click's probe answered (a 250ms double-click wait plus the round trip). With the panel up, the press now picks the shape at once, so the panel swaps in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 9ae6769e2ce370f58a4d0f55e3057b99fb82e1b4)
* feat(mcp): let agents set frame approval when a person asks set_frame_approval (MCP and resident) marks a frame ready for dev or back to draft in the name of the person the agent works for, recording the agent as approvedVia. Pinned to the revision the agent read; refused mid-stream, without edit access, and in automation-queued resident runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(mcp): drop the revision check from set_frame_approval Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(resident): an approval-only card counts as delivered Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit bf5b554cdc0b8179779211cf3465773ae93b73c9)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit fcf7f645f5893206df763545c0ef33115088462b)
The frame Inspector drew the rotation prefix as a tiny ∠ text glyph; the element panel had a hand-drawn icon. Both now use Lucide's Angle. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 9bcca5e855b5699189d3d143984ecf2ac29227df)
…the image api (#550) * feat(images): pick gpt image 2.5 sunburst or flare on an openai api key The ChatGPT (Codex) backend ignores the image model id, so a subscription cannot choose its image model: the new models are their own credential family, openai-api, run on an OpenAI key only. Settings shows them as one GPT Image 2.5 row with a Sunburst / Flare dropdown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(images): run the api-key gpt image models through openai's image api, add 2.6 GPT Image 2.5 and 2.6 go to /v1/images/generations, where OpenAI documents them, with the size and quality as the request's own fields and no text model in front. GPT Image 2 stays on the Responses tool, the one path a ChatGPT subscription can use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(images): split chatgpt and api gpt image rows, add more image api models Settings has a "GPT Image via ChatGPT subscription" row (ChatGPT picks the model) and a "GPT Image API" row whose dropdown lists every model the Image API takes on a key: 2.6 and 2.5 Sunburst/Flare, chatgpt-image-latest, gpt-image-1.5 and gpt-image-1-mini. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(images): image model dropdown takes its own line on phones Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 315d4a7681fad96c8ebbbcb135ad17522552c571)
* fix(inspector): stroke and fill a vector's path, not its box The Design panel's Stroke and Fill always wrote border and background, so a drawn path got a border around its svg instead of a stroke. A vector layer (an svg or g of shapes, or a shape) now reports its SVG paint, and fill, stroke and stroke-width go on its shapes as inline styles, which outrank the attributes a drawn or imported path carries. Scrubs restore and save the shapes with the gesture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): keep a paint scrub over remote updates, fold fill-opacity into the fill Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(inspector): a fill token on a vector resets its fill-opacity Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 6c0c97e30dffd353547c2ee0f7ddc34725f578af)
…es (#555) * fix(ios): honour <base href> and prefers-reduced-motion in Blitz frames Imported web pages rendered incomplete on iOS. Blitz resolved their relative image paths against the Doop server instead of the page's own <base href>, and content that waits at opacity 0 for an entry animation stayed hidden, since frames are painted at time 0 and Stylo never starts the zero-length animation the capture froze them at. Doc::new now holds the fetches of its parse, reads the first <base href> (resolved against the server origin, http(s) only) and parses again against it when it differs. Every document matches prefers-reduced-motion: reduce, through the new opt-in Viewport::reduced_motion in the Blitz fork and the media feature in the Stylo fork, so pages show their own reduced-motion fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(ios): pin blitz and stylo to their merged commits kgoedecke/stylo#1 landed as f247bcfd and kgoedecke/blitz#1 as 3cbca256 (squash merges); the PR-branch commits pinned before would become unreachable once those branches go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit edf77d129c79f9f8b529e67f89e76d7f8b34f685)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 3fea0c8c797ba9cac4f4cd65583a49390a21f769)
) * feat(android): port the native Doop app with shared Blitz rendering * fix(android): skip retired SDK tools during CI setup * fix(android): address model selection and collaborative edit review * fix(android): keep unrelated undo history after a conflict (cherry picked from commit d67feee80009c121ee255f78c02415baef752d49)
…ks don't flicker (#559) * fix(canvas): let a root vector's stroke spill past its box, as in Figma A standalone shape is its own iframe, sized exactly to the frame, so a stroke wider than the path's padding was cut off at the box. The runtime now asks for a margin that holds its widest stroke (doop:bleed-want); FrameView grows the iframe by it on every side, stops clipping the surface, and the runtime insets its body once told (doop:bleed). The runtime keeps speaking in the frame's design px, translating only at its viewport APIs, and the three editor sites that measure the iframe element take the margin off. Drawn path svgs paint their own overflow. W/H stay the path's geometry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): pick and drag a sibling inside an entered standalone group In a standalone shape, every hit collapsed to the shape's root, so with a layer inside it picked, clicking a sibling kept the old pick through the click's 250ms probe and then landed on the whole group: picked, dropped, picked. The press also dragged the whole shell. Once a layer inside the standalone is picked, hits resolve at that level (as groupLevel does in a frame) and the press goes through the layer move, picking the sibling at once; a press on the root itself still drags the shell. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): the bleed margin's wrapper takes no presses either Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): hold a miter join out to its own miter limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit d14f97012f710aa7426752a8a3c4d873da792176)
* feat(home): let the drafts menu take any count Keep 1-4 as one-click picks and add a Custom row with a -/+ stepper and a typed field, with no upper limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(home): step from the typed count, refuse non-digit edits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit b98add3757b3d83f3c8ca94b00c6341f3d368baf)
* fix(canvas): an open comment thread paints above every frame A frame's chrome (pins, threads) only left the frame's own stacking context while the frame was selected, so a thread opened from a pin on an unselected frame was covered by any frame in front of it. A frame with a thread open now lifts its chrome the way a selected one does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(canvas): lift a turned frame whole while its thread is open A turned frame's transform is a stacking context of its own, so its chrome cannot rise past it: the frame keeps its place in the stack, and rises whole while a comment thread is open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 10254b5a24f649b1416e7d08896f17340cf544c3)
…he model picker (#574) - Live Activity taps open their canvas even with another one open (.id per destination); a canvas not yet listed, or a link into an empty library, reloads before opening. - Home cards: a tall preview's overflow no longer takes taps meant for the cards above; the card's tap and preview shape is the card. - Model picker reads /api/agent-runners like the web composer and sends the pick as the card's runner; a saved pick waits for the runner list instead of silently running on the default. - Drop the canvas count from the home screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 4aa0685aad439f2d1215dbf7e8f1ecc3c3292a64)
…perks (#571) * feat(billing): make upgrading to Pro easy to find, and give Pro real perks Upgrade to Pro is now one modal reachable from the rail, the account menu, Settings → Plan, the canvas Help menu and ⌘K, and any `?upgrade` link. It creates the workspace at checkout (named after payment), sells seats as a minimum, and lists the plans as short cards with a full comparison folded underneath. Team is renamed Pro in the UI; the plan id stays `team`. Pro lifts Free's limits: uploads to 100 MB instead of 5, and font libraries past two families. Pro also gets priority support. Billing off, nothing is limited. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(billing): address review: seat changes wait for Stripe, never reuse a canceled workspace - PUT /billing/seats answers once Stripe has the quantity, and puts the old choice back (502) when Stripe refuses. - The upgrade modal only reuses workspaces that never had a plan; a canceled one is reactivated from its own billing page. - The billing pane edits the seat minimum itself (down to 1), so a minimum can be released as people leave. - The canvas Upgrade action is enabled and shown only where billing is on and the account is Free (offersUpgrade, shared with the rail and account menu). - Settings → Plan with billing off shows the self-hosted allowance, not Free. - A font upload stores its file only after the in-queue checks pass, so a refused family leaves no asset behind. - The naming prompt is checked on every load that shows the workspace paid, not only in the checkout return's sync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(billing): run a seat change and its rollback on the workspace's seat queue A failed change restored its old value outside the queue, so it could undo a later change that was waiting for Stripe. The choice, the Stripe update and the rollback now run as one step of the per-workspace seat chain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: give the account menu's me mock offersUpgrade Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit fc7f2e56125aa474171bf322f084d032ebf7766d)
…omponents (#573) * feat(agents): set up a component system before screens, with create_components Agents built screens without components: the guide only asked for one after a third copy, and the reuse notes spoke at the end of a write. - The guide opens with a must-do list: tokens, then a component system set up the way a designer sets up a Figma file, then screens composed from it; themes are tokens. - The brief creates the kit; COMPONENTS asks for components by judgment, from the first copy. - create_frame, append_frame_html and set_frame_html (and the resident's tools) ask for the check in their descriptions. - create_components makes up to 12 components in one call, in order, each its own unit. - COMPONENT SYSTEM notes: an empty create_frame hears to set up or use the system; a screen written without components hears what it skipped, once per stream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): refuse a create_components entry that nests a missing component A <doop-use> naming nothing renders as nothing, so a Card nesting a Button the same call refused was saved without its button for good. Each entry now runs in its own savepoint and is refused when its main reports an unknown component; the others go on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit deb965e49246c34a5b4dfc8970f43fbdc6309b26)
…d picker (#575) * feat(components): import from another canvas through a canvas list and picker "Import from another canvas" used to dump every component of every canvas into the panel as centred links, imported on one click, with no previews and no way back. It now swaps the panel for a list of the person's canvases, one per row with their preview, and a canvas opens a modal to pick components on previews, the ones already here greyed. Component previews sit in a fixed-height well so the panel no longer jumps while they load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): keep the import picker open mid-import; count only what Import sends Closing the picker while an import ran let the run's onDone close a picker opened afterwards. A component that arrived in an earlier, partly failed run stayed ticked and counted, so Import could be enabled with nothing to send. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 40baa44dbcd3d949c44666ebeb5f4b439c226b86)
… migrations The ported snapshots drop the hosted tables and columns (onboarding answers, canvas-actor flags, the integrations refresh token), and the seats migration is 0059 here, since the canvas-actor flag migration is not ported. The plan cards name the imports and exports this build has, the built-in agent names no longer reserve the hosted import worker, and the docs lose the paragraphs about hosted features. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every browser test has its own page here, so the replay test cannot lean on the page an earlier test left behind. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[Critical impact] The PR reaches shared server writes, workspace billing, and canvas workflows. Fix the library failures and Android canvas-loading issue before merging. Findings
SummaryThis sync adds workspace component libraries, editable agent teams, grouped writes, broader export support, and a native Android app.
The review found three library failures and two Android compatibility issues. Reviews (1) · Last reviewed commit: "fix(test): give the prototype replay tes..." · Reviewed by Greptile |
| slots: def.slots, | ||
| ...(def.code ? { code: def.code } : {}), | ||
| ...(nestedSources(canvasId, def) ? { nested: nestedSources(canvasId, def) } : {}), | ||
| rev: previous ? Math.max(def.rev, previous.rev + 1) : def.rev, |
There was a problem hiding this comment.
Republishing can hide newer changes. Withdrawing a component deletes the previous publication, so this line resets its version to
def.rev. For example, two description-only publications can put a consumer at version 3 while the original stays at version 1. Withdraw it, change its CSS to version 2, and publish again: the consumer still has version 3 and sync_component skips the changed design. Keep the last publication version across withdrawals so republishing always moves forward.
| const before = publishedOn(canvasId) | ||
| const gone = ids ? before.filter((entry) => ids.includes(entry.id)) : before | ||
| for (const entry of gone) afterCommit(() => persist.deleteLibraryComponent(canvasId, entry.id)) | ||
| const kept = before.filter((entry) => !gone.includes(entry)) | ||
| setPublished(canvasId, kept) |
There was a problem hiding this comment.
Withdrawn dependencies leave holes. Publish
Card containing Button, withdraw only Button, then import Card into a fresh canvas. This removes the saved Button, but still offers Card. snapshotClosure silently skips the missing dependency, and the renderer drops that part of the card. Keep withdrawn components available to published components that need them, or refuse the withdrawal while those components remain published.
| export function saveLibraryComponent(snapshot: LibraryComponent) { | ||
| const row = { ...snapshot, code: snapshot.code ?? null, nested: snapshot.nested ?? null } | ||
| const { canvasId: _canvasId, id: _id, ...set } = row | ||
| swallow( | ||
| db | ||
| .insert(t.libraryComponents) | ||
| .values(row) | ||
| .onConflictDoUpdate({ target: [t.libraryComponents.canvasId, t.libraryComponents.id], set }), |
There was a problem hiding this comment.
Library saves can land backward. These saves and
deleteLibraryComponent start independent database queries without waiting for earlier writes to the same row. On pooled Postgres connections, two quick publications can finish backward, or a pending publication can land after its withdrawal and restore the deleted row. Memory looks correct until a restart loads the wrong publication. Queue library saves and deletes by canvas and component, as this file now does for ordinary components.
| o.getDouble("width").toFloat(), o.getDouble("height").toFloat(), o.optString("html"), | ||
| o.string("pageId"), o.optBoolean("hidden"), o.optBoolean("locked"), o.optLong("updatedAt"), | ||
| if(o.isNull("z")) null else o.getDouble("z"), if(o.isNull("rotation")) null else o.getDouble("rotation")).also { | ||
| require(it.width.isFinite() && it.height.isFinite() && it.width in 1f..10000f && it.height in 1f..10000f && it.x.isFinite() && it.y.isFinite()) { "Invalid frame dimensions" } |
There was a problem hiding this comment.
Tall frames block Android canvases. The web editor allows frames taller than 10,000 pixels, but this check rejects the entire canvas when any frame exceeds that size.
Board.parse parses every frame, and the thrown error closes the live connection with the unreadable-update message. Reopening repeats the failure, even when the large frame is on another page. Keep drawing limits separate from reading canvas data so one unsupported preview cannot block the whole canvas.
| private fun upsert(frame:Frame) { | ||
| val b=board ?: return | ||
| val f=pendingMoves[frame.id]?.let { frame.copy(x=it.first,y=it.second) } ?: frame | ||
| board=b.copy(frames=if(b.frames.any { it.id==f.id }) b.frames.map { if(it.id==f.id) f else it } else b.frames+f) |
There was a problem hiding this comment.
Android ignores live stacking changes.
upsert replaces a frame in its old list position even when an update changes z. The canvas draws and picks frames in list order, so bringing an overlapping frame forward in the web editor leaves it behind on Android until reconnecting. Sort frames by their saved stacking order after creates and updates.
#518) * feat(agents): refuse base64 data URIs in frame writes, add upload_font Agent writes that add a base64 data: URI are refused with what to do per kind; a URI the frame already holds may be carried over. upload_font adds a font file to the canvas's library (MCP and resident), and the guide's new "Keep frames lean" section covers fonts, large SVGs, libraries, data and media. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): check the assembled document for base64, keep a stream's starting HTML Greptile review on #518: a URI split across stream chunks, rewrite chunks or an edit's edges is caught on the document as it would stand; a stream compares later chunks with the design it replaced; component tools compare with the stored component and the target frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agents): check a stream's own text, not the component-expanded frame Greptile review on #518: a stream using a component with a base64 image had the expansion read as an upload on the next chunk. Stream chunks are now checked as the tail of the agent's previous chunk plus this one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit fba9469bac34348e0e9b9d2e87df405ee0b199e6)
#517 made RunState.seenVerified required and #518 added a fixture without it; the two merged in parallel, so main fails typecheck and CI (and the deploy that follows CI is skipped). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 2e5f8f8249e4dc091c5b57a1bb1ccd1d8b4a420f)
No description provided.