From fc69697dd88b085e66ea490253af2b9578775bd2 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 19 Mar 2026 13:36:29 -0400 Subject: [PATCH] Restore history= in _create_skipped_output constructor add_dataset sets history and hid, but the HDA may enter the session before add_dataset runs. Pass history in constructor so it's never in session without a history association. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/galaxy/workflow/modules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy/workflow/modules.py b/lib/galaxy/workflow/modules.py index 08eef57e3b0..a3e9952289b 100644 --- a/lib/galaxy/workflow/modules.py +++ b/lib/galaxy/workflow/modules.py @@ -2127,6 +2127,7 @@ class PickValueModule(WorkflowModule): history = invocation.history hda = model.HistoryDatasetAssociation( name="Pick Value - skipped", + history=history, create_dataset=True, flush=False, )