Fix path separator for remote_zip in computer_client.py (#8182)

* Fix path separator for remote_zip in computer_client.py

Ensure remote_zip uses forward slashes for compatibility.

* Update astrbot/core/computer/computer_client.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update computer_client.py

* Update computer_client.py

* Update computer_client.py

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
tjc66666666
2026-09-03 14:34:49 +08:00
committed by GitHub
co-authored by gemini-code-assist[bot]
parent db0affc982
commit 077d54baaf
+2 -1
View File
@@ -514,7 +514,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))