Skip to content

feat(comfy): Generate with Comfy makes and changes shots on your own Comfy server, and menus keep under the bar (0.39.0) - #41

Merged
nodemode-ai merged 11 commits into
mainfrom
feat/comfy-0.39.0
Nov 30, 2026
Merged

nodemode-ai merged 11 commits into
mainfrom
feat/comfy-0.39.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat(comfy): Generate with Comfy makes and changes shots on your own Comfy server, and menus keep under the bar (0.39.0)

Summary

  • Generate with Comfy (Create menu, desktop only): sends the selected blocks to a Comfy server that has the FormBridge pack. The modes are:
    • a fluid shot from flipbook keyframes;
    • animate a drawing;
    • erase, add or relight on a video block, from a drawing over its first frame;
    • matte;
    • upscale.
  • Results: they come back as new tracks at the source's start, with a mask track for mattes, in one undo step. Each generated asset records how it was made (Asset.generated), and Retry runs again with another seed.
  • Settings: a Comfy section holds the server address and an optional sign-in key, which is kept in the keychain and forgotten when the address moves to another host.
  • Engine: new /api/comfy routes. They are marked desktop-only in the API contract, because the iPad has no engine for them.
  • Agents: comfy_status, comfy_workflows and comfy_job (reads), and comfy_generate (asks first, through the window queue).
  • Naming: the word in code and labels is "Comfy", per CLAUDE.md rule 7.
  • Menu fix (FORM-MENU-OVERLAP-FIX 1.2.0, ported from FormVis 2.8.3 and 2.8.4):
    • Bar menus open under their button through a new openUnder, with an inline cap of min(75% of the window, room below) set before measuring.
    • Right-click menus: the Stage menu, the content menu (36 rows, the longest) and other openAt menus keep their pointer placement and flip. Their top is never above the bar.
    • Popover menus opened at a point (popover.ts showAt) get the same floor and cap.
    • Submenus take the root's floor and cap.
    • Hint: the rows sit in their own scrolling list inside the glass card, so the bottom rows fade into the glass and the 56 by 12 pill shows while rows remain below. The content menu gets it too.
    • Untouched: the macOS system menu.
    • Generate with Comfy card: it now stays under the bar and inside the window, and its body scrolls. Before, it could sit at top -212 in a 1280x800 window.

Commits

Oldest first, release commit last. The short hashes change when the commits are signed, so they are left out.

  • feat(comfy): the engine reaches a Comfy server through the FormBridge pack
  • feat(comfy): Generate with Comfy makes fluid shots, animates drawings and erases, adds, relights, mattes or upscales video blocks
  • feat(agents): agents check the Comfy server, list its workflows, follow jobs and ask before generating
  • docs: Generate with Comfy in the manual, the wiki and the living logs, with its words in 27 languages
  • docs(release): changelog and What's New for 0.39.0
  • fix(comfy): job uploads stay inside their folder, keyframes sit on multiples of 8, the key follows its server, and the card keeps its layout while it loads
  • fix(menus): menus never cover the menu bar, stay within three quarters of the window and show a hint while more rows are below
  • fix(comfy): the Generate with Comfy card stays under the menu bar and inside the window, and its body scrolls
  • docs(release): the menu fix in the 0.39.0 changelog
  • fix(comfy): the Generate with Comfy status line names the seed only when the job reports one, and the matte check is recorded
  • chore(release): 0.39.0

Version

v0.39.0, with the release commit last.

  • Version sites: frontend/package.json, the lockfile (twice), frontend/src/version.ts, backend/app/__init__.py, src-tauri Cargo.toml, Cargo.lock and tauri.conf.json, ios/project.yml, the README badge and docs/api-contract.json (regenerated).
  • The README also lists Generate with Comfy.

