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,7 @@
from __future__ import annotations
from pathlib import Path
def get_PyInstaller_tests():
return [str(Path(__file__).parent)]

View File

@@ -0,0 +1,37 @@
from __future__ import annotations
import subprocess
from PyInstaller import __main__ as pyi_main
# Test out the package by importing it, then running functions from it.
def test_pyi_hooksample(tmp_path):
app_name = "userapp"
workpath = tmp_path / "build"
distpath = tmp_path / "dist"
app = tmp_path / (app_name + ".py")
app.write_text(
"\n".join(
[
"import rapidfuzz",
"from rapidfuzz.distance import metrics_py",
"from rapidfuzz.distance import metrics_cpp",
"rapidfuzz.distance.Levenshtein.distance('test', 'teste')",
"metrics_py.levenshtein_distance('test', 'teste')",
"metrics_cpp.levenshtein_distance('test', 'teste')",
]
)
)
args = [
# Place all generated files in ``tmp_path``.
"--workpath",
str(workpath),
"--distpath",
str(distpath),
"--specpath",
str(tmp_path),
str(app),
]
pyi_main.run(args)
subprocess.run([str(distpath / app_name / app_name)], check=True)