fix(linear): team selector in tool input#2886
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryFixed Linear team selector in tool input by properly passing Key changes:
Impact: Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant ToolInput
participant ProjectSelector
participant Resolution
participant LinearAPI
User->>ToolInput: Select Linear team
ToolInput->>ToolInput: Create subblock with<br/>dynamic ID and canonicalParamId
ToolInput->>ProjectSelector: Pass config with canonicalParamId
ProjectSelector->>Resolution: resolveProjectSelector(subBlock)
Resolution->>Resolution: Use canonicalParamId for matching
Resolution->>Resolution: Determine selector type (team vs project)
Resolution-->>ProjectSelector: Return linear.teams key
ProjectSelector->>LinearAPI: Fetch teams
LinearAPI-->>ProjectSelector: Return teams data
ProjectSelector-->>User: Display team selector
|
There was a problem hiding this comment.
Additional Comments (2)
-
apps/sim/hooks/selectors/resolution.ts, line 89-95 (link)style: consider using
canonicalParamIdfallback for consistency with the fixedresolveProjectSelectorlogicNote: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
-
apps/sim/hooks/selectors/resolution.ts, line 122-127 (link)style: consider checking
canonicalParamIdfirst, similar to the pattern used inresolveProjectSelectorNote: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
2 files reviewed, 2 comments
Summary
Linear team selector in agent block tool input not functional.
Type of Change
Testing
Manually
Checklist