Fix project isolation: Make loadChatHistory respect active project sessions

- Modified loadChatHistory() to check for active project before fetching all sessions
- When active project exists, use project.sessions instead of fetching from API
- Added detailed console logging to debug session filtering
- This prevents ALL sessions from appearing in every project's sidebar

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
uroma
2026-01-22 14:43:05 +00:00
Unverified
parent b82837aa5f
commit 55aafbae9a
6463 changed files with 1115462 additions and 4486 deletions

View File

@@ -0,0 +1,33 @@
"""
rapid string matching library
"""
from __future__ import annotations
__author__: str = "Max Bachmann"
__license__: str = "MIT"
__version__: str = "3.14.3"
from rapidfuzz import distance, fuzz, process, utils
__all__ = ["distance", "fuzz", "get_include", "process", "utils"]
def get_include():
"""
Return the directory that contains the RapidFuzz \\*.h header files.
Extension modules that need to compile against RapidFuzz should use this
function to locate the appropriate include directory.
Notes
-----
When using ``distutils``, for example in ``setup.py``.
::
import rapidfuzz_capi
...
Extension('extension_name', ...
include_dirs=[rapidfuzz_capi.get_include()])
...
"""
from pathlib import Path
return str(Path(__file__).parent)