fix: mirror skills for read-only sandbox

This commit is contained in:
Peter Steinberger
2026-01-11 04:24:11 +01:00
parent 29884f8d6f
commit 7660a78330
3 changed files with 163 additions and 2 deletions

View File

@@ -1313,7 +1313,7 @@ export async function resolveSandboxContext(params: {
agentWorkspaceDir,
params.config?.agents?.defaults?.skipBootstrap,
);
if (cfg.workspaceAccess === "none") {
if (cfg.workspaceAccess !== "rw") {
try {
await syncSkillsToWorkspace({
sourceWorkspaceDir: agentWorkspaceDir,
@@ -1391,7 +1391,7 @@ export async function ensureSandboxWorkspaceForSession(params: {
agentWorkspaceDir,
params.config?.agents?.defaults?.skipBootstrap,
);
if (cfg.workspaceAccess === "none") {
if (cfg.workspaceAccess !== "rw") {
try {
await syncSkillsToWorkspace({
sourceWorkspaceDir: agentWorkspaceDir,