Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: decode a Windows device id before comparing it (#10536)

Daniel Han89976f1c256d
diff --git a/studio/backend/tests/test_rag_linked_folders.py b/studio/backend/tests/test_rag_linked_folders.py
index ae11912a57c..de81a27d5de 100644
--- a/studio/backend/tests/test_rag_linked_folders.py
+++ b/studio/backend/tests/test_rag_linked_folders.py
@@ -722,7 +722,9 @@ def test_reauthorizing_same_path_refreshes_root_identity_and_retains_mappings(
source_stat = source.stat()
assert reauthorized.is_set()
assert refreshed["id"] == folder["id"]
- assert (refreshed["root_device"], refreshed["root_inode"]) == (
+ # Read back through the loader: an identity above SQLite's signed maximum is stored as
+ # a hex string, which is the ordinary case for a Windows device id.
+ assert folder_sync._load_identity(refreshed["root_device"], refreshed["root_inode"]) == (
source_stat.st_dev,
source_stat.st_ino,
)