Skip to content

Commit 41ed859

Browse files
waleedlatif1claude
andcommitted
fix(tool-input): auto-refresh workflow inputs after redeploy
After redeploying a child workflow via the stale badge, the workflow state cache was not invalidated, so WorkflowInputMapperInput kept showing stale input fields until page refresh. Now invalidates workflowKeys.state on deploy success. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c43f502 commit 41ed859

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/sim/hooks/queries/workflows.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,10 @@ export function useDeployChildWorkflow() {
642642
queryClient.invalidateQueries({
643643
queryKey: workflowKeys.deploymentStatus(variables.workflowId),
644644
})
645+
// Invalidate workflow state so tool input mappings refresh
646+
queryClient.invalidateQueries({
647+
queryKey: workflowKeys.state(variables.workflowId),
648+
})
645649
// Also invalidate deployment queries
646650
queryClient.invalidateQueries({
647651
queryKey: deploymentKeys.info(variables.workflowId),

0 commit comments

Comments
 (0)