[backport core/1.39] fix: resolve ImageCrop input image through subgraph nodes#8946
Conversation
## Summary When ImageCrop's input comes from a subgraph node, getInputNode returns the subgraph node itself which has no image outputs. Use resolveSubgraphOutputLink to trace through to the actual source node (e.g. LoadImage) inside the subgraph. Use canvas.graph (the currently active graph/subgraph) as the primary lookup, falling back to rootGraph. When the ImageCrop node is inside a subgraph, rootGraph cannot find it since it only contains root-level nodes. ## Screenshots (if applicable) before https://github.com/user-attachments/assets/c3995f7c-6bcd-41fe-bc41-cfd87f9be94a after https://github.com/user-attachments/assets/ac660f58-6e6a-46ad-a441-84c7b88d28e2 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8899-fix-resolve-ImageCrop-input-image-through-subgraph-nodes-3086d73d36508172a759d7747190591f) by [Unito](https://www.unito.io)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Playwright: ✅ 525 passed, 0 failed · 1 flaky 📊 Browser Reports
|
🎨 Storybook Build Status✅ Build completed successfully! ⏰ Completed at: 02/18/2026, 12:58:08 AM UTC 🔗 Links🎉 Your Storybook is ready for review! |
Backport of #8899 to
core/1.39Automatically created by backport workflow.
┆Issue is synchronized with this Notion page by Unito