Skip to content

FIX: Add the tags of every tag input in actions - #328

Merged
angusmcleod merged 3 commits into
paviliondev:mainfrom
davidlippidinova:fix/action-tags-multiple-inputs
Nov 7, 2026
Merged

angusmcleod merged 3 commits into
paviliondev:mainfrom
davidlippidinova:fix/action-tags-multiple-inputs

Conversation

@sisti86dinova

Copy link
Copy Markdown
Contributor

Problem

The admin wizard editor lets you add several inputs to an action's tags, e.g. a tag field plus a fixed tag:

  • assignment → wizard field step_1_field_3 (a tag field)
  • assignment → text best-practice

action_tags runs the mapper without multiple, so it stops at the first input that produces a ags reach the topic, and the other inputs are silently ignored. We hit this on our productionwizards when we tested 2.18.8: every topic lost its fixed tags.

Change

action_tags runs the mapper with opts: { multiple: true }, like other mapper settings in actvalues, and passes the combined output to TagSearch.tag_names, which already flattens anddeduplicates. This applies to create_topic, watch_tagsandopen_composer, which all use action_tags`.

Conditional inputs now add their tags whenever their condition passes, instead of only the first passing one. If you'd rather keep "first match wins" for conditionals, I can limit the change to assignments.

Tests

Added a create_topic spec with a tag field input plus a text input. Both tags end up on the top

sisti86dinova and others added 3 commits November 6, 2026 17:43
The admin editor lets an action have several tag inputs, e.g. a tag
field plus a fixed tag, but action_tags stopped at the first input
with a value, so the others were silently ignored. Map all inputs and
combine their tags. Applies to create_topic, watch_tags and
open_composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adding up every tag input also added a trailing fallback input after a
matching conditional input. Tag inputs now add up only when they are all
assignments, so conditional inputs keep first match wins.

Combining inputs also let an unset input (false) become a "false" tag.
Tag names now skip nil and false values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DSz8MWXii43sifu8gH46aE
@angusmcleod

Copy link
Copy Markdown
Member

Thanks mate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants