Skip to content

FormDeck 0.49.0: copy a slide as a picture, remove backgrounds on your computer, one-click slide backgrounds with opacity, Follow agent, and a sharper Slide Show - #31

Merged
nodemode-ai merged 188 commits into
mainfrom
feat/deck-tools-0.49.0
Dec 2, 2026

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormDeck 0.49.0: copy a slide as a picture, remove backgrounds on your computer, one-click slide backgrounds with opacity, Follow agent, and a sharper Slide Show

Summary

The owner asked for eight changes on 2 December 2026, then added five more and a shell fix while the work ran. All fourteen are in this branch, built by a team of roles on one working copy.

The eight first changes:

  1. Copy Slide as Picture. A command and hotkey that copy the current slide, or the selected slides, as a picture to paste into another slide.
  2. Remove Background. A local U2-Net model, as FormVis and FormLit have, with a one-time 176 MB download.
  3. Slide design and background. A background in one or two clicks, with an opacity slider in every colour picker.
  4. Agent dock. It opens on Claude Code by default, not Chat.
  5. Save and Save As. They update the deck's name in its tab, the window title, recent decks and Home.
  6. Back to decks button on Home.
  7. Follow agent. A toggle left of Notes, off by default. When on, the editor goes to the slide the agent is working on.
  8. Right panel sections move and reorder, as in FormVis.

Added later by the owner:

  1. web-paste. A picture copied or dragged from a website pastes as a picture.
  2. auto-advance. An Auto-advance toggle for the Slide Show, off by default.
  3. present-sharp. Animated pictures and groups in Slide Show no longer blur on WebKit.
  4. poster-frame. A video's poster frame shows in the editor, thumbnails and the show.
  5. panel-resize. The right panel's groups resize in height.
  6. shell-fix. The top bar ends with the agent button then the gear, Preferences gets Agents, and Esc closes right-click menus.

Engine-review and three verify roles checked the work without editing it. CHANGELOG.md is new in this branch (463b319), and the version bump is the release commit, last (8818756).

Changes by area

