fix(agent): make tag metadata searchable and sortable in agent list (#18313)

This commit is contained in:
peewee92
2026-08-18 17:17:03 +08:00
committed by GitHub
parent b2baddfe77
commit 89f3611248
3 changed files with 80 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ class UserCanvasService(CommonService):
.join(User, on=(cls.model.user_id == User.id))
.where(
owner_filter,
(fn.LOWER(cls.model.title).contains(keywords.lower())),
(fn.LOWER(cls.model.title).contains(keywords.lower()) | fn.LOWER(cls.model.tags).contains(keywords.lower())),
)
)
else: