diff --git a/astrbot/core/computer/computer_client.py b/astrbot/core/computer/computer_client.py index 9be646265e..0b0264eadf 100644 --- a/astrbot/core/computer/computer_client.py +++ b/astrbot/core/computer/computer_client.py @@ -504,7 +504,8 @@ async def _sync_skills_to_sandbox(booter: ComputerBooter) -> None: for skill_name, skill_dir in sync_skill_dirs: shutil.copytree(skill_dir, bundle_root / skill_name) shutil.make_archive(str(zip_base), "zip", str(bundle_root)) - remote_zip = Path(SANDBOX_SKILLS_ROOT) / "skills.zip" + # Force forward slashes for sandbox compatibility. + remote_zip = (Path(SANDBOX_SKILLS_ROOT) / "skills.zip").as_posix() logger.info("Uploading skills bundle to sandbox...") await booter.shell.exec(f"mkdir -p {SANDBOX_SKILLS_ROOT}") upload_result = await booter.upload_file(str(zip_path), str(remote_zip))