Slides and pictures

  • Copy Slide as Picture (Edit menu, the slide's right-click menu, command palette, Alt+Ctrl+C, Option-Command-C on macOS). The slide is rendered at twice its size as PNG. The first goes to the system clipboard and all of them to FormDeck's own clipboard. Paste puts them on the slide as pictures, centred, or cascaded when there are several, in one undo step. Paste also takes a picture copied in another app.
  • Pictures from websites. Paste takes an image file, an <img> in copied HTML (the largest srcset candidate), a picture address in a link or in plain text, and a data URL. A browser drop works the same. Web addresses go through the new POST /api/media/from-url: http and https only, five redirects at most, every hop checked, loopback, link-local, multicast and reserved hosts refused, private LAN hosts allowed for intranet pages, image content type and bytes required, 64 MB limit.
  • Remove Background (Picture Format tab, the picture's right-click menu, Format, Picture, command palette). It runs U2-Net on onnxruntime on the CPU, so pictures never leave the computer. A pill on the picture shows progress and Cancel (or Esc) stops it. The result is a new PNG with transparency, one undo step, and Restore Background brings the original back (bgRemoved: { orig, cut } on the picture). Preferences, Editing, Pictures can install or remove the model.
  • Slide Show and Presenter View lay the slide out at screen size (CSS zoom on show views instead of a scale transform), so animated pictures and groups are drawn at device size and stay sharp on WebKit. Each text box is shifted by its measured first-line offset so line tops match the design-size layout, and a guard compares every line's left, width and top (0.25 pt) and falls back to the old rendering for any slide that would still differ.
  • Poster frames. A video's poster shows in the editor, in thumbnails, in the show and in Presenter View until the video plays, and again after it ends when Rewind after Playing is on. PNG, PDF, copy-as-picture and .pptx export use it; a video with no poster exports its first frame instead of a play icon. .pptx import no longer reads the stock speaker picture as a poster.

Slide design and colour

  • Background in the Design tab: a split button that applies the last colour in one click, with a menu of theme and recent colours, opacity, gradient, picture, Format Background, Apply to all slides and Reset to layout. With nothing selected, the right panel shows background swatches and an opacity field. Background is also on the Slide menu and the slide's right-click menu. Counted before and after: 5 clicks became 1 (right panel at 1440 by 900), 2 (Design tab open) or 3 (from another tab).
  • Colour schemes and variants in the Design tab: nine schemes and four variants. The Slide page's layouts open from one row in a popover so the page fits without scrolling.
  • Opacity in the colour picker. A slider with a percent field, a recent row that keeps each colour's opacity, a hex field, and swatches that show a translucent colour over a checkerboard. It is stored as alpha in the deck format (#RRGGBBAA or { scheme, alpha }), and drawn in the editor, the show, PNG, PDF and .pptx. Slides are drawn over white so a translucent background reads the same everywhere.

Slide Show

  • Auto-advance: a toggle and a Seconds field (1 to 600, default 5) in the Slide Show tab, the A key in the show, and a button in the show's controls bar and Presenter View. Off by default. A slide's own timing wins; a playing video, the pen, the laser, help and the slide picker hold it; manual moves reset it. An auto-advance command is available to agents.

Window and shell

  • Right panel. Groups drag by their grip, tabs join a group or leave to make a new one, Alt+Up and Alt+Down move the focused group, and View, Reset Panel Layout puts everything back. The lines between groups drag to share height (arrow keys on the focused line, double-click for the default split). Order and sizes are remembered.
  • Follow agent (status bar, left of Notes, View menu, Alt+Shift+F). Normal view goes to the agent's slide, slide sorter view highlights it and scrolls to it. It waits while you type or a dialog is open, and shows a Go there notice when the agent works in another open deck.
  • Agent dock opens on Claude Code when it is installed and on a shell with the install line when it is not. A remembered tab wins, and a profile the old first-run guide left on Chat opens on Claude Code once. The shared dock/ module is untouched.
  • Top bar ends with the agent button then the gear, with FormPortal's icons. View, Agent Dock names the dock, and Preferences has an Agents section with Show the agent dock. Esc closes every right-click menu and returns focus.
  • Home. A Back to decks button (Alt+Left, or Esc when a deck is open) with an aria-disabled state that says why. While Home shows, the editor behind it is inert, and leaving Home puts the deck's name back in the window title.
  • Save and Save As rename the deck to the file name in the tab, the title, recent decks and Home in one undo step. Save on a new, unnamed deck asks for a name. Home cards show the file path.

Engine and agents

  • Remove Background engine. bg_model.py downloads u2net.onnx (175,997,641 bytes, SHA-256 8d10d2f3...b491, Apache-2.0, published in rembg's release) to the data folder on first use, with progress, cancel, resume and a hard refusal on a checksum mismatch. bg_remove.py allows PNG, JPEG, WebP, GIF, BMP and TIFF, 64 megapixels and 256 MB, one cut at a time. Routes under /api/background. New MCP tool remove_background (34 tools), which asks before it downloads the model.
  • Agent focus. Every agent edit that lands on a slide sends agent.focus on the live socket to subscribed windows only, at most one per 250 ms per deck, with a replay on subscribe and GET /api/decks/{id}/agent-focus (window key required). Contract: docs/AGENT_FOCUS.md. formdeck://guide gained lines for Follow agent, remove_background and colour opacity.
  • Dependencies and notices. numpy 2.5.3 and onnxruntime 1.30.0 (1.23.2 on Intel Macs) in the engine requirements, frozen into the desktop engine with --collect-all onnxruntime and checked at selfcheck. NOTICE.md has a new section "Downloaded when the person asks"; THIRD-PARTY-NOTICES.txt carries five new packages and flatbuffers' licence text is vendored. No new npm dependency.
  • Fixes in the engine. Two overlapping settings writes could end in a 500 (one lock and a unique temp file now).

Languages and docs

  • Thirteen new i18n parts (48 to 60), 157 strings in all 25 languages. They are machine quality and not yet reviewed by native speakers.
  • README, MANUAL, FORMAT (bgRemoved, colour opacity), the wiki, the harness skills and the agent catalogue are updated for all of the above.

Commits

  • 188 commits on top of main (d332149, v0.47.0): 94 feat, 50 fix, 30 docs, 5 style, 4 build, 2 refactor, 2 chore and 1 perf. Every one is type(scope): summary (0.49.0) with a body, authored and committed by nodemode-ai <mackin@nodemode.ai>, with no trailers. The release commit is last.
  • 365b2be does not build alone. It is a dock-default commit, but it also carried follow-ui's app.ts hunks (the Follow button, its import and its wiring) because a path commit takes the whole file, and the module they import first exists in 61ef207. The frontend does not type-check from 365b2be through 9fd2bc9 (five commits) and builds again at 61ef207. The backend is unaffected. No history was rewritten.
  • Other commits carry another role's hunks for the same reason, and each says so in its body: 52216e2 (also two icons from Remove Background and the follow icon), 2d73dd7 (also the picture right-click line), 0bd39ee (also the Edit menu entry), 040ca25 (also the Slide menu entry), and the Design tab commit in toolbar.ts (also the Picture Format Background group).

Tests

  • At the release commit 8818756: backend/venv/bin/python -m pytest backend/tests -q 360 passed, npx tsc --noEmit clean, npx vite build passes, ./formdeck i18n check 0 problems, ./formdeck counts --check and setup/notices.py --check in step, and test_f4_versions.py passes with every version site at 0.49.0.
  • At 3762c1c, from a clean git archive of HEAD:
    • backend/venv/bin/python -m pytest backend/tests -q: 360 passed. This release adds no tests, because CLAUDE.md allows only tests the family test plan names and it names none for these features.
    • npx tsc --noEmit is clean, npx vite build passes, the engine's compileall and --selfcheck pass, and npm audit --audit-level=low finds 0 vulnerabilities.
    • setup/notices.py --check passes and backend/tests/test_f4_versions.py passes.
    • CI's window smoke (the F7 test: 4x CPU throttling, network throttling, layout shift 0, the three demos open) passes.
    • No commit has an emoji, an em dash in a .md file, a raw z-index outside tokens.css, or an inline SVG icon outside ui/icons.ts.
  • Independent verify (no edits) built the branch at 0f27af6 and checked all eight first changes at 4x CPU throttling, in dark and light, at 1440 by 900 and 1280 by 800, with the real U2-Net model and real MCP calls. One failure (the window title after leaving Home) was fixed in 2c2e281 and checked again. Layout shift was 0 without input, apart from the known item below.
  • Web paste, auto-advance, panel resize, poster frame and the shell fix were each checked by their own role in Chromium at 4x CPU throttling, with the themes and window sizes listed in their hand-offs (auto-advance passed 21 of 21 checks in each of four runs). Present-sharp was measured in Chromium and WebKit at 1920 by 1080 and 2560 by 1440, device scale 2. A second independent verify (no edits) checked the shell fix, web paste, panel resize and auto-advance at 4x CPU in dark and light at both sizes, and re-ran the first eight: all pass. Its one failure, the dock terminal taking focus out of Preferences (SF-1), is fixed in 6d56e1c and was re-checked by its role. A third independent verify measured Slide Show sharpness in Chromium and WebKit (a mid-fade photo went from 0.537 of its at-rest sharpness to 1.002 in Chromium) and passed poster frames everywhere. Its one failure, Chromium line tops sitting lower under zoom (PS-1), is fixed in cdaaeb7: line tops now match 0.47.0 within 0.03 pt.
  • Engine-review ran the new engine code end to end: the model pin against a separate download, a real cut, the refusals, the follow messages from two windows and an agent. Its findings R1 to R3, R5 and R7 to R10 are closed in this branch.
  • Not run:
    • the desktop shells (Tauri on macOS, Windows and Linux: WebKit and WebView2 clipboard rules, the native save panel, the system menu bar and traffic lights);
    • present-sharp on a Mac (the blur does not reproduce on Linux WebKit);
    • a full desktop engine freeze with onnxruntime (a PyInstaller probe ran the model);
    • a .pptx saved by PowerPoint itself, and video or GIF export with a poster.

Known issues

  • Desktop drag of web pictures. Dragging a picture from a browser window into the desktop app does nothing, because Tauri's own drag-and-drop reports file paths only. Copy and Paste works, and the browser build accepts the drop. A fix needs a shell change.
  • macOS menu bar. Choosing Copy Slide as Picture or Paste from the system menu bar runs outside a keypress, so WebKit may refuse the clipboard: the copy then goes to FormDeck only (the toast says so), and the paste may not see another app's picture. The shortcuts and the right-click menu work. WKWebView may also show its own paste confirmation.
  • Translations have not been reviewed by native speakers. The author lists Swedish, Hungarian, Turkish, Korean, Finnish, Thai, Vietnamese, Indonesian and the long engine messages as the least certain.
  • Remove Background downloads 176 MB on first use and needs the network once. If the download stops, Install again resumes it, and Preferences, Editing, Pictures can install the model ahead of time.
  • Opening or closing the agent dock moves the notes pane, the row resizer and the Review group by about 280 px. It was the same in 0.47.0; the shifts follow input, so the layout shift score is 0.
  • A profile that chose Chat in the dock before this version opens on Claude Code once, then keeps its next choice.
  • On WebKit, 10 of 28 template slides checked keep the old scaled drawing in Slide Show because their line tops would move; their text matches 0.47.0 exactly, and animated pictures on them can still look soft on a Mac while they fade.
  • The first drag of a right-panel height line moves a third group by half a pixel (PR-1, with input).
  • In Light mode, a change of the system reduced-motion setting while the window is open re-fits the ribbon (shifts of 0.0002 to 0.0015). Also in 0.47.0.
  • Agent focus is not sent for run_command and extension_command, and an edit that touches several slides focuses the first one.
  • Engine-review follow-ups left open: cancelling a download while its thread is blocked in a read can fail to delete the partial file on Windows (R4), and an installed model is trusted by size and sidecar without re-hashing (R6).
  • Ctrl+Shift+S does nothing while the caret is inside a text box on the stage. The menu and ribbon Save As work. Also in 0.47.0.
  • Form shell standard lines 4 and 5 (macOS menus and traffic lights) were not checked, since they need a Mac.

Merging

Merge commit. Do not squash and do not rebase-merge, so the individual commits and their signatures stay in the history. The branch is feat/deck-tools-0.49.0, on top of main at d332149.

The Editing cell of Everything in the box now names colour opacity, one-click slide backgrounds, Remove Background on pictures, Copy Slide as Picture and the reorderable side panel. Built for agents says the dock opens on Claude Code and describes the Follow agent switch in the bottom bar. The version badge is left for the lead.
Adds the button and its row as the first child of .fd-home-main so the space exists from first paint: the row is a fixed var(--ctl-md) high and the label is constant, so enabling or disabling it later changes only opacity and never layout. The button uses the existing ghost small button with the chevronLeft icon from ui/icons.ts, the same arrow FormVis uses for Back to Canvas. It starts aria-disabled with a plain title; behaviour follows in the next commits. Main's top padding drops from 32px to 16px (20px to 12px when narrow) so the page does not sit lower than the row it gained.
…deck list (0.49.0)

Home is a full-window view over the open deck tabs, so the deck the person was working on is still attached underneath. Home now keeps the list setOpenDecks already receives from renderTabs, which carries each tab's active flag, and the button goes to the active deck (or the last open one) through hooks.openDeck, the same path a card or the Open decks list uses. With no deck open it shows the Recent decks page; with no deck open and an empty library, or when that page is already showing, it is aria-disabled with a title that says why. The state is patched on setOpenDecks, show and renderDecks with setTitle and one attribute check, so nothing is rebuilt. aria-disabled instead of disabled keeps the button in the tab order and its title readable by keyboard users. app.ts is untouched.
…49.0)

The live client now reads the engine's agent.focus message (deck, slide id, index, tool, time) and passes it to a new onAgentFocus hook, so the Follow agent toggle can move the editor to the slide the agent is working on. Fields are checked one by one; a missing slide id stays null and the index is used instead.
Alt+Left (the browser's own Back) was free in the keymap, the menus and the palette, so Home listens for it on the document while it is open, no dialog is open and focus is not in a text field. Esc does the same when a deck is open, but only after Home's own Esc steps (close the card menu, dismiss the delete confirmation, clear the card selection) have had their turn: those steps record the event in a WeakSet so one key press never both closes a menu and leaves Home. Esc never reaches the search box's clear, since text fields are skipped, and with no deck open Esc does nothing. The tooltip carries the Alt+Left shortcut through formatKeys so it reads with the Mac glyphs on macOS.
The library list, info.json and every summary response now include file, the path the deck was last saved to or opened from, or null when it has none. Home reads it to show where a deck lives next to its name. Older info.json files gain the field the next time the deck is saved.
…ep (0.49.0)

Save As with a path used to link the file and leave the title alone, so the tab, title bar and Home kept the old name. The save route now takes the new file name as the deck title (unless the target is the file already linked or a folder), exports the file with that title, then applies the title and the file link as one step so every window gets one update, and rewrites info.json so the library list agrees at once. The reply carries the title. A failed write changes nothing.
copyPicture draws the copy sheets with a small landscape inside the front
sheet, so Copy Slide as Picture reads apart from plain Copy in the Edit
menu, the slide right-click menu and the command palette. Inline
currentColor SVG through the same L() stroke helper as copy.
…e returns (0.49.0)

DeckSummary gains file, the path the deck is linked to, and the save reply gains title, the name the deck has after a Save As. Types only; the window code that reads them follows.
A new follow service keeps the last agent focus per deck and sends an agent.focus live message (deck, slide, 0-based index, tool, agent, time in ms) to the window connections subscribed to that deck. Store.step and agent undo call it after the ops broadcast when the edit comes from an agent: origin agent, an MCP session key, or a live client that is not a window or a share guest. The person's own edits never send it. Bursts coalesce per deck to one message every 250 ms, ending with the latest focus; a delete focuses the slide that took the deleted one's place.
…under (0.49.0)

GET /decks/{id}/download takes an optional title and writes it into the exported copy and its file name without touching the stored deck. A browser Save As picks its file name after the deck is already open, so this lets the file hold the same name the tab is about to show. downloadUrl gains the matching argument.
…9.0)

A window that opens a deck, or reconnects, gets the deck's last agent.focus right after the snapshot, with the index recomputed and nothing sent when that slide is gone, so Follow agent can jump at once. Share guests never get it. A step sent on the live socket by a client that is not a window or a guest is an agent edit and its focus names the tool live.
… picked (0.49.0)

The browser save picker returns a file handle, not a path, so the engine never saw the new name and the tab kept the old one. After the picker closes the window takes the handle's file name without its extension as the deck title, asks the download for a copy carrying that title so the file and the tab agree, and sets the title in the open deck, which updates the tab, the title bar and the document title in place.
…ed (0.49.0)

New services/bg_model.py: one model manager entry for Remove Background, the same U2-Net file FormVis (u2net-onnx) and FormLit (subject) use for their small, fast path: u2net.onnx from the rembg v0.0.0 release, 175,997,641 bytes, SHA-256 8d10d2f3...b491, Apache-2.0. It lands in <data folder>/Models (FORMDECK_MODELS_DIR overrides) with a sidecar JSON recording url, hash and licence.

The download runs on a thread with progress (received bytes), cancel (the partial is deleted), resume of a partial file through a Range request (the partial is hashed first; a server that answers 200 restarts cleanly), a size cap at the pinned length, and refusal of anything whose SHA-256 does not match: the file is deleted and the error names both hashes. remove() cancels and deletes the model.
…0.49.0)

Save on a deck with no linked file and the default Untitled deck name only wrote to the library, so nothing ever asked for a name and the tab stayed Untitled. It now opens the Save As picker when the window can name a file (the desktop app or a browser with the file picker); the chosen file name becomes the deck name in the tab, title bar and Home. Decks that already have a name or a linked file save as before.
…d (0.49.0)

The shared dock module in src/dock/ is hashed by setup/agents.py and never edited here, so the default tab is handled by a subclass in its own file. This first step adds the helpers that read the remembered tab from the dock's storage key and the class itself, which asks the adapter's agentStatus for the Claude Code answer when the dock is mounted and again when the window regains focus, so a person who installs Claude Code in another terminal is noticed at the next open. Nothing opens differently yet and nothing uses the class.
… (0.49.0)

call_tool marks every MCP call (and the in-app chat's calls through it) with its tool name, so each agent.focus says which tool moved the agent. Edits reach the window through the store hook; when a call made no slide edit but targets exactly one slide (render_slides or lint_deck of one slide, get_deck or animate list on one slide), it focuses that slide. build_deck and open_file focus the new deck's first slide, as the build is not incremental. The poster-frame pass after an edit stays quiet so it does not pull focus off the slide the tool worked on. A failing focus lookup never turns a tool result into an error.
…0.49.0)

New services/bg_remove.py runs the pinned U2-Net file through onnxruntime on the CPU provider only, with the preprocessing FormVis's _u2net_onnx and FormLit's nets.u2net use: the picture resized to 320 by 320 (Lanczos), scaled by its maximum, ImageNet mean and deviation, NCHW float32; the first output min-max normalised and resized back to the picture's size (Lanczos).

cut() opens the picture (EXIF orientation applied, first frame of an animation), refuses anything over 64 megapixels, multiplies the matte into any alpha the picture already had and returns an RGBA PNG plus the share of mostly opaque pixels. Missing model, missing runtime, unreadable file and too-large picture are separate exceptions so the route can answer 409, 503, 415 and 413. The session is cached and serialised; forget() drops it when the model is removed.
…in the colour picker (0.49.0)

The colour picker gains an Opacity row under the standard colours: a preview swatch on a checkerboard, a 0 to 100 slider and a percent field (arrows step 1, Shift with the arrows 10, Enter applies). Every colour it returns, from the theme and standard grids, tint or shade, or Custom, carries that opacity as the deck format's alpha: #RRGGBBAA for hex, { scheme, alpha } for theme colours. The row starts at the alpha of the current colour a caller passes, so a swatch picked afterwards keeps it, and the preview (or Enter) re-applies the current colour at the new opacity. Hovering a swatch previews it at the chosen opacity by patching one custom property on the preview only. Callers that cannot take alpha pass opacity: false. alphaOf and withAlpha are exported for callers.
…n step with the tab (0.49.0)

Each recent-deck card carries the deck name and its saved path in its tooltip, with no change to the card's markup or size. Home now adopts the name and path of every open deck each time the tab strip updates, patching the existing card text in place, so a deck renamed by Save or Save As reads correctly on Home before the library is fetched again, and no card is added or rebuilt.
…0.49.0)

