Repository navigation
FIX: Add the tags of every tag input in actions - #328
Merged
angusmcleod merged 3 commits intoNov 7, 2026
Merged
angusmcleod merged 3 commits into
angusmcleod merged 3 commits into
Conversation
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
approved these changes
Nov 7, 2026
Member
|
Thanks mate |
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The admin wizard editor lets you add several inputs to an action's tags, e.g. a tag field plus a fixed tag:
step_1_field_3(a tag field)best-practiceaction_tagsruns the mapper withoutmultiple, 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_tagsruns the mapper withopts: { multiple: true }, like other mapper settings inactvalues, and passes the combined output toTagSearch.tag_names, which already flattens anddeduplicates. This applies tocreate_topic,watch_tagsandopen_composer, which all useaction_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_topicspec with a tag field input plus a text input. Both tags end up on the top