fix(agent-tool): fix workflow tool in agent to respect user-provided params, added badge for deployment status#2705
Merged
waleedlatif1 merged 3 commits intostagingfrom Jan 7, 2026
Merged
Conversation
…params, added badge for deployment status
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryFixed the workflow executor tool to handle Key changes:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Tool Input UI
participant Executor as Workflow Executor
participant API as Workflow API
participant Hook as useChildDeployment
participant Badge as Deploy Badge
Note over UI,API: Bug Fix: inputMapping Handling
UI->>Executor: Pass inputMapping as JSON string<br/>e.g., '{"name": "John"}'
Executor->>Executor: Detect typeof inputMapping === 'string'
Executor->>Executor: JSON.parse(inputMapping)
alt Parse Success
Executor->>API: POST /api/workflows/{id}/execute<br/>body: { input: {name: "John"}, ... }
else Parse Error
Executor->>API: POST /api/workflows/{id}/execute<br/>body: { input: {}, ... }
end
Note over UI,Badge: Feature: Deployment Badge
UI->>Hook: useChildDeployment(workflowId)
Hook->>API: GET /api/workflows/{id}/status
Hook->>API: GET /api/workflows/{id}/deployments
API-->>Hook: { isDeployed, needsRedeploy, activeVersion }
Hook-->>Badge: Deployment status
alt Not Deployed or Needs Redeploy
Badge->>Badge: Show "undeployed" or "redeploy" badge
Badge->>Badge: User clicks badge
Badge->>API: POST /api/workflows/{id}/deploy
API-->>Badge: Deployment success
Badge->>Hook: refetch()
Hook->>API: Refresh status
else Deployed and Up-to-date
Badge->>Badge: Hide badge
end
|
...components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx
Outdated
Show resolved
Hide resolved
Collaborator
Author
|
@greptile |
waleedlatif1
added a commit
that referenced
this pull request
Jan 8, 2026
…params, added badge for deployment status (#2705) * fix(agent-tool): fix workflow tool in agent to respect user-provided params, added badge for deployment status * ack PR comment * updated gh stars
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
Type of Change
Testing
Tested manually
Checklist
Screenshots/Videos