fix(agent): show files in tool picker - #6666
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Tool picker logic is centralized in Reviewed by Cursor Bugbot for commit 09a0ddd. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR makes the current
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The picker predicate preserves previous eligibility rules while intentionally adding
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/utils.ts | Introduces an Agent-tool eligibility predicate equivalent to the previous inline filter, with the intended addition of file_v5. |
| apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx | Uses the shared predicate to populate the Agent tool picker without changing existing tool eligibility beyond exposing the current File block. |
| apps/sim/blocks/utils.ts | Replaces the hidden legacy File type with file_v5 in the picker-grouping set for built-in tools. |
| apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.test.ts | Covers inclusion of file_v5, exclusion of legacy file, and rejection of unrelated visible core blocks. |
| apps/sim/blocks/utils.test.ts | Verifies that built-in tool classification uses the current File block type rather than the legacy type. |
Reviews (1): Last reviewed commit: "fix(agent): show files in tool picker" | Re-trigger Greptile
Summary
file_v5block to the Agent tool pickerfile_v5—rather than legacyfile—as a built-in toolDynamic tools fetched from configured MCP servers use a separate picker path and are unaffected.
Type of Change
Testing
bun run lintChecklist