Replace the duplicated option catalog with the pagination and input
behaviors that are easy to miss, and remove unsafe permission SQL.
AI-assisted-by: gpt-6.1-terra
Keep the builder and archive invariants and warn that tests consume a
prebuilt bundle, so a stale build can hide a regression.
AI-assisted-by: gpt-6.1-terra
Separate browser rendering from the headless WASM worker path and document
how scheduling limits each process and reuses workers.
AI-assisted-by: gpt-6.1-terra
Keep buffer ownership and tile rendering in focused notes. Point build
instructions to the README and retain the shared target safety rules.
AI-assisted-by: gpt-6.1-terra
Keep approval and code exchange rules in the OAuth entry point. Move
client registration and metadata validation into a focused memory.
AI-assisted-by: gpt-6.1-terra
Distinguish local processing from the remote service and keep upload
checks together. Move cleanup event fields into the audit memory and
preserve the old backend note as an index.
AI-assisted-by: gpt-6.2-sol
Give RPC middleware and PostgreSQL driver settings focused entry points.
Correct the wrapper order and describe the current upload safeguards.
AI-assisted-by: gpt-6.2-sol
Keep collector wiring, HTTP sampling, and log counter behavior in one
memory. Link it from the backend index and existing sections.
AI-assisted-by: gpt-6.2-sol
Keep dispatch, recovery, and cron rules with jobs. Move startup schema
diagnostics to a focused memory linked from the backend testing guide.
AI-assisted-by: gpt-6.2-sol
Document limiter declarations, acquisition order, and queue diagnosis in
one focused memory. Keep the original section as a pointer.
AI-assisted-by: gpt-6.2-sol
Keep migration and version lifetimes separate from partial save behavior.
Route readers to the focused notes from the existing persistence entries.
AI-assisted-by: gpt-6.2-sol
Keep development conventions in the MCP entry point. Move connection
ownership and save guarantees into focused notes, and point to the
current API data generator.
AI-assisted-by: gpt-6.2-sol
Keep the plugins entry point focused on package boundaries. Document SES
startup and plugin lifetime separately, and align sample commands and
ports with the workspace configuration.
AI-assisted-by: gpt-6.2-sol
Keep the shared composition rules in one entry point and document what
each suite can verify without duplicating its test catalog or README.
AI-assisted-by: gpt-6.2-sol
Keep catalog and validation rules in the main memory. Move Catalan and
Russian conventions into locale notes and drop historical coverage counts.
AI-assisted-by: gpt-6.2-sol
Keep actor attribution and privacy in the audit entry point. Move cursor
ordering, replay, and retention into a focused backend memory to avoid
loading delivery details for changes to event producers.
AI-assisted-by: gpt-6.2-sol
Distinguish touched objects from unfinished uploads and explain the pool
boundary. Keep file-data reference and offload rules in a focused memory.
AI-assisted-by: gpt-6.2-sol
Document shared Valkey and tenant-scoped jobs without duplicating runtime
configuration. Keep durable production constraints and remove release-
specific instructions from the infrastructure memories.
AI-assisted-by: gpt-6.2-sol
Keep cross-file change and validation rules in focused memories. Route
migration work to its own note and point to code for implementation
details, including the current SVG repair.
AI-assisted-by: gpt-6.2-sol
* 🐛 Keep fitted content clear of the rulers
Fit actions pass padding in document units, so the margin on screen
shrinks with the zoom. On large designs the margin became smaller than
the fixed 22px ruler overlay and part of the content was hidden under
it.
Add a :min-screen-padding option to adjust-to-viewport. The existing
design-space padding is kept when it already leaves enough margin on
screen; otherwise the viewport is fitted again with a fixed screen
margin. Use it in fit-to-all, fit-to-selected and fit-to-shapes so all
fit paths behave the same at any zoom level.
Closes#12609
AI-assisted-by: deepseek-v4.1-flash
* 🐛 Keep page-open fits clear of rulers
Pass the minimum screen padding when initializing the viewport, and cover all
four fit margins for wide and tall content with the call-site minimum zoom.
AI-assisted-by: gpt-6-luna
Closing a plugin removes its globals (console, penpot, ...) while a task
of the MCP plugin may still be running. Under SES a removed global reads
as undefined, so the task failed at its next use of console or penpot,
and the catch handlers failed again on console.error. The rejection
reached the workspace as "Cannot read properties of undefined (reading
'error')", for tasks that succeeded as well as for failed ones.
A task that ends after the plugin closed now returns quietly. It cannot
answer: the UI iframe and its WebSocket are gone, and the MCP server
already fails the task when the plugin connection closes. The outer
catch logs through the console reference taken at load, so it cannot
throw.
Tests: PluginTaskRequest.test.ts runs TaskHandler.ts and plugin.ts in
one sandbox, removes the globals while a task waits, and checks that no
rejection escapes and no error is logged when the task ends in success or
failure. A task that fails while the plugin is open still sends its error
response.
Closes#12503
AI-assisted-by: claude-opus-5-5
repair-file built every repair of a pass from the file data taken before
the pass. Repairs write whole values (a :mod-component with the whole
component, a :set with the whole :shapes vector), so two repairs on the
same component or shape attribute undid each other: the last write won,
the lost fix came back as an error, and each clash cost another pass.
Each repair's changes are now applied before the next repair is built.
A private repair-file* returns the data and the changes; repair-file
returns the changes, which give the same result when applied in order,
and repair-file-until-valid reuses the data instead of applying the
batch again (on the backend a second apply wrote an orphan page fragment).
Repairs now see what earlier repairs of the pass did, so
:ref-shape-not-found does nothing when its shape was removed or its ref
shape resolves again; it would otherwise detach a copy that an earlier
:invalid-main-instance-id repair had already relinked.
Tests stub repair-error, through a multi-arity fn so the JS build can
call it, and cover two clashing errors on one component in either order,
three missing children fixed in one pass, and repairs on removed shapes.
Closes#13239
AI-assisted-by: claude-opus-5-5
Keep policy, recovery, and release ordering in the workflow memories.
Use the command help for option details and distinguish preview, local
writes, and GitHub mutations.
AI-assisted-by: gpt-6.2-sol
Switching a variant copy that sits inside another copy dropped a component
swapped inside it, and the new variant showed its default child. Undoing
a variant switch also lost a swapped child: the old variant came back with
no child in that place.
When the swap was made in the copy, the original shape of the swapped
child was looked up from the nearest main, which is the copy in the outer
main, so it had no match in the variant main. Look it up from the match
of its parent in the variant main instead.
When the swap was made in the outer main, the child had no slot of its
own, so it was deleted with the old copy and never moved. The new
ctf/get-outer-swaps finds these heads by walking their ref chain up to
the variant main. The delete step and keep-touched both use it, so they
pick the same heads: kept off the delete list, moved into the new copy
and pointed to the swapped-in component, with the slot of the child they
replace. The walk that advances the refs of a subtree moves to
ctf/get-advanced-refs, which the clipboard now shares.
When the switch kept a swapped child, the undo of its move into the new
copy put it back under the old copy id. That id is also the id of the new
copy, so undoing the creation of the new copy removed the child.
change-parent now takes the undo parent from its objects, as it already
did for the previous sibling.
When the new variant had no match for a swapped child, the child was
removed with the old copy, with no undo entry. Move it to the root first
and delete it from there, after the rest of the switch, so undo brings it
back after the old copy.
Closes#13179Closes#13181
AI-assisted-by: claude-opus-5-5
Route readers to focused notes for workspace changes, app shell behavior,
testing, and diagnostics. Keep cross-file constraints and reference the
code for implementation details.
Replace conflicting debug recipes and retain old memory paths where local
plans still use them.
AI-assisted-by: gpt-6.2-sol
Plugins and the MCP could not tell whether the new render engine (WebGL)
or the SVG engine draws the open file.
Add file.features with the sorted features of the open file: its stored
features plus the features active in the session. render-wasm/v1 comes
from the session alone, so it is present only when WebGL draws the file,
whether the renderer comes from the wasm query param, the profile setting
or the workspace menu. The backend never stores that feature on the file,
so the stored features alone cannot answer it. For any other file, such
as a library or a File kept after opening another file, features is null.
Add penpotUtils.isWasmRenderer() to the MCP plugin and list it in the
MCP instructions. It throws a clear error when the Penpot version does
not expose the file features. Regenerate the MCP API docs, which also
picks up the missing penpot.location entry, and the plugin API test
suite surface.
Add plugin API test suite tests for the open file and for a file that is
not open. Note in the plugins memory that every new or changed Plugin API
member gets a suite test whenever the suite can reach the case.
Closes#13167
AI-assisted-by: claude-opus-5-5
Route backend readers to focused job and binfile notes. Keep cross-file
invariants and point to code for implementation details.
Drop stale graph details and an obsolete audit alias. Link the URI note
from the module cores so URL changes can find it.
AI-assisted-by: gpt-6.2-sol
Keep the memory reading order and hard rules visible before agents act.
Move detailed coverage and CI guidance out of the common entry points,
and keep the backend assertion flag explicit for direct test runs.
AI-assisted-by: gpt-6.2-sol
* 🐛 Fix batch edit of colors in the selected colors menu
Restore the colorpicker flag that commit 20d2d22 lost when it replaced
the flag with the row index. Every change was treated as a picker change,
so the colors already applied were kept and reused by the next edit. That
made an edit on one row change the first color instead.
Direct edits of the color and opacity inputs now target the exact color
of the row. Picker changes keep the previous-color fallback needed while
the selected shapes are still updating.
Add unit tests for the new operation resolver.
AI-assisted-by: deepseek-v4.1-flash
* ♻️ Remove unused picker history from token detachment
Resolve token detachment operations directly from the current groups.
Picker color history is not needed for token detachment.
AI-assisted-by: gpt-6-luna
* ♻️ Clarify color row change arguments
Bind the row color once and name the change arguments.
Treat the picker flag as optional for direct edits.
AI-assisted-by: gpt-6-luna
* 🐛 Fix linting issue
Both menus get a Copy link option after Move to. The file menu copies
the workspace URL of the file and the project menu the URL of the
project page, then show a confirmation toast. A copy error shows a
toast that closes on its own; errors that are not clipboard ones are
also logged.
Also tidy both menus:
- Add a separator before Import Penpot files in the project menu.
- Rename "Open file in a new tab" to "Open in new tab".
- Add a separator before the download option in the multiple files
menu, as in the single file menu.
- Show Pin or Unpin depending on the project state.
Viewers already had no project menu in the project list and on the
project page. Disable it, and rename on double-click, for pinned
projects in the sidebar too, so viewers can copy file links but not
project links. The user guide documents both options.
New translation keys are in en and es only.
Closes#13182
AI-assisted-by: claude-opus-5-5
Page switches tear down the WebGL canvas before openPage resolves, so
font-stored? must not call _is_font_uploaded against a null resource
pool. Guard with wasm/live? like the other font FFI helpers, and cover
the skip path with a unit test.
Closes#13205
Covers how dimension, spacing and sizing tokens change position,
corners, stroke sides, paddings, gaps, margins and size limits, the
fallback to the closest font weight with its warning, and detaching
tokens from attributes without knowing the token.
The sizing test in token_actions_test now applies the token through
the function the app uses for sizing tokens, not the dimensions one.
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
Covers the error and warning messages, how token values and color
bullets show, which token attributes each shape type takes, group
and set renaming helpers, and the duplicated set id migration.
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
Keep the release procedure in one place and separate review from GitHub
writes. Clarify how to prepare and verify release highlights.
Report each successful label edit so earlier changes remain visible if a
later edit fails.
AI-assisted-by: gpt-6.2-sol
Gather milestone issues, pull requests, advisories, and changelog checks
into one JSON snapshot. Reuse it across the release workflow to avoid
repeating GitHub queries while keeping write actions separate.
AI-assisted-by: gpt-6.2-sol