Will Miao
a0a5b13ab0
fix(metadata): keep the saved trigger-word order on refresh
...
`civitai.trainedWords` is an ordered array, and the order is what gets
pasted into a prompt: "Copy Trigger Words" and the insert-into-node
action join it as-is. The refresh merge unioned the stored words with the
freshly fetched ones via `list(set(...))`, so any metadata refresh
silently shuffled a user's ordering into an arbitrary one. Now that the
UI exposes reordering, that would look like the feature losing the change
at random.
Merge in order instead: stored words first (in their saved order), then
newly discovered ones, duplicates dropped. `_merge_ordered_unique` keeps
the behaviour easy to assert, and the existing merge test keeps passing
because it compares the result as a set.
2026-09-16 08:23:13 +08:00
..
2026-02-27 19:19:16 +08:00
2026-09-02 14:33:44 +08:00
2026-09-14 21:24:57 +08:00
2026-09-11 08:14:14 +08:00
2026-09-01 21:14:30 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-14 20:39:10 +08:00
2026-08-23 21:09:16 +08:00
2026-08-27 10:08:32 +08:00
2026-08-08 20:12:59 +08:00
2026-03-18 21:10:56 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-11 23:03:24 +08:00
2026-08-08 20:12:59 +08:00
2026-08-27 07:58:48 +08:00
2026-08-08 20:12:59 +08:00
2026-09-06 22:23:48 +08:00
2026-08-28 22:24:07 +08:00
2026-09-15 09:07:56 +08:00
2026-08-27 07:58:48 +08:00
2026-04-20 15:54:30 +08:00
2025-10-13 21:30:23 +08:00
2026-08-08 15:20:43 +08:00
2026-09-06 22:23:48 +08:00
2026-08-08 20:12:59 +08:00
2026-08-29 11:31:16 +08:00
2026-09-13 11:30:57 +08:00
2026-08-25 08:19:54 +08:00
2026-09-12 15:56:47 +08:00
2026-08-25 17:38:09 +08:00
2026-03-26 18:00:04 +08:00
2026-08-22 19:33:01 +08:00
2026-02-03 21:32:15 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-12 15:56:47 +08:00
2026-04-12 20:29:01 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-14 10:27:33 +08:00
2026-05-26 06:02:17 +08:00
2025-11-29 08:13:55 +08:00
2026-08-08 20:12:59 +08:00
2026-09-16 08:23:13 +08:00
2025-10-18 21:19:09 +08:00
2026-08-19 17:51:31 +08:00
2026-09-15 20:10:36 +08:00
2026-09-01 21:14:30 +08:00
2026-08-11 21:15:59 +08:00
2026-09-06 22:23:48 +08:00
2026-08-23 10:09:55 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-02-02 08:30:59 +08:00
2026-09-15 20:10:36 +08:00
2025-10-11 22:42:24 +08:00
2026-08-03 15:02:49 +08:00
2026-09-14 21:27:09 +08:00
2026-08-25 20:36:46 +08:00
2026-08-08 20:12:59 +08:00
2026-09-13 07:59:28 +08:00
2026-08-27 19:32:17 +08:00
2026-08-08 20:12:59 +08:00
2026-09-14 21:35:35 +08:00
2026-08-08 20:12:59 +08:00
2026-08-27 10:08:32 +08:00
2026-08-31 10:01:18 +08:00
2026-01-22 10:25:03 +08:00
2026-08-30 16:28:41 +08:00
2026-08-24 17:23:20 +08:00
2026-08-27 19:32:17 +08:00
2026-08-25 17:38:17 +08:00
2026-09-13 07:59:28 +08:00
2026-08-31 10:01:18 +08:00
2025-10-24 15:17:12 +08:00
2026-09-15 09:07:56 +08:00
2026-09-02 22:01:44 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-12 11:25:51 +08:00
2026-08-08 20:12:59 +08:00
2026-09-13 20:12:49 +08:00
2026-07-04 14:06:50 +08:00
2026-08-08 20:12:59 +08:00
2026-05-20 22:48:44 +08:00
2026-02-05 22:36:30 +08:00
2026-08-08 20:12:59 +08:00
2026-09-05 16:56:20 +08:00
2026-07-26 18:33:31 +08:00