renderTabs already hands the tab strip and Home one list of open decks. It now includes the path the deck is linked to, so Home can show it on the card the moment Save As links the file. One field added to the existing list; the tab strip is untouched.
… when no tab is remembered (0.49.0)

When the dock is opened by the plain toggle (the chord, the Terminal command, the View menu) and the remembered tab is empty or claude, the class asks the module to open without seeding a tab and then lands on Claude Code. If the engine says Claude Code is not installed it shows a shell tab and then asks for Claude Code once, which makes the module's own note appear with its install command and copy button. A remembered chat, shell, Codex, Cursor or Antigravity tab goes the module's way untouched, and New Terminal keeps opening a shell. A dock restored open at start follows the same rule once it is mounted.
New routers/background.py, registered in main.py under /api:
- GET /background/model: id, name, installed, runtime (onnxruntime and numpy importable), downloading, progress, received, size, licence, SHA-256 and the last error.
- POST /background/model (202): starts or resumes the one-time download and returns the status; DELETE cancels a running download and removes the file.
- POST /background/remove: JSON {media} for a deck picture, or multipart with one file field for uploaded bytes. Answers {media, coverage, ms} with the cut-out stored like an upload as '<name> (no background).png', or the PNG itself with ?format=png. 404 unknown media, 415 not a raster picture, 413 over 64 megapixels, 409 model not installed (X-Formdeck-Model names it), 503 runtime missing or the model failed.

