From 3f94d2003ad96cb2fba508905dbd81f95e7ee43e Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 22 Jul 2026 09:48:11 -0600 Subject: [PATCH] fix: chown the whole coyote cache dir not just the oauth dir in the sandbox --- src/sandbox/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs index 9f8856c..ca6e8c1 100644 --- a/src/sandbox/mod.rs +++ b/src/sandbox/mod.rs @@ -390,6 +390,7 @@ fn copy_host_files(name: &str) -> Result<()> { let oauth_tokens_dir = paths::oauth_tokens_dir(); if oauth_tokens_dir.exists() { + let sandbox_cache_dir = "/home/agent/.cache/coyote"; let sandbox_oauth_dir = "/home/agent/.cache/coyote/oauth"; ensure_sandbox_dir(name, sandbox_oauth_dir)?; let dest = format!("{name}:{sandbox_oauth_dir}/"); @@ -400,7 +401,7 @@ fn copy_host_files(name: &str) -> Result<()> { let path = entry.path(); sbx_cp(&path.display().to_string(), &dest)?; } - chown_agent_recursive(name, sandbox_oauth_dir)?; + chown_agent_recursive(name, sandbox_cache_dir)?; } else { debug!( "Skipping OAuth token copy: {} does not exist",