This commit is contained in:
Matthias Bernt
2026-06-01 16:32:12 +02:00
parent 5d2455f6a9
commit 4ed0118ebd
+4
View File
@@ -941,8 +941,12 @@ class DefaultToolAction(ToolAction):
for input_name in inp_data:
data = inp_data[input_name]
# Skip collection inputs and any suffixed dataset names derived from them (e.g., "datasets1", "datasets2")
if input_name in inp_dataset_collections:
continue
# Also skip if the name starts with a collection input key and the remainder is a numeric suffix
if any(input_name.startswith(key) and input_name[len(key) :].isdigit() for key in inp_dataset_collections):
continue
if getattr(data, "hid", None):
input_hids.append(data.hid)
return on_text_for_dataset_and_collections(dataset_hids=input_hids, collection_hids=collection_hids)