Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
10.78k stars 739 forks source link

Fix block label update source parameter keys issue #1135

Closed wintonzheng closed 3 weeks ago

wintonzheng commented 3 weeks ago

When block labels change, context parameters that use the output parameter of the block as source parameter should also update.

They were updating to the old label's output parameter mistakenly. This fixes that. If there is no match for the old label, the source parameter key should not update


[!IMPORTANT] Fixes incorrect context parameter updates in getUpdatedParametersAfterLabelUpdateForSourceParameterKey() and updates node type handling in getUpdatedNodesAfterLabelUpdateForParameterKeys().

  • Behavior:
    • Fixes issue in getUpdatedParametersAfterLabelUpdateForSourceParameterKey() where context parameters were incorrectly updating to old label's output parameter key.
    • Ensures source parameter key updates only if it matches the old label's output parameter key.
  • Functions:
    • Updates getUpdatedNodesAfterLabelUpdateForParameterKeys() to handle nodeAdder and start node types correctly.

This description was created by Ellipsis for 3f019924db1275935e0e2f319b57cd23650429e8. It will automatically update as commits are pushed.