The contract is posted for bgr-ui in the team's requests file.
…nd FormLit do (0.49.0)

The not-installed message divided 175,997,641 bytes down to 175 MB while the family's apps and the window's install button say 176 MB; it now rounds to the nearest megabyte so the 409 text and the install offer agree.
…49.0)

The picker remembers the last ten colours it returned, alpha included, under formdeck.recentColours (mirrored with the other UI settings), and shows them as a Recent row on a checkerboard so a translucent colour reads as one. A recent colour is applied exactly as it was picked, so a 40% fill picked once is one click the next time; a picker opened with opacity: false applies it opaque. The title names the colour and its opacity. The row is built with the rest of the popover while it is hidden, so opening it never shifts anything on screen.
…t matches the pin (0.49.0)

A person on a closed network can copy u2net.onnx into <data folder>/Models by hand. Install now hashes a file of the pinned length that has no sidecar before downloading anything: when its SHA-256 matches, the sidecar is written and the model is ready in under a second; when it does not, the download replaces it as before. The sidecar writing is shared by both paths (_record).
app.ts now constructs FormdeckDock around the same formdeckDock adapter and imports Dock only as a type, so the Terminal and Claude Code commands, the Chat command, the ask line and the dock's own buttons behave as before while the plain open uses the new default.
…(0.49.0)

