Emit the document canvas from ImageCompositor for the layer editor - #15742
Emit the document canvas from ImageCompositor for the layer editor#15742jtydhr88 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (8)
🧰 Additional context used📓 Path-based instructions (6)**/*📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{py,json}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{py,md,txt,json}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**⚙️ CodeRabbit configuration file
Files:
comfy_extras/**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (4)
📝 WalkthroughWalkthrough
Merge Risk: ⚪ Minimal · up to This change reports the rendered document canvas so the layer editor can size and save composites correctly. The backend update is localized, and no actionable merge-blocking risk remains beyond the separately tracked frontend follow-up. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
The compositor only returned per-layer refs, fingerprints, and bboxes to the frontend.
When the editor opened without a matching saved state it sized its canvas to the max natural size of the layers, which is wrong for cropped and placed layers (e.g. See-through's decomposed parts): a 1280x1280 document opened as ~855x762.
Worse, saving from that state persisted the wrong canvas back into the widget, so the replayed composite was also clipped.
Report the canvas the composite was actually rendered at via ui[compositor_canvas] (the saved state's canvas on replay, otherwise the document canvas or the placed-layer extent) so the editor can size to it.
Need FE PR Comfy-Org/ComfyUI_frontend#14941
before
2026-08-19.22-50-55.mp4
after
2026-08-19.23-12-04.mp4