mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-11-05 00:17:25 +00:00
[PR #339] [MERGED] Improve compatibility of dynamicprompts YAML wildcards #308
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
low priority
low priority
pull-request
question
waiting for feedback
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DominikDoom/a1111-sd-webui-tagcomplete#308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/339
Author: @yak1ex
Created: 3/21/2026
Status: ✅ Merged
Merged: 3/21/2026
Merged by: @DominikDoom
Base:
main← Head:fix-prefix-for-yaml-for-dynamicprompts📝 Commits (2)
7e49257Prepend folder path to keys in dynamicprompts YAML files.9db492fTreat a single string as a collection of one item in dynamicprompts YAML files.📊 Changes
1 file changed (+10 additions, -6 deletions)
View changed files
📝
scripts/tag_autocomplete_helper.py(+10 -6)📄 Description
The current implementation for handling YAML wildcards is inconsistent with dynamicprompts in two ways:
Folder paths are prepended to tree structures in YAML.
The relevant code can be found at
github.com/adieyal/dynamicprompts@58815af851/src/dynamicprompts/wildcards/tree/build.py (L40).Only the folder component (
file_path.parent) is prepended.Single strings are parsed as collections containing a single item.
See the implementation at
github.com/adieyal/dynamicprompts@58815af851/src/dynamicprompts/wildcards/collection/structured.py (L71).This behavior is not clearly documented in dynamicprompts; I have submitted a PR to update the documentation: https://github.com/adieyal/dynamicprompts/pull/144
Example
With the YAML file above, the placeholder
__a/b/key__expands tovalue.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.