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:
@@ -0,0 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 12, 4):
|
||||
# Python 3.13 should support `.pth` files encoded in UTF-8
|
||||
# See discussion in https://github.com/python/cpython/issues/77102
|
||||
PTH_ENCODING: str | None = "utf-8"
|
||||
else:
|
||||
from .py39 import LOCALE_ENCODING
|
||||
|
||||
# PTH_ENCODING = "locale"
|
||||
PTH_ENCODING = LOCALE_ENCODING
|
||||
Reference in New Issue
Block a user