Skip to content

feat(comfyui): guided Comfy tasks on pictures and video layers through the FormBridge pack (2.9.0) - #43

Merged
nodemode-ai merged 17 commits into
mainfrom
feat/comfyui-2.9.0
Nov 30, 2026
Merged

nodemode-ai merged 17 commits into
mainfrom
feat/comfyui-2.9.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

feat(comfyui): guided Comfy tasks on pictures and video layers through the FormBridge pack (2.9.0)

Summary

  • Guided Comfy Task (Generate menu): lists the FormBridge pack's still and video tasks and runs them on the selection or the selected video layer.
    • Tasks: Erase, Add, Relight, Upscale, Find an object, Describe the picture.
    • It says in plain words which node packs and model files ComfyUI still lacks, and where each file goes.
    • It shows progress and a live preview, and Retry runs again with another seed.
    • Results land as a layer masked to the selection (through the existing crop-stitch path), a new selection, a new document, or words in the prompt.
  • Strokes layer: Add and Relight take a Strokes layer chosen in the dialog (paint what to add, or the light and shade, above the picture). With none chosen they send the picture, as before.
  • Video tasks (timeline): the dialog lists Still tasks and Video tasks and greys out the ones that do not fit the active layer.
    • A video task runs on the selected video layer over the timeline's work area, up to 257 frames: painted first frame, strokes from the changed pixels, fluid shots from keyframes on frames 0, 8, 16 and so on, and upscale.
    • The result is a new video layer above the source, plus a hidden matte layer when the task returns one, in one undo step. Mattes are paired with frames by position.
    • Frames go up as streamed uploads from disk; leftover send folders are swept after a day, and a keyframe frame given twice is refused.
    • SDR to HDR conversion stays out of FormVis on purpose.
  • Generative Fill: also offers the pack's erase, add and upscale tasks as bridge: models, greyed with a reason when not ready.
  • Engine: new /api/comfyui/bridge/* routes, inside the --no-comfy switch, behind the window key and with the ComfyUI sign-in. The engine follows ComfyUI's websocket for progress and previews, tidies the pack's inputs after a job, and never serves a half-downloaded file.
  • Agents: comfy_bridge_status and comfy_bridge_workflows (headless, read-only) and comfy_bridge_run (asks first; runs through the window's bridge-run command).
    • Review fix: the headless tools take no address. They follow the ComfyUI the window last used, so the saved sign-in is never sent to an address an agent chose.
  • The existing ComfyUI recipes are unchanged and still work without the pack.

Commits

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

  • feat(comfyui): the engine reaches the FormBridge pack in ComfyUI for guided jobs, readiness and results
  • feat(agents): agents read the FormBridge status and workflows and run a workflow on the open picture
  • feat(comfyui): Guided Comfy Task erases, adds, upscales, finds an object or describes the picture through the FormBridge pack
  • docs: guided Comfy tasks in the manual, the local matrix, the wiki and the living logs, with their words in 27 languages
  • docs(release): changelog for 2.9.0
  • fix(comfyui): the saved sign-in only goes to the ComfyUI the window uses, finished jobs tidy their pack inputs, and half-downloaded results are never served
  • fix(comfyui): guided task messages reach the translation tables, media slots carry the picture, and the dialog keeps its layout while it loads
  • docs: guided task words follow the renamed placeholders, Relight is listed, and the agent tools follow the window's ComfyUI
  • chore(agents): sync the generated tool and command references for the guided Comfy tasks
  • feat(comfyui): the engine sends keyframes and frame sequences to the FormBridge pack, streaming every upload from disk
  • feat(comfyui): guided Comfy tasks work on video layers, and Add and Relight take a strokes layer
  • docs: video tasks and the strokes layer in the manual, the changelog, the wiki and the living logs, with their words in 27 languages
  • docs(manual): the guided task wording keeps the manual search ranking, and says plainly how long the window keeps frames
  • fix(comfyui): leftover send folders are swept after a day, and a keyframe frame given twice is refused
  • fix(comfyui): video tasks free their uploads once sent, pair mattes by frame, send what the layer shows, and the task dialog keeps its height
  • docs(i18n): the matte trimming sentence in 27 languages
  • chore(release): 2.9.0, guided Comfy tasks through the FormBridge pack, and all three demos at this version

Version

v2.9.0, with the release commit last.

  • The eight sites: frontend/package.json, frontend/package-lock.json (twice), frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, src-tauri/Cargo.lock, src-tauri/tauri.conf.json and the README badge.
  • Also in the release commit:
    • a new 2.9.0 line in the Linux metainfo release list;
    • the three demos, rebuilt at 2.9.0;
    • the README size line, updated after main (2.8.5, chore(release): 2.8.5 #42) was merged in.

Checks

  • Frontend: npx tsc --noEmit clean, npm run build ok, and npm test (vitest) 301 passed.
  • Backend: python formvis_engine.py --selfcheck ok, and pytest on backend/tests gives 671 passed, 9 skipped (models not downloaded, macOS-only). python setup/collect_licenses.py --check: licenses/ covers everything that ships.
  • Repo checks:
    • ./formvis counts --check: README is accurate.
    • ./formvis counts --commands --check: the catalogue has 1717 ids. It was mirrored by opening the window once in headless Chrome.
    • ./formvis agents sync --check: in step.
    • setup/release_notes.py v2.9.0: ok.
  • End to end: against a CPU ComfyUI 0.46.0 with the pack:
    • the still self test returned the exact inverse of the input;
    • the matte self test on a 9-frame video layer landed a result video layer and a hidden matte layer, in one undo step.
  • Review: cold reviews were done for both rounds. Their must-fixes (the sign-in reaching an agent-chosen address, the generated references, the versions, uploads freed once sent, mattes paired by frame) are fixed.

Not run:

  • the window smoke test, the e2e suite and cargo check;
  • a guided task with real models on a GPU;
  • the UI under 4x CPU and network throttling, and with reduced motion;
  • the dialog height when switching between Still and Video tasks, in a real window.

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 338d0f4 (PR #41, which came after 2.8.5 in #42). The frontend log keeps #41's About entry, with this release's after it, and the demos were rebuilt on that base.

…guided jobs, readiness and results

New bridge routes under /api/comfyui/bridge: handshake, workflow catalogue with readiness, run with media uploads, job state with live progress and preview, result files and cancel. They share the --no-comfy switch, the window key and the ComfyUI sign-in, and say plainly when the pack is not installed.
… a workflow on the open picture

comfy_bridge_status and comfy_bridge_workflows answer without a window. comfy_bridge_run asks first and runs through the window's bridge-run command, with its own approval sentence.
…ect or describes the picture through the FormBridge pack

Generate > Guided Comfy Task lists the pack's still tasks with what each still needs, runs on the selection with progress and a preview, and lands the result as a layer masked to the selection, a new selection, a new document or words in the prompt. Retry runs again with another seed. Generative Fill also offers the pack's erase, add and upscale tasks. Agents run it through bridge-run, which now refuses with a plain reason.
…d the living logs, with their words in 27 languages
…ses, finished jobs tidy their pack inputs, and half-downloaded results are never served

The headless agent tools take no address and follow the window's last ComfyUI, and they are off under --no-comfy. Checks use the quiet sign-in probe and a refused sign-in says how to fix it. The local result cache drops files older than a week.
…a slots carry the picture, and the dialog keeps its layout while it loads
…isted, and the agent tools follow the window's ComfyUI
…FormBridge pack, streaming every upload from disk

A keyframes slot takes one picture per frame number, on frames 0, 8, 16 and so on. Video slots go up as sequences, with slot kinds taken from the pack's workflow entry. Uploads stream from disk in both directions, and long video jobs keep their progress for as long as the window follows them.
…elight take a strokes layer

Video tasks take the selected video layer over the work area (up to 257 frames): clean the selection through the clip, carry a painted first frame through it, animate a picture, a fluid shot from keyframes painted on frames 0, 8, 16 and so on, a matte, or an upscale. Results land as a new video layer above the source with any matte as a hidden layer above it, in one undo step. Still Add and Relight send the picture without the strokes layer and the strokes on their own. bridge-run now declares its parameters, so agents can run it.
… the wiki and the living logs, with their words in 27 languages
…, and says plainly how long the window keeps frames
…y frame, send what the layer shows, and the task dialog keeps its height
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:17
@nodemode-ai
nodemode-ai merged commit 533884d into main Nov 30, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the feat/comfyui-2.9.0 branch November 30, 2026 21:19
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