POST /api/decks/{id}/steps with origin agent now sends agent.focus naming the tool steps, and GET /api/decks/{id}/agent-focus returns {focus} with the deck's last agent focus (index recomputed, null when there is none or its slide is gone, 404 for an unknown deck), so a window that turns Follow agent on can jump at once. The route reads only and is not open to share guests.
Steps sent over HTTP or the live socket may address a slide by its position, ["slides", 2, ...], rather than by {id}. The store's touched_slides reads only id paths, so those edits sent no focus. The follow service now falls back to an index path and focuses the slide at that position. Found by the end-to-end run: an HTTP agent step and a live agent client's step.
…9.0)

Adds The agent dock (opens on Claude Code, falls back to a shell with the install command, remembers the person's own tab) and Following the agent (status bar switch left of Notes, View > Follow Agent, Alt+Shift+F, what it does in Normal view and in Slide Sorter, when it waits) to the Agents chapter, the shortcut row, and the status bar list. README says what the dock shows when Claude Code is missing.
…ster (0.49.0)

Decks written by earlier formdeck exports (and other python-pptx tools) carry python-pptx's built-in speaker icon as the video's blipFill. Reading that back made it the poster, so the editor and every thumbnail showed a grey icon instead of the video. read_pic now skips the poster when a video's picture fill is byte-for-byte that stock image; a real poster from PowerPoint or from formdeck is read as before.
… it plays (0.49.0)

New rule .fd-video.is-poster:not(.is-played) { opacity: 0 }, folded into the existing hidden-until-framed selector list. The renderer marks a video that has a poster frame with is-poster and draws the poster as the element's underlay; the video element keeps its box and only its opacity changes, so nothing moves when it starts. Print mode never sets is-poster, so the rasteriser still reads the video's poster attribute.
…r video (0.49.0)

The document-level playing listener now adds is-played next to is-frame, which is what lets a poster video show itself (and hide its poster underlay) once it really plays. store() no longer writes the freshly captured start still into the poster attribute of a video that has its own poster frame (is-poster), so the still capture cannot replace the person's chosen poster.
…tarts (0.49.0)

prepareStills, which runs when a deck opens in the editor and when a show starts, now also holds a decoded Image of each video's poster (the same /api/media URL the underlay uses), beside the start still it already requested. A slide with a poster video then paints its poster in the same frame as the rest of the slide instead of one frame later. Checked at 4x CPU: going to the slide and opening the show give no frame between the previous picture and the poster.
…ide shows again (0.49.0)

With Rewind after Playing on, finish() now also removes is-played after seeking to the clip's start, so the poster frame is shown again once the video ends, as before it played. Without rewind the last frame stays. preparePlayback's reset of a paused clip removes is-played too, so returning to a slide shows its poster again instead of the frame where it stopped.
…e it was (0.49.0)

Verify V5: Esc did not close the slide thumbnail's right-click menu.
PopupMenu had no key handling, so Esc went to the window handler, which
cleared the selection and left the menu open.

A standalone PopupMenu (every right-click menu built on it: slide and
master thumbnails, the sorter, the stage and its elements, deck tabs,
the panel dock, rulers, tables, edit points, Present options) now adds
one capture keydown listener on window. While open, Esc closes an open
submenu first, otherwise the menu, then focuses the element that had
focus when the menu opened (recorded in openAt while the panel was
hidden, never the body or the menu itself). preventDefault and
stopImmediatePropagation keep that Esc from also clearing the selection.

For a thumbnail that element is the slide list, the listbox whose
selected option is the thumbnail, so the arrow keys carry on from that
slide. Bar menus are not standalone and keep their behaviour.
…ack to the card (0.49.0)

Found while checking that the other right-click menus share the V5 fix.
Home's card menu focuses its first row, and the menu lives in
#overlay-root, outside Home's root, so the Esc branch in the root's
keydown never saw the key and the menu stayed open.

The menu now handles Esc itself: it closes, marks the event consumed and
stops it, so Home's document handler does not also read it as Back to
decks, and focus returns to what had it before openMenu moved focus to
the first row, the card.
…stead of dropping it (0.49.0)

Found while checking that the other right-click menus share the V5 fix.
The ribbon's and Quick Access Toolbar's right-click menu (ActionMenu)
focuses its first row and already closed on Esc with close(true), but
contextMenu opens it with no opener, so focus fell to the body.

ActionMenu.open now takes the focused element as the opener when none is
passed (never the body or its own rows). The Quick Access Toolbar's More
button still passes itself.
…-click menus and poster frames (0.49.0)

Shell: View > Agent Dock replaces Terminal and Hide Terminal in the manual and the View menu row; the title bar's agent button, and the new Preferences Agents switch, all agree on one dock state. Esc closes a right-click menu and gives focus back. Poster frame: where the poster shows (editor, thumbnails, show, Presenter View), what happens after a video ends, and that a video with no poster exports its first frame to PNG, PDF and .pptx.
One clause in the Built for agents paragraph. The version badge is untouched.
…y sharp (0.49.0)

Show views used transform: scale(k) over a slide laid out at design size, so an element animation's compositing layer (and on WebKit the scaled inner it forces into a layer) was rasterised small and stretched about 2.7x until the animation was cancelled. Show views now put CSS zoom: k on the slide inner instead, so layout and every layer are at screen size. Edit, thumbnail and print views keep the transform.

Autofit and text effects are still measured at zoom 1, so they match the editor and the exports. The same pass compares every paragraph's line boxes at zoom 1 and at zoom k, and a view whose lines would differ goes back to the transform, so the show never reflows text. Element boxes match 0.47.0 within 0.014 px. Glyphs can sit up to about 1 px higher or lower because font ascent and descent now round at screen size.
…ter frame until it plays (0.49.0)

mediaBlock and elementHtml ignored the poster in the editor and the show: the element underlay and the video's poster attribute were always the engine's start still, and once loaded the video was sought to its start and shown, so the poster set by Poster Frame (Current Frame or Picture), by an agent or by a .pptx never appeared. Now, outside print mode, a video with a poster draws the poster as its underlay (center / contain, as the video), carries the poster attribute and the is-poster class, and stays at opacity 0 until it plays (the slides.css rule and the playing listener from the previous commits). Thumbnails get the same underlay instead of relying on the paused video element showing its poster. patchMedia keeps is-played only while the poster is unchanged, so a new poster shows at once after a preview. A video without a poster draws as before.
… (0.49.0)

In print mode, which PNG and PDF export, copy as picture and the Home preview rasterise, a video with no poster had no poster attribute, so raster.ts videoNode drew a black box with a grey play icon. It now gets the start still the window already captures and caches in the engine for every video (/api/media/<id>/still at the clip's start) as its poster attribute, and the rasteriser draws that frame. When no still exists yet the image fails to load and the old icon is drawn, as before. The src keeps its #t fragment, so the browser print path is unchanged.
…8n scanner reads the file (0.49.0)

The Preferences Agents note built its text with formatKeys('Mod+<backtick>') inside a template literal, and the i18n scanner paired every later quote in dialogs-file.ts wrongly, listing 11 junk strings. The string is now 'Mod+\x60', the same character, so the shortcut renders as before and ./formdeck i18n check drops from 66 problems to 55.
…ew MB and the not-a-picture note (0.49.0)

Part 61 adds the two colour picker field labels and their tooltips (Hex colour, Custom colour), the size wording used while the model's size is unknown, and the toast text for a pasted address that turns out not to be a picture. All 25 languages.
…9.0)

Part 62: the label the undo history shows for the title chosen in the save-name flow.
…gs built from keyed pieces (0.49.0)

NOT_TEXT gains U2-Net and the eight colour scheme names, the 22 texts only agents read, the six tooltips with a literal shortcut or Esc suffix (the runtime strips the suffix before lookup), and seven strings that are composed from keyed pieces or are CSS and file text. With the dialogs-file.ts fix and parts 61 and 62, ./formdeck i18n check reports 0 problems, as on main.
…gine's 503 text (0.49.0)

The engine message and its i18n key (part52 key 39) named ONNX Runtime, which the content rules do not allow in UI text. Both now say the model runtime, and all 25 locale files use the same wording as the existing model-runtime strings in part52. Backend tests: 360 passed under the lock. ./formdeck i18n check passes.
…s text (0.49.0)

One sentence in Presenting: slides are laid out at screen size in the show, with a fallback that keeps line breaks, and the small difference in letter height.
…zoom (0.49.0)

PS-1 from verify-c. Under zoom, each paragraph's strut (the inherited UI font) and its runs round ascent and descent at screen size instead of design size. In Chromium that moved a text box's lines down by a constant offset, and at k=2 the gap also grew down the box (3.1 pt on a 13 pt body at 1440x900). The guard compared only left and width, so it never fell back.

fit now measures each text flow's first line at zoom 1 and at zoom k and gives the flow a translate that cancels the constant offset, so line tops land on the design-size positions. lineBoxes also records each line's top, and sameLines requires tops within 0.25 pt, so a box that still drifts sends the view back to the transform. setScale re-fits a connected view when its zoom changes, because the offsets depend on k. Edit, thumbnail and print views are untouched.
Verify-b SF-1: turning on Preferences, Agents, Show the agent dock opened
the dock, and about a second later the Claude Code terminal took focus
outside the dialog (the shared dock focuses its active tab when the open
animation settles), so Esc no longer closed Preferences and the focus
trap was lost.

dock/ is the family's shared module and stays unedited. FormdeckDock now
listens for focusin on the dock root: while any modal dialog is open, it
sends focus straight back to where it came from (the Preferences switch),
or to the open dialog when there is no previous element. Every path into
the dock (settled, tab select, a new terminal, restart) goes through
focus, so one guard covers them. With no dialog open nothing changes.

Checked at 4x CPU with a stub claude on PATH so the Claude Code tab is
active: focus stays on the switch at 0.5, 1.5, 3 and 5 s, Esc closes
Preferences, aria-expanded goes false, focus returns to the gear, no
input-free layout shift (dark 1440x900, light 1280x800). The build
before this commit reproduced the bug in the same harness.
…rces (0.49.0)

The demos compile FormDeck's renderer, styles and icon module from
frontend/src. After the first rebuild (0f27af6), render/slide.ts (Slide Show
zoom and poster frames), video-still.ts, slides.css, shell.css and icons.ts
changed again, so demo/, demos/present and demos/build were rebuilt with the
commands from their READMEs. Only each demo's built script and stylesheet
changed; the media packs did not.
./formdeck counts --check failed after this release's growth: TypeScript
went from about 47,600 to 48,200 lines and Python from 27,500 to 27,600.
CSS and Rust are unchanged at the README's rounding.
…dow (0.49.0)

Each role of this release appended its section to frontend/HASHOUT_LOG.md
and, where it touched the engine, backend/HASHOUT_LOG.md, and left it for
one commit at the end: copy-image, background removal (engine and window),
colour opacity, slide background, dock default, save names, Back to decks,
Follow agent (engine and window), panel reorder and resize, docs and i18n,
the shell standard fixes, web pictures, Auto-advance, poster frames and the
Slide Show zoom.
FormDeck described releases only in their release commits. CHANGELOG.md
starts at 0.49.0 and lists, in plain words, what is new, improved and fixed,
and the known issues, so the release notes and the PR body come from one
place. Earlier versions stay in `git log --grep "chore(release)"`.
…49.0)

