fix: Chat search index, DMS group-share user_id, verify workflows and mail salt

- Implement CommSearchProvider: index_message(), reindex_all() with FTS + vector search
- Add migration 0035: search_tsv + embedding columns on comm_messages
- Fix DMS group-share: use current_user user_id instead of random uuid4()
- Workflows already DB-configurable (seed from onboarding.py, loaded from DB)
- Mail salt already dynamic with legacy fallback (migration 0026)
This commit is contained in:
Agent Zero
2026-07-25 03:02:41 +02:00
parent 6412eb03a8
commit b01c798739
3 changed files with 255 additions and 7 deletions
+1 -1
View File
@@ -878,7 +878,7 @@ async def share_file(
perm = Permission(
tenant_id=tenant_id,
file_id=fid,
user_id=uuid.uuid4(), # placeholder user_id for group shares
user_id=uuid.UUID(current_user["user_id"]),
group_id=gid,
access_level=body.access_level,
)