sync update from LAN repo (source dhk-1 @ 3e87be55)

This commit is contained in:
gozeros committed 2026-10-21 15:06:08 +08:00
1 parent ab6068a7c1
commit 42f2a26fa8
1482 files changed
+227759 -9584

No files matched your search

@@ -103,6 +103,12 @@ def resolve_path_user_id(thread_id: str | None) -> str:
return get_effective_user_id()
def remember_thread_owner(thread_id: str, owner: str) -> None:
"""Cache a discovered thread owner for subsequent filesystem lookups."""
if thread_id and owner and not _is_local_only_thread(thread_id):
_cache_put(thread_id, owner)
async def aresolve_path_user_id(thread_id: str | None) -> str:
"""Async variant of :func:`resolve_path_user_id` for FastAPI handlers."""
if not thread_id or _is_local_only_thread(thread_id):