Skip to content

Conversation

@krishna9358
Copy link
Contributor

Summary

Issue
Renaming inputs on an Entry Point node broke validation. While the connection arrow visually disappeared, the underlying graph kept references to the old port ID, causing "Source port not found" errors when saving.

Solution
Updated the canvas logic to detect dynamic port changes. It now automatically removes invalid edges and cleans up stale input mappings on downstream nodes whenever a port is renamed or removed.

File Changes
frontend/src/components/workflow/Canvas.tsx : Added edge validation and cleanup logic to handleUpdateNode.

Testing

  • bun run test
  • bun run lint
  • bun run typecheck
  • Additional notes:

Documentation

  • Updated the relevant doc(s) (see docs/guide.md) or checked that no updates are needed.
  • Recorded contract/architecture changes in both public docs and .ai logs when applicable.

Signed-off-by: Krishna Mohan <krishanmohank974@gmail.com>
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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.

2 participants