Skip to content
Open
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
3 changes: 2 additions & 1 deletion astrbot/core/computer/computer_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading