Skip to content

docs: update for PR #40#10

Open
github-actions[bot] wants to merge 1 commit intomainfrom
docs/pr-40
Open

docs: update for PR #40#10
github-actions[bot] wants to merge 1 commit intomainfrom
docs/pr-40

Conversation

@github-actions
Copy link
Contributor

Documentation Update for PR #40

Updates changelog to document the bug fix for multiple image inputs being lost in dynamicInputs.

Changes Made

Changelog (pages/changelog.mdx)

  • Added new "Unreleased" section with fix for PR #40
  • Multiple Image Inputs bug fix entry under "Fixed" section
    • Describes the issue: multiple edges targeting same schema-mapped handle now aggregate into arrays instead of overwriting
    • Notes backward compatibility: single image connections remain as strings
    • Mentions 4 new regression tests added
    • Documents type safety improvement with dynamicInputs supporting both string and string[]

Analysis Summary

The PR fixed a critical bug where connecting multiple images to the same dynamic input handle (e.g., connecting two Image Input nodes to a single "image" handle on a fal/Replicate node) would result in only the last image being used. The fix:

  1. Store aggregation logic: Modified workflowStore.ts to accumulate values into arrays when the same schema key appears multiple times
  2. Type updates: Changed dynamicInputs type from Record<string, string> to Record<string, string | string[]> across:
    • Store interface
    • Provider types
    • API route
  3. Validation: Added guards for array handling in prompt validation
  4. Tests: 4 comprehensive regression tests covering various multi-image scenarios

This fix enables users to properly use models that accept arrays of images (e.g., image stitching, multi-image conditioning).

🤖 Generated with Claude Code

Fixed multiple image inputs lost in dynamicInputs. When multiple edges
target the same schema-mapped handle, values now aggregate into arrays
instead of overwriting.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
node-banana-docs Ready Ready Preview, Comment Jan 30, 2026 9:13am

@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

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

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.

0 participants