fix: chown the whole coyote cache dir not just the oauth dir in the sandbox
CI / All (ubuntu-latest) (push) Failing after 25s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-22 09:48:11 -06:00
parent 50ff9008fe
commit 3f94d2003a
+2 -1
View File
@@ -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",