render/slide.ts sets a text box's `translate` to `0 <offset>px` to keep
Slide Show line tops on the design-size layout. The scanner reported that
CSS value as an untranslated string, so it joins the NOT_TEXT list next to
the other CSS fragments and `./formdeck i18n check` reports 0 problems again.
…oval, one-click backgrounds with opacity and Follow agent (0.49.0)

Bumps the version sites to 0.49.0: frontend/package.json, both
package-lock.json fields, frontend/src/version.ts, backend/app/__init__.py,
src-tauri/Cargo.toml and formdeck's entry in Cargo.lock,
src-tauri/tauri.conf.json, the README badge, and a 0.49.0 release line in
the Flatpak metainfo.

The release: Copy Slide as Picture, Remove Background on the U2-Net model,
pictures pasted or dropped from websites, the Design tab Background control
and opacity in every colour picker, the dock opening on Claude Code, Save As
renaming the deck everywhere, Back to decks on Home, Follow agent, right
panel groups that move and resize, Auto-advance in Slide Show, sharp
animated pictures in Slide Show, video poster frames, and the top bar's
agent and gear buttons. CHANGELOG.md lists it all with the known issues.

Checked on this tree: tsc clean, vite build, 360 backend tests, i18n check
0 problems, counts and notices checks in step.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 2, 2026 22:59
@nodemode-ai
nodemode-ai merged commit 8ea25ca into main Dec 2, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the feat/deck-tools-0.49.0 branch December 2, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant