25098 Commits

Author SHA1 Message Date
Andrey Antukh
45117285fa 📚 Clarify error report CLI pagination
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
86928c9adb 📚 Focus library guidance on builder and test boundaries
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
0d80e7951a 📚 Clarify focused exporter test runs
Document both runner registration sites and the environment needed when
reusing a compiled test bundle.

AI-assisted-by: gpt-6.1-terra
2026-11-23 23:40:36 +01:00
Andrey Antukh
a4832deef6 📚 Clarify exporter rendering and admission guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
4b61d6f4b1 📚 Separate WASM FFI and rendering guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
d939e196e5 📚 Separate MCP OAuth client identification guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
ae7268e44d 📚 Focus media processor guidance on resource boundaries
Replace the file inventory with the upload storage, timeout, and queue
rules that matter when changing the service.

AI-assisted-by: gpt-6.1-terra
2026-11-23 23:40:36 +01:00
Andrey Antukh
bdf2cc2faf 📚 Extract backend media guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
8f647ca780 📚 Separate backend HTTP and configuration guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
4483d4274c 📚 Consolidate backend metrics guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
0cffbb4816 📚 Extract database transaction and lock guidance
Keep transaction ownership, after-commit callbacks, and advisory lock
lifetimes in one memory shared by jobs and metrics.

AI-assisted-by: gpt-6.2-sol
2026-11-23 23:40:36 +01:00
Andrey Antukh
10e175d4de 📚 Consolidate worker and Integrant schema guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
ed7d22e5b8 📚 Extract RPC concurrency limits guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
570a5e67bc 📚 Separate backend file read and save guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
24315afa47 📚 Separate MCP connection and save guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
df1d4d3e2b 📚 Separate plugin runtime guidance and fix setup docs
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
e9cd2c08da 📚 Split composable component test guidance by suite
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
964a28573c 📚 Split translation guidance by locale
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
e36bdcead6 📚 Separate audit event and consumer guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
32d2710d25 📚 Clarify storage cleanup and file-data references
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
3733e5c4a2 📚 Clarify workspace isolation and deployment guidance
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
2026-11-23 23:40:36 +01:00
Andrey Antukh
b9e35937e0 📚 Separate common file migration guidance
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
2026-11-23 23:40:36 +01:00
Luis de Dios
0b4bb4b832
🐛 Keep fitted content clear of the rulers (#13069)
* 🐛 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
2026-11-23 23:32:13 +01:00
Alonso Torres
3bd549a146
🐛 Stop MCP plugin tasks from throwing after the plugin closes (#13224)
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
2026-11-23 17:39:03 +01:00
Pablo Alba
b58f7d2996 🐛 Build each file repair on the data left by the previous ones
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
2026-11-23 16:32:58 +01:00
Andrey Antukh
3a1f17834e 📚 Simplify issue and changelog memories
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
2026-11-23 15:26:13 +00:00
Pablo Alba
8d0ff7984b 🐛 Keep swapped children on switch and undo of a nested variant copy
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 #13179
Closes #13181

AI-assisted-by: claude-opus-5-5
2026-11-23 16:06:09 +01:00
Andrey Antukh
e23901a36f 📚 Organize frontend memories by task
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
2026-11-23 15:05:18 +00:00
Alonso Torres
70c37934af
✨ Expose the file features and active renderer to plugins (#13169)
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
2026-11-23 15:58:41 +01:00
Andrey Antukh
8f2405bb8d 📚 Trim backend memories and split out job guidance
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
2026-11-23 14:52:05 +00:00
Andrey Antukh
d40fe15a31 📚 Trim agent guidance while keeping required memory reads
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
2026-11-23 14:45:21 +00:00
penpot-renovate[bot]
6c482b0435
⬆️ update actions/create-github-app-token action to v3.4.0 (#13241)
- actions/create-github-app-token v3.4.0 (.github/workflows/auto-label.yml)

Signed-off-by: penpot-renovate[bot] <338182062+penpot-renovate[bot]@users.noreply.github.com>
2026-11-23 14:53:16 +01:00
penpot-renovate[bot]
1bd1594ff5
⬆️ Update DHI base images (#13240)
- dhi.io/debian-base trixie-debian13-dev@3a0f849 (docker/images/Dockerfile.backend)
- dhi.io/debian-base trixie-debian13-dev@3a0f849 (docker/images/Dockerfile.backend)
- dhi.io/debian-base trixie-debian13@5fea62d (docker/imagemagick/Dockerfile)
- dhi.io/debian-base trixie-debian13-dev@3a0f849 (docker/imagemagick/Dockerfile)
- dhi.io/debian-base trixie-debian13-dev@3a0f849 (docker/devenv/Dockerfile)
- dhi.io/nginx 1.31.9-alpine3.24@8f75992 (docker/images/Dockerfile.storybook)
- dhi.io/nginx 1.31.9-debian13-dev@15772a5 (docker/images/Dockerfile.frontend)
- dhi.io/node 24.22.3-debian13-dev@96e25a7 (docker/images/Dockerfile.media-processor)
- dhi.io/node 24.22.3-debian13@68cfc68 (docker/images/Dockerfile.mcp)
- dhi.io/node 24.22.3-debian13-dev@96e25a7 (docker/images/Dockerfile.mcp)
- dhi.io/node 24.22.3-debian13-dev@96e25a7 (docker/images/Dockerfile.exporter)

Signed-off-by: penpot-renovate[bot] <338182062+penpot-renovate[bot]@users.noreply.github.com>
2026-11-23 14:52:56 +01:00
Luis de Dios
340f5e36cf
🐛 Fix batch edit of colors in the selected colors menu (#13087)
* 🐛 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
2026-11-23 13:01:35 +01:00
Yamila Moreno
8fe1b9c659 🔧 Improve PRs validations
Signed-off-by: Yamila Moreno <yamila.moreno@kaleidos.net>
2026-11-23 12:57:18 +01:00
Yamila Moreno
1edaf6baef 🔧 Improve PRs validations
Signed-off-by: Yamila Moreno <yamila.moreno@kaleidos.net>
2026-11-23 12:56:49 +01:00
andrés gonzález
3346c67a3b
✨ Add Copy link to the file and project menus in the dashboard (#13200)
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
2026-11-23 12:21:02 +01:00
Alejandro Alonso
5c768aeca0
🐛 Skip WASM font checks while the renderer is not live (#13235)
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
2026-11-23 12:01:10 +01:00
Florian Schrödl
888e2d9368
🔧 Test applying dimension and spacing tokens (#13215)
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>
2026-11-23 10:44:20 +01:00
Andrey Antukh
05deacbb9b Merge branch 'staging' into develop 2026-11-23 10:41:20 +01:00
Andrey Antukh
0498c68b5b Merge branch 'staging-2.19.x' into staging 2026-11-23 10:41:09 +01:00
Andrey Antukh
234a1e547b 📎 Update several skills 2026-11-23 10:40:10 +01:00
Andrey Antukh
35a7189682 Merge remote-tracking branch 'origin/staging' into develop 2026-11-23 10:08:48 +01:00
Andrey Antukh
174596db1d Merge remote-tracking branch 'origin/main' into staging 2026-11-23 10:08:15 +01:00
Florian Schrödl
f216ae921d
🔧 Add tests for token helpers (#13210)
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>
2026-11-23 09:57:17 +01:00
Andrey Antukh
1177a817ed 📚 Update the changelog for 2.19.4
Document the fix for importing large .penpot files in Chrome.

AI-assisted-by: gpt-6.2-sol
2.19.4
2026-11-23 08:50:58 +00:00
Andrey Antukh
eb0106e6fb ✨ Simplify changelog review and report label edits
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
2026-11-23 08:48:18 +00:00
Andrey Antukh
5e1e0bef34 ✨ Collect changelog inputs in one command
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
2026-11-23 08:40:20 +00:00
Andrey Antukh
b822b38279 ⬆️ Update docker images 2026-11-23 09:39:45 +01:00
penpot-renovate[bot]
379835092c
⬆️ Update DHI base images (#13195)
- dhi.io/debian-base trixie-debian13-dev@1aa0a23 (docker/images/Dockerfile.backend)
- dhi.io/debian-base trixie-debian13-dev@1aa0a23 (docker/images/Dockerfile.backend)
- dhi.io/debian-base trixie-debian13@2cd2220 (docker/imagemagick/Dockerfile)
- dhi.io/debian-base trixie-debian13-dev@1aa0a23 (docker/imagemagick/Dockerfile)
- dhi.io/debian-base trixie-debian13-dev@1aa0a23 (docker/devenv/Dockerfile)
- dhi.io/nginx 1.31.9-alpine3.24@8e4ef1b (docker/images/Dockerfile.storybook)
- dhi.io/nginx 1.31.9-debian13-dev@5ea1ac7 (docker/images/Dockerfile.frontend)
- dhi.io/node 24.22.3-debian13-dev@d1dc20b (docker/images/Dockerfile.media-processor)
- dhi.io/node 24.22.3-debian13@5a30325 (docker/images/Dockerfile.mcp)
- dhi.io/node 24.22.3-debian13-dev@d1dc20b (docker/images/Dockerfile.mcp)
- dhi.io/node 24.22.3-debian13-dev@d1dc20b (docker/images/Dockerfile.exporter)

Signed-off-by: penpot-renovate[bot] <338182062+penpot-renovate[bot]@users.noreply.github.com>
2026-11-23 09:38:25 +01:00