Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion astrbot/core/computer/computer_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import shutil
import sys
import time
import uuid
from dataclasses import dataclass
Expand All @@ -16,7 +17,7 @@
)

from .booters.base import ComputerBooter
from .booters.local import LocalBooter
from .booters.local import LocalBooter, resolve_windows_shell

session_booter: dict[str, ComputerBooter] = {}
local_booter: ComputerBooter | None = None
Expand Down Expand Up @@ -688,6 +689,11 @@ def get_local_booter() -> ComputerBooter:
global local_booter
if local_booter is None:
local_booter = LocalBooter()
if sys.platform == "win32":
logger.info(
"[Computer] Windows local runtime shell: %s",
resolve_windows_shell(),
)
return local_booter


Expand Down