Checks

  • Frontend: npx tsc --noEmit clean, npm run build ok, and vitest 3419 passed (224 files).
  • Backend: pytest 857 passed (after the move onto 0.38.1).
  • Repo checks:
    • python setup/api_contract_dump --check: in step.
    • python setup/api_contract_check: required missing 1, GET /api/notices, the same as on main (see Merging); the new /api/comfy routes are desktop-only.
    • python3 setup/lint_text: 0 hits.
    • python3 setup/agents.py sync --check: in step.
  • Window: python setup/window_check drew the window in Chrome with 0 problems.
  • End to end: the engine ran the pack's self test with a 3-frame sequence against a CPU Comfy server. The frame numbers 101 to 103 came back intact.
  • Matte landing (30 Nov EST), through the real card (Create > More > Generate with Comfy, mode Matte) in headless Chrome, with the pack's core-nodes-only formbridge.selftest.matte standing in for video.matte for this check only (nothing in the repo was changed for it), on a 12-frame clip, left half red and right half blue:
    • the matte flipbook (mask luminance) and the inverted flipbook landed above the source, both at frame 0 with 12 frames, and every new picture carries its workflow note;
    • on the Stage the left half showed the result where the matte is white, and the right half showed the source where it is black, so luminance mode is right;
    • one Ctrl+Z took the movie back to its two original tracks.
    • It also showed the status line reading "seed null" for a job with no seed; that is fixed in its own commit.
  • Review: a cold review was done, and its must-fixes are fixed (a slot named .. could write outside the job folder; one string was missing from the tables).
  • Menu fix, headless Chrome on the production build (bar bottom at 33.5):
    • Bar menus, 4x CPU throttle: at 1871x1080, 1280x720, 1000x480 and 800x320, every bar menu plus Content > Add sat at top 38 in every frame. All were at most 75% tall (View 810 at 1080), with bottoms inside the window. The last row was reachable by scroll and by End.
    • Content menu, 1280x800: before top 87 and 705 tall (88%); after top 192 and 600 tall, with the hint.
    • Content menu, 1000x480: before top 8, over the bar, 464 tall; after top 112 and 360 tall, with the hint.
    • Stage menu, 1000x480, low point: before top 4; after top 38.
    • Track options submenu: under the bar and within the cap.
    • Hint timings, 1871x1080: full opacity from the first frame; at the last row 0.54 at 69 ms and 0 at 373 ms; scrolled up 120 px, 0.66 at 250 ms and 1 at 754 ms.
    • Hint behaviour: End and Home work, Help (which fits) has none, and the focused row never sat in the fade. A cut-off submenu at 1000x420 has the hint.
    • Generate with Comfy card: at 1280x800 its top is at 38 and its bottom at 796, with the body scrolling. At 1000x480 its top is at 38 and its bottom at 476.

Not run:

  • a real model run on a GPU;
  • a model-made matte (video.matte with SAM 3.1);
  • the reduced-motion check of the hint;
  • popovers that lay out their own card (paint feel, paint tools, paint clip, Movie Settings, the keyframe card): they get the floor and cap but not the hint;
  • cargo check;
  • the iPad;
  • the UI under 4x CPU and network throttling.

No new tests were written this round, by the owner's decision. The test plan is in the planning sidecar.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash. The branch is built on main at b4a949e (PR #39, after 0.38.1 in #40). The living logs and the changelog keep 0.38.1's entries, with 0.39.0's above them. setup/api_contract_check still reports GET /api/notices as missing on the iPad engine; that comes from #39 on main, not from this branch. #39's About > Third-party notices ships in 0.39.0 but has no changelog line.

… pack

New /api/comfy routes for the server address, an optional sign-in key in the keychain, the workflow catalogue with readiness, runs with frames and keyframes, job state with progress and preview, result files and cancel. Desktop only: the API contract lists the routes as not served on iPad.
… and erases, adds, relights, mattes or upscales video blocks

A desktop card sends the selected blocks to a Comfy server with the FormBridge pack and brings the results back as new tracks at the source's start, with a mask track for mattes, in one undo step. Each generated asset records how it was made. A Comfy section in Settings holds the server address and an optional sign-in key.
…ltiples of 8, the key follows its server, and the card keeps its layout while it loads

A slot named . or .. is refused. Number fields that are not numbers answer as a bad request. The sign-in key is read from the keychain once and is forgotten when the server address moves to another host. The card reserves room for readiness and errors so nothing jumps, takes media slots, uses the readiness the workflow list already carries, and uses the shared close icon. Agents see what a workflow still lacks.
…s of the window and show a hint while more rows are below

Bar menus open under their button, right-click and other point menus keep under the bar and still open at the pointer, and their submenus follow. What does not fit scrolls, with a fade and a small pill at the bottom until the last row. Ported from FormVis 2.8.3 and 2.8.4.
…hen the job reports one, and the matte check is recorded
Version sites move to 0.39.0, and the README lists Generate with Comfy.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:39
@nodemode-ai
nodemode-ai merged commit 8471f9c into main Nov 30, 2026
14 checks passed
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