- 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>
14 lines
418 B
Python
14 lines
418 B
Python
try:
|
|
from fastapi_cli.cli import main as cli_main
|
|
|
|
except ImportError: # pragma: no cover
|
|
cli_main = None # type: ignore
|
|
|
|
|
|
def main() -> None:
|
|
if not cli_main: # type: ignore[truthy-function]
|
|
message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
|
|
print(message)
|
|
raise RuntimeError(message) # noqa: B904
|
|
cli_main()
|