fix(agent): tool credential dropdown#1884
Merged
icecrasher321 merged 2 commits intostagingfrom Nov 11, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryFixed tool credential dropdown behavior for tools used within agent blocks by implementing proper dependency resolution through Key changes:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Agent as Agent Block
participant ToolInput as Tool Input Component
participant Selector as File/Project/Channel Selector
participant DependsOnGate as useDependsOnGate Hook
participant Store as SubBlock Store
Agent->>ToolInput: Render tool with parameters
ToolInput->>ToolInput: Pass currentToolParams as previewContextValues
ToolInput->>Selector: Render selector with previewContextValues
Selector->>DependsOnGate: Call hook with previewContextValues
alt previewContextValues provided (tool in agent)
DependsOnGate->>DependsOnGate: Read dependency values from previewContextValues
DependsOnGate->>DependsOnGate: Normalize values (extract .value or .id)
else Normal block (no previewContextValues)
DependsOnGate->>Store: Read dependency values from store
DependsOnGate->>DependsOnGate: Normalize values
end
DependsOnGate->>DependsOnGate: Check if dependencies satisfied
DependsOnGate-->>Selector: Return finalDisabled state
Selector->>Selector: Apply additional credential checks
Selector->>Selector: Combine finalDisabled || shouldForceDisable
Selector-->>ToolInput: Render disabled/enabled selector
|
waleedlatif1
pushed a commit
that referenced
this pull request
Nov 12, 2025
* Checkpoint * Fix dropdown
waleedlatif1
pushed a commit
that referenced
this pull request
Nov 12, 2025
* Checkpoint * Fix dropdown
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
Fixes tool credential dropdown
Type of Change
Testing
Manual
Checklist