Skip to content

Conversation

@jtydhr88
Copy link
Collaborator

@jtydhr88 jtydhr88 commented Dec 25, 2025

Summary

  • Skip widget filenames starting with '$' (internal reference format)
  • Add deprecated ComfyApp.open_maskeditor for plugin compatibility
  • Register MaskEditor button in ClipspaceDialog

fix #7665 and
ltdrdata/ComfyUI-Impact-Pack#1165
ltdrdata/ComfyUI-Impact-Pack#1158
ltdrdata/ComfyUI-Impact-Pack#1157

Screenshots (if applicable)

before

2025-12-25.15-34-18.mp4

after

2025-12-25.15-29-51.mp4

┆Issue is synchronized with this Notion page by Unito

@jtydhr88 jtydhr88 requested review from a team, brucew4yn3rp and trsommer as code owners December 25, 2025 20:35
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 25, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 25, 2025

📝 Walkthrough

Walkthrough

Adds a guard in the mask editor loader to skip widgetFilename parsing when it starts with $, and adds a clipspace-compatible entry point plus a ComfyApp compatibility bridge (ComfyApp.open_maskeditor) in the mask editor extension.

Changes

Cohort / File(s) Summary
Mask Editor Loader
src/composables/maskeditor/useMaskEditorLoader.ts
Add guard: skip parsing widgetFilename when it begins with $, causing widget-based ref parsing to be bypassed and fallback to nodeImageRef for those internal formats.
Mask Editor Extension
src/extensions/core/maskeditor.ts
Add openMaskEditorFromClipspace() helper; import ComfyApp; add init() to register ComfyApp.open_maskeditor = openMaskEditorFromClipspace with a deprecation warning; wire clipspace invocation path and a Clipspace dialog context predicate.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ClipspaceDialog
    participant MaskEditorExt as MaskEditorExtension
    participant Loader as useMaskEditorLoader

    User->>ClipspaceDialog: request "Open Mask Editor" (clipspace)
    ClipspaceDialog->>MaskEditorExt: invoke openMaskEditorFromClipspace()
    MaskEditorExt->>MaskEditorExt: validate clipspace_return_node
    MaskEditorExt->>Loader: request load with nodeImageRef / widgetFilename
    Loader->>Loader: if widgetFilename startsWith("$") skip widget parse
    Loader-->>MaskEditorExt: return editor payload
    MaskEditorExt-->>User: open mask editor UI
    Note over MaskEditorExt: init() assigns ComfyApp.open_maskeditor -> openMaskEditorFromClipspace (deprecated bridge)
Loading

Possibly related PRs

Pre-merge checks and finishing touches

✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The pull request implements the stated objectives: skipping internal reference formats (dollar-sign prefixed filenames) in mask editor loader and adding deprecated ComfyApp.open_maskeditor for plugin compatibility to restore Impact-Pack mask editor functionality.
Out of Scope Changes check ✅ Passed The pull request focuses narrowly on mask editor compatibility fixes: a guard for internal references in the loader and a compatibility bridge for plugins. All changes directly address the linked issue objectives without introducing unrelated modifications.
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Dec 25, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/30/2025, 01:32:02 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 25, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 12/30/2025, 01:40:45 AM UTC

📈 Summary

  • Total Tests: 510
  • Passed: 498 ✅
  • Failed: 0
  • Flaky: 4 ⚠️
  • Skipped: 8 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 488 / ❌ 0 / ⚠️ 3 / ⏭️ 8
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 7 / ❌ 0 / ⚠️ 1 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@github-actions
Copy link

github-actions bot commented Dec 25, 2025

Bundle Size Report

Summary

  • Raw size: 17.3 MB baseline 17.3 MB — 🔴 +568 B
  • Gzip: 3.54 MB baseline 3.54 MB — 🔴 +142 B
  • Brotli: 2.7 MB baseline 2.7 MB — 🔴 +247 B
  • Bundles: 98 current • 98 baseline • 43 added / 43 removed

Category Glance
App Entry Points 🔴 +568 B (3.2 MB) · Vendor & Third-Party ⚪ 0 B (9.1 MB) · Other ⚪ 0 B (3.47 MB) · Graph Workspace ⚪ 0 B (1000 kB) · Panels & Settings ⚪ 0 B (300 kB) · UI Components ⚪ 0 B (199 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.2 MB (baseline 3.2 MB) • 🔴 +568 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-xiAlcosx.js (new) 3.01 MB 🔴 +3.01 MB 🔴 +633 kB 🔴 +481 kB
assets/index-BdMsQZiV.js (removed) 3.01 MB 🟢 -3.01 MB 🟢 -633 kB 🟢 -481 kB
assets/index-D_nKzCqd.js (new) 193 kB 🔴 +193 kB 🔴 +42.1 kB 🔴 +35.1 kB
assets/index-Cfps1V_z.js (removed) 193 kB 🟢 -193 kB 🟢 -42 kB 🟢 -35 kB
assets/index-BncAMMb8.js (removed) 345 B 🟢 -345 B 🟢 -242 B 🟢 -208 B
assets/index-BPapmG2b.js (new) 345 B 🔴 +345 B 🔴 +242 B 🔴 +209 B

Status: 3 added / 3 removed

Graph Workspace — 1000 kB (baseline 1000 kB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-Ckdd5S60.js (removed) 1000 kB 🟢 -1000 kB 🟢 -194 kB 🟢 -148 kB
assets/GraphView-DyG6-ewU.js (new) 1000 kB 🔴 +1000 kB 🔴 +194 kB 🔴 +148 kB

Status: 1 added / 1 removed

Views & Navigation — 6.63 kB (baseline 6.63 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-CpuelE89.js (new) 6.63 kB 🔴 +6.63 kB 🔴 +2.14 kB 🔴 +1.9 kB
assets/UserSelectView-DcGcLwGT.js (removed) 6.63 kB 🟢 -6.63 kB 🟢 -2.15 kB 🟢 -1.9 kB

Status: 1 added / 1 removed

Panels & Settings — 300 kB (baseline 300 kB) • ⚪ 0 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-B0rPugn2.js (new) 22.7 kB 🔴 +22.7 kB 🔴 +5.25 kB 🔴 +4.6 kB
assets/LegacyCreditsPanel-BjTRQBq1.js (removed) 22.7 kB 🟢 -22.7 kB 🟢 -5.26 kB 🟢 -4.6 kB
assets/KeybindingPanel-Dqq-ITrC.js (new) 14.8 kB 🔴 +14.8 kB 🔴 +3.57 kB 🔴 +3.12 kB
assets/KeybindingPanel-LAkPRFfZ.js (removed) 14.8 kB 🟢 -14.8 kB 🟢 -3.57 kB 🟢 -3.13 kB
assets/ExtensionPanel-6DmkYqxV.js (removed) 11.1 kB 🟢 -11.1 kB 🟢 -2.62 kB 🟢 -2.3 kB
assets/ExtensionPanel-DsXdsRIs.js (new) 11.1 kB 🔴 +11.1 kB 🔴 +2.62 kB 🔴 +2.29 kB
assets/AboutPanel-BhFYTMqY.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/AboutPanel-CUJ9UhUD.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/ServerConfigPanel-CIuzQ7PZ.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +2.04 kB 🔴 +1.81 kB
assets/ServerConfigPanel-DJsvO6CM.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -2.05 kB 🟢 -1.81 kB
assets/UserPanel-BGBsMjnd.js (removed) 6.88 kB 🟢 -6.88 kB 🟢 -1.79 kB 🟢 -1.57 kB
assets/UserPanel-CwS3XzPI.js (new) 6.88 kB 🔴 +6.88 kB 🔴 +1.79 kB 🔴 +1.56 kB
assets/settings-AN2JfZVQ.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BIdKi-OT.js 26.2 kB 26.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Bu3OR-lX.js 24.6 kB 24.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-ByL6gy5c.js 25.4 kB 25.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CjlRFMdL.js 32.8 kB 32.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DkGwvylK.js 26.9 kB 26.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Dyd027Dx.js 24.7 kB 24.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-wwBxqLH5.js 21.3 kB 21.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-xx2Yb6R2.js 23.8 kB 23.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 199 kB (baseline 199 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-B4wrtPc4.js (removed) 59.9 kB 🟢 -59.9 kB 🟢 -12.4 kB 🟢 -10.8 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DchZ_je5.js (new) 59.9 kB 🔴 +59.9 kB 🔴 +12.4 kB 🔴 +10.8 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-CFWLlXK4.js (new) 56.4 kB 🔴 +56.4 kB 🔴 +8.9 kB 🔴 +7.59 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-CYvmaeRt.js (removed) 56.4 kB 🟢 -56.4 kB 🟢 -8.9 kB 🟢 -7.59 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CP7LsYiT.js (new) 48.8 kB 🔴 +48.8 kB 🔴 +10.5 kB 🔴 +9.14 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-D0OUuujA.js (removed) 48.8 kB 🟢 -48.8 kB 🟢 -10.5 kB 🟢 -9.13 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CAEF0Kb6.js (new) 14.3 kB 🔴 +14.3 kB 🔴 +3.74 kB 🔴 +3.28 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-Qy_eIKKZ.js (removed) 14.3 kB 🟢 -14.3 kB 🟢 -3.73 kB 🟢 -3.29 kB
assets/ComfyQueueButton-2UamM4lj.js (removed) 8.83 kB 🟢 -8.83 kB 🟢 -2.57 kB 🟢 -2.29 kB
assets/ComfyQueueButton-BUA3hMg0.js (new) 8.83 kB 🔴 +8.83 kB 🔴 +2.58 kB 🔴 +2.29 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-BzUC_gjS.js (new) 3.72 kB 🔴 +3.72 kB 🔴 +1.46 kB 🔴 +1.32 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-Ckyanoc_.js (removed) 3.72 kB 🟢 -3.72 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetButton-B3628knh.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -999 B 🟢 -895 B
assets/WidgetButton-scZI4ANx.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +996 B 🔴 +896 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CU1FPVr_.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -890 B 🟢 -764 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-DqR_2jrg.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +888 B 🔴 +766 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-Bu9LRkf7.js (removed) 897 B 🟢 -897 B 🟢 -504 B 🟢 -461 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-CKVQCAAf.js (new) 897 B 🔴 +897 B 🔴 +501 B 🔴 +442 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-3ve79e_P.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 9 added / 9 removed

Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService-BpraE2Ic.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.57 kB
assets/keybindingService-DEYrDI0k.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.57 kB
assets/audioService-D1uNVcfH.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -960 B 🟢 -825 B
assets/audioService-Ddcsj1XP.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +958 B 🔴 +820 B
assets/serverConfigStore-ClbvVDb_.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

Utilities & Hooks — 1.41 kB (baseline 1.41 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-Bozo99j8.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +547 B
assets/audioUtils-DCBJfR1_.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -652 B 🟢 -542 B

Status: 1 added / 1 removed

Vendor & Third-Party — 9.1 MB (baseline 9.1 MB) • ⚪ 0 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-ByLwKL2Y.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-DdEHkzYa.js 3.86 MB 3.86 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-DmDWdkDd.js 1.95 MB 1.95 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-DYL0ZbEr.js 2.02 MB 2.02 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-B76LFN34.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-BIRc7P93.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BF8peZ5_.js 420 kB 420 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.47 MB (baseline 3.47 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-BxB-J_Og.js (removed) 28.5 kB 🟢 -28.5 kB 🟢 -6.29 kB 🟢 -5.46 kB
assets/SubscriptionRequiredDialogContent-DTtYN6c1.js (new) 28.5 kB 🔴 +28.5 kB 🔴 +6.3 kB 🔴 +5.47 kB
assets/WidgetRecordAudio-CQMKGSBV.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.24 kB 🔴 +4.63 kB
assets/WidgetRecordAudio-mrUPuUxI.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.24 kB 🟢 -4.64 kB
assets/AudioPreviewPlayer-CK_hEh9w.js (removed) 13.3 kB 🟢 -13.3 kB 🟢 -3.35 kB 🟢 -3.01 kB
assets/AudioPreviewPlayer-Lm-Ih3_W.js (new) 13.3 kB 🔴 +13.3 kB 🔴 +3.35 kB 🔴 +3 kB
assets/ValueControlPopover-Dfz5mxNP.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.71 kB 🟢 -1.51 kB
assets/ValueControlPopover-iB6B7Jpc.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.71 kB 🔴 +1.52 kB
assets/WidgetGalleria-B1VIRFNF.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetGalleria-VeR9MIzj.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.3 kB
assets/WidgetColorPicker-CgHhbOpF.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-DvLcY0sK.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetTextarea-BtBs287u.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.22 kB 🟢 -1.07 kB
assets/WidgetTextarea-Cl_AzsQC.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.22 kB 🔴 +1.07 kB
assets/WidgetMarkdown-BPBh0xj-.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetMarkdown-DSRmyo-i.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetAudioUI-BGM2x9wO.js (new) 2.89 kB 🔴 +2.89 kB 🔴 +1.17 kB 🔴 +1.06 kB
assets/WidgetAudioUI-Dgq5xpXq.js (removed) 2.89 kB 🟢 -2.89 kB 🟢 -1.17 kB 🟢 -1.06 kB
assets/WidgetInputText-BQtGCTye.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +922 B 🔴 +859 B
assets/WidgetInputText-BQy89--Y.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -922 B 🟢 -857 B
assets/WidgetToggleSwitch-BDFO7ezY.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +835 B 🔴 +735 B
assets/WidgetToggleSwitch-DXwrrdq1.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -834 B 🟢 -735 B
assets/MediaImageBottom-BFYMAETv.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +733 B 🔴 +639 B
assets/MediaImageBottom-DUG6iOM7.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -733 B 🟢 -638 B
assets/MediaAudioBottom-CawIVYFR.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +734 B 🔴 +645 B
assets/MediaAudioBottom-D98aPzRD.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -733 B 🟢 -643 B
assets/Media3DBottom-CynI93Re.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +647 B
assets/Media3DBottom-SVpn6TuN.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -732 B 🟢 -642 B
assets/MediaVideoBottom-C-mBGw2e.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +732 B 🔴 +643 B
assets/MediaVideoBottom-CxDJL7Us.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -733 B 🟢 -643 B
assets/Media3DTop-BDwcXYTm.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -769 B 🟢 -652 B
assets/Media3DTop-CWbvFgqF.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +768 B 🔴 +649 B
assets/WidgetSelect-CisUS06V.js (removed) 733 B 🟢 -733 B 🟢 -362 B 🟢 -306 B
assets/WidgetSelect-DJ8ivAFG.js (new) 733 B 🔴 +733 B 🔴 +361 B 🔴 +305 B
assets/WidgetInputNumber-C8-sCLew.js (new) 673 B 🔴 +673 B 🔴 +349 B 🔴 +290 B
assets/WidgetInputNumber-DbryQvRa.js (removed) 673 B 🟢 -673 B 🟢 -347 B 🟢 -282 B
assets/Load3D-CCNWNkVp.js (new) 424 B 🔴 +424 B 🔴 +268 B 🔴 +224 B
assets/Load3D-DQu-Vghs.js (removed) 424 B 🟢 -424 B 🟢 -266 B 🟢 -228 B
assets/WidgetLegacy-BpaXHIDa.js (new) 364 B 🔴 +364 B 🔴 +237 B 🔴 +225 B
assets/WidgetLegacy-YLx_reCm.js (removed) 364 B 🟢 -364 B 🟢 -237 B 🟢 -194 B
assets/commands-bTEY9Mp6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BWp4HdfU.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CcfGaui5.js 14.4 kB 14.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CisfgZf5.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CkU12Foh.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CoH2DJa6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-COSt-Bjx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DalfIW5f.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DfTl0eCm.js 13.5 kB 13.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwSJL865.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Bdc58rJq.js 97.1 kB 97.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BRKE6VDs.js 91 kB 91 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-C9ZJBRdI.js 81.5 kB 81.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CAL83XT3.js 84.6 kB 84.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CHLLfvpG.js 82.4 kB 82.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DDqR5EuX.js 71.3 kB 71.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DLHyaEcz.js 92.1 kB 92.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-O7KfJeMO.js 79.9 kB 79.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-OzGsrlqJ.js 112 kB 112 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-CgldzfMV.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-BmT4ess7.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-DrDqLo2M.js 2.65 kB 2.65 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-aW9En70v.js 260 kB 260 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BIckSVgU.js 273 kB 273 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BiYpVi7D.js 263 kB 263 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CCEXtYfM.js 243 kB 243 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CvmVDWYd.js 323 kB 323 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-D_wreoPJ.js 267 kB 267 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DIAYlJwM.js 246 kB 246 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Dz-0ZIBN.js 297 kB 297 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-VZsNmhG7.js 264 kB 264 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-DE0SfMVO.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-Bvg3Od2A.js 3.18 kB 3.18 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 20 added / 20 removed

Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and definitely we should solve this. Question: would it also be solveable by updating Impact-Pack to use the modern APIs like the commands system?

init() {
// Set up ComfyApp static methods for plugin compatibility (deprecated)
ComfyApp.open_maskeditor = openMaskEditorFromClipspace
ComfyApp.maskeditor_is_opended = isOpened
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, not typo, it comes from original design before I refactored, see image

@jtydhr88
Copy link
Collaborator Author

This looks good and definitely we should solve this. Question: would it also be solveable by updating Impact-Pack to use the modern APIs like the commands system?

I prefer to fix on our side fro now, because we don't know is any other custom nodes using these (deprecated) apis

brucew4yn3rp
brucew4yn3rp previously approved these changes Dec 28, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 30, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 57c9b20 and bad7c6b.

📒 Files selected for processing (1)
  • src/extensions/core/maskeditor.ts
🧰 Additional context used
📓 Path-based instructions (7)
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/extensions/core/maskeditor.ts
src/**/*.ts

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.ts: Use es-toolkit for utility functions
Use TypeScript for type safety

Files:

  • src/extensions/core/maskeditor.ts
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/extensions/core/maskeditor.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/extensions/core/maskeditor.ts
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Use TypeScript exclusively; do not write new JavaScript code
Use sorted and grouped imports organized by plugin/source
Enforce ESLint rules including Vue + TypeScript rules, disallow floating promises, disallow unused imports, and restrict i18n raw text in templates
Do not use any type or as any type assertions; fix the underlying type issue instead
Write code that is expressive and self-documenting; avoid redundant comments and clean as you go
Keep functions short and functional; minimize nesting and follow the arrow anti-pattern
Avoid mutable state; prefer immutability and assignment at point of declaration
Use function declarations instead of function expressions when possible
Use es-toolkit for utility functions
Implement proper error handling in code

Files:

  • src/extensions/core/maskeditor.ts
**/*.{ts,tsx,vue,js,jsx,json,css}

📄 CodeRabbit inference engine (AGENTS.md)

Apply Prettier formatting with 2-space indentation, single quotes, no trailing semicolons, and 80-character line width

Files:

  • src/extensions/core/maskeditor.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Minimize the surface area (exported values) of each module and composable

Files:

  • src/extensions/core/maskeditor.ts
🧠 Learnings (4)
📚 Learning: 2025-12-09T03:39:54.501Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7169
File: src/platform/remote/comfyui/jobs/jobTypes.ts:1-107
Timestamp: 2025-12-09T03:39:54.501Z
Learning: In the ComfyUI_frontend project, Zod is on v3.x. Do not suggest Zod v4 standalone validators (z.uuid, z.ulid, z.cuid2, z.nanoid) until an upgrade to Zod 4 is performed. When reviewing TypeScript files (e.g., src/platform/remote/comfyui/jobs/jobTypes.ts) validate against Zod 3 capabilities and avoid introducing v4-specific features; flag any proposal to upgrade or incorporate v4-only validators and propose staying with compatible 3.x patterns.

Applied to files:

  • src/extensions/core/maskeditor.ts
📚 Learning: 2025-12-13T11:03:11.264Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7416
File: src/stores/imagePreviewStore.ts:5-7
Timestamp: 2025-12-13T11:03:11.264Z
Learning: In the ComfyUI_frontend repository, lint rules require keeping 'import type' statements separate from non-type imports, even if importing from the same module. Do not suggest consolidating them into a single import statement. Ensure type imports remain on their own line (import type { ... } from 'module') and regular imports stay on separate lines.

Applied to files:

  • src/extensions/core/maskeditor.ts
📚 Learning: 2025-12-17T00:40:09.635Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: src/components/ui/button/Button.stories.ts:45-55
Timestamp: 2025-12-17T00:40:09.635Z
Learning: Prefer pure function declarations over function expressions (e.g., use function foo() { ... } instead of const foo = () => { ... }) for pure functions in the repository. Function declarations are more functional-leaning, offer better hoisting clarity, and can improve readability and tooling consistency. Apply this guideline across TypeScript files in Comfy-Org/ComfyUI_frontend, including story and UI component code, except where a function expression is semantically required (e.g., callbacks, higher-order functions with closures).

Applied to files:

  • src/extensions/core/maskeditor.ts
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/extensions/core/maskeditor.ts
🧬 Code graph analysis (1)
src/extensions/core/maskeditor.ts (1)
src/scripts/app.ts (1)
  • ComfyApp (124-1763)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: collect
  • GitHub Check: test
🔇 Additional comments (2)
src/extensions/core/maskeditor.ts (2)

4-4: LGTM: Import change is correct.

The addition of ComfyApp to the import is appropriate since it's used both as a type annotation (line 26) and as a value (line 96) for the compatibility bridge.


94-102: Verify compatibility with Impact-Pack plugin.

Since this change specifically aims to restore compatibility with the Impact-Pack plugin (addressing issues #1165, #1158, #1157), please ensure this has been tested with the actual plugin workflow described in the linked issues.

Test the following workflow:

  1. Install ComfyUI-Impact-Pack plugin
  2. Load a Preview Bridge (Image) node from Impact-Pack
  3. Run an image into it
  4. Attempt to open the mask editor
  5. Verify that the mask editor opens successfully without errors

If possible, also verify that the ClipspaceDialog properly registers the MaskEditor button as mentioned in the PR description.

@christian-byrne christian-byrne added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch core/1.36 Backport PRs for core 1.36 cloud/1.36 Backport PRs for cloud 1.36 labels Dec 30, 2025
@christian-byrne christian-byrne merged commit 27caaa3 into main Dec 30, 2025
42 checks passed
@christian-byrne christian-byrne deleted the impact-pack-maskeditor branch December 30, 2025 05:21
github-actions bot pushed a commit that referenced this pull request Dec 30, 2025
github-actions bot pushed a commit that referenced this pull request Dec 30, 2025
@comfy-pr-bot
Copy link
Member

@jtydhr88 Successfully backported to #7800

@comfy-pr-bot
Copy link
Member

@jtydhr88 Successfully backported to #7801

@github-actions github-actions bot removed the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Dec 30, 2025
christian-byrne pushed a commit that referenced this pull request Dec 30, 2025
…ct-Pack plugin (#7800)

Backport of #7762 to `core/1.36`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7800-backport-core-1-36-fix-restore-mask-editor-compatibility-with-Impact-Pack-plugin-2d96d73d365081429479ffcf2e2b5181)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <[email protected]>
christian-byrne pushed a commit that referenced this pull request Dec 30, 2025
…act-Pack plugin (#7801)

Backport of #7762 to `cloud/1.36`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7801-backport-cloud-1-36-fix-restore-mask-editor-compatibility-with-Impact-Pack-plugin-2d96d73d36508190b073e683e4f08f2b)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <[email protected]>
@zslefour
Copy link

I use ComfyUI_windows_portable_nvidia_cu128.7z v0.6.0 packge, update comfyui-frontend-package to 1.37.0 , Impact-Pack Preview Bridge still unable to open mask edit .

@flyingshutter
Copy link

@zslefour confirmed. Today I tried with v1.37.1 and mask editor works.
The pull request was merged after v1.37.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cloud/1.36 Backport PRs for cloud 1.36 core/1.36 Backport PRs for core 1.36 size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preview Bridge (Image) from Impact pack Broken

8 participants