Fix: Resolve cross-platform path splitting bug in search (#9732)

Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
bojackli 2025-07-23 00:09:50 +08:00 committed by GitHub
parent d13e32bcec
commit f62ed911d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,9 +73,9 @@ class FileConversationStore(ConversationStore):
metadata_dir = self.get_conversation_metadata_dir()
try:
conversation_ids = [
path.split('/')[-2]
Path(path).name
for path in self.file_store.list(metadata_dir)
if not path.startswith(f'{metadata_dir}/.')
if not Path(path).name.startswith('.')
]
except FileNotFoundError:
return ConversationMetadataResultSet([])