Skip to content

v2.3.3

Choose a tag to compare

@tpitre tpitre released this 29 Nov 14:38
· 9 commits to main since this release

Fixes for what live testing of 2.3.1 found, across FigJam diagrams, web page import, Code Connect, asset export and SVG import, plus a targeting bug: a pinned file's commands could run in another file. Every fix has a regression test and was verified live in Figma Desktop. No plugin re-import needed.

Fixed

  • A pinned file that isn't connected no longer sends commands to another file. When the file pinned with figma_navigate({ lock: true }) disconnected (its plugin closed, or Figma restarted), the pin was dropped after the grace period and commands went to whichever file was still connected, so edits meant for one file could land in another. The pin is now held: commands without a fileKey are refused with a message naming the file, user activity elsewhere doesn't take over, and the pin comes back when that file reconnects. figma_list_open_files reports it as pinnedFileNotConnected. Switching files or unlocking clears it.
  • figma_navigate to a file that isn't connected is an error. It returned a plain status, easy to miss, and tools kept targeting whichever file was active. It now sets isError with code FILE_NOT_CONNECTED and says where tools point. With lock: true, commands are held for that file until it connects instead of going to the current one.
  • FigJam diagrams no longer stall with the diagram left on the board. A route-check export of freshly built connectors could stay pending forever, so the build never reached its deadline or rollback: the bridge timed out and the diagram stayed on the board, unreported. Every await that runs while the diagram's nodes exist is now bounded by the time left. A stalled route export skips the remaining checks (the diagram is kept and reported), and a stalled font load rolls the build back as TIMEOUT. Font loads in the measure pass are bounded too.
  • Diagrams generated in parallel no longer land on top of each other. Each call surveys the board for free space before drawing, so parallel calls all picked the same spot. figjam_generate_diagram and figjam_replace_diagram now draw one at a time per server; later calls wait (dry runs don't).
  • figma_import_html no longer hangs on a font Figma won't load. Pages using system-ui resolve to SF Pro on macOS, which Figma lists but never finished loading, so the build timed out. Font loads now run in parallel with an 8 s limit each; a font that times out falls back like any failed font and isn't waited for again in later chunks of the same import.
  • A font that fails to load keeps its weight. Every failed font fell back to the fallback font's Regular, so with SF Pro failing, a system-ui page lost all its bold text. The import now plans a fallback per font in the same weight and italic (SF Pro Bold → Inter Bold, Semibold → Inter Semi Bold), and the substitution report names the font actually used.
  • FigJam filled arrowheads point the right way. Sequence diagram messages and style.arrowhead: "filled" used FigJam's TRIANGLE_FILLED cap, which points back along the line, so every filled arrow looked reversed. They now use ARROW_EQUILATERAL, FigJam's forward filled arrowhead.
  • Mobile captures of pages without a viewport meta tag. Phones lay such pages out 980 px wide, so a 480 px frame came out 1724 px tall, mostly blank, with a false HORIZONTAL_OVERFLOW warning. The page is now laid out at the requested width, with a NO_VIEWPORT_META warning saying a phone would show the desktop layout zoomed out.
  • A clear error when Chrome's policy blocks the capture browser. A managed Chrome that disallows remote debugging closes the DevTools connection a few seconds after launch; the import said only "The browser closed unexpectedly." It now says why and how to point FIGMA_HTML_IMPORT_BROWSER at an unmanaged build (Chromium or Chrome for Testing).
  • Code Connect: titleText maps to title. A text property named after a prop plus "Text", "Label" or "String" now matches that prop exactly. Before, the property went unmapped and a nested instance's text could take the prop through synonyms.
  • Code Connect: unconnected instance props are valid JSX. figma_get_code_connect_map rendered an unconnected icon swap as icon={{/* Unmapped: … */}}, an empty object if copied. It's now icon={/* Unmapped: … */ undefined}.
  • figma_export_assets re-runs report success. A re-run where every file already exists returned success: false while not being an error; success now agrees.
  • figma_import_svg dry run: unchanged sets say "unchanged". An existing component set whose variants were all unchanged was listed as "update" in componentSets.
  • Confirmations that come back declined no longer claim the user declined. Some clients answer confirmation questions automatically without showing them (seen with a client in an auto-approve mode). The result now says the confirmation was declined and tells the agent to ask whether the user saw a question, and how to proceed if they didn't.