fix workflow run dead state after diagnostics back nav (#4776)

Co-authored-by: Suchintan Singh <suchintan@skyvern.com>
This commit is contained in:
Suchintan
2026-02-17 23:11:58 -05:00
committed by GitHub
parent c3856f698b
commit fd8c33e0af
2 changed files with 9 additions and 1 deletions

View File

@@ -70,7 +70,9 @@ function TaskDetails() {
const { data: workflowRun, isLoading: workflowRunIsLoading } =
useQuery<WorkflowRunStatusApiResponse>({
queryKey: ["workflowRun", task?.workflow_run_id],
// Keep this cache separate from workflow-run pages, which store
// a richer payload under ["workflowRun", workflowRunId].
queryKey: ["taskWorkflowRun", task?.workflow_run_id],
queryFn: async () => {
const client = await getClient(credentialGetter);
return client
@@ -110,6 +112,9 @@ function TaskDetails() {
queryClient.invalidateQueries({
queryKey: ["workflowRun", task.workflow_run_id],
});
queryClient.invalidateQueries({
queryKey: ["taskWorkflowRun", task.workflow_run_id],
});
queryClient.invalidateQueries({
queryKey: [
"workflowRun",

View File

@@ -78,6 +78,9 @@ function WorkflowRunStream(props?: Props) {
queryClient.invalidateQueries({
queryKey: ["workflowRun", workflowRunId],
});
queryClient.invalidateQueries({
queryKey: ["taskWorkflowRun", workflowRunId],
});
queryClient.invalidateQueries({
queryKey: ["workflowTasks", workflowRunId],
});