fix(resolver): consolidate reference resolution #2941
Merged
icecrasher321 merged 7 commits intostagingfrom Jan 22, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryExtracted duplicate block reference resolution logic into a new Key improvements:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Handler as Block Handler
participant Collector as collectBlockData
participant Executor as Function Execute API
participant Resolver as resolveBlockReference
participant Schema as Output Schema
Handler->>Collector: collectBlockData(ctx)
Collector->>Schema: getBlockOutputs(blockType)
Schema-->>Collector: outputSchema
Collector-->>Handler: {blockData, blockNameMapping, blockOutputSchemas}
Handler->>Executor: executeTool with schemas
Executor->>Executor: resolveTagVariables()
Executor->>Resolver: resolveBlockReference(blockName, fieldPath, context)
Resolver->>Resolver: normalize blockName
Resolver->>Resolver: lookup blockId from mapping
alt Schema exists
Resolver->>Resolver: isPathInSchema(schema, pathParts)
alt Path invalid
Resolver-->>Executor: throw InvalidFieldError
else Path valid
Resolver->>Resolver: navigatePath(blockOutput, pathParts)
Resolver-->>Executor: {value, blockId}
end
else No schema
Resolver->>Resolver: navigatePath(blockOutput, pathParts)
Resolver-->>Executor: {value, blockId}
end
Executor->>Executor: Replace tag with safe variable
Executor-->>Handler: Execution result
|
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@cursor review |
waleedlatif1
added a commit
that referenced
this pull request
Jan 22, 2026
…lution consolidation, helm updates (#2946) * improvement(workflow-item): stabilize avatar layout and fix name truncation (#2939) * improvement(workflow-item): stabilize avatar layout and fix name truncation * fix(avatars): revert overflow bg to hardcoded color for contrast * fix(executor): stop parallel execution when block errors (#2940) * improvement(helm): add per-deployment extraVolumes support (#2942) * fix(gmail): expose messageId field in read email block (#2943) * fix(resolver): consolidate reference resolution (#2941) * fix(resolver): consolidate code to resolve references * fix edge cases * use already formatted error * fix multi index * fix backwards compat reachability * handle backwards compatibility accurately * use shared constant correctly * feat(router): expose reasoning output in router v2 block (#2945) * fix(copilot): always allow, credential masking (#2947) * Fix always allow, credential validation * Credential masking * Autoload * fix(executor): handle condition dead-end branches in loops (#2944) --------- Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com> Co-authored-by: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Standard system in block resolver class extracted and reused.
Function / Code resolution bugs fixed.
Other edge cases like single letter block names, and _ collisions handled.
Type of Change
Testing
Added tests + tested manually
Checklist