summaryrefslogtreecommitdiff
path: root/internal/executor
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-21 21:44:41 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-21 21:44:41 +0000
commit2c57f8e0b0ac637eac689a89bdf5498227b78a93 (patch)
treed35402b9c8d3430596f0d0ab037a109059c0ce81 /internal/executor
parentbb599880f9b84088c2e9ffc63b1c2e0a7e9484ff (diff)
fix: copy .claude.json (account settings) alongside credentials
ClaudeConfigDir moved from /root/.claude to credentials/claude/, but container.go was still deriving .claude.json from filepath.Dir which no longer pointed anywhere useful. Claude CLI needs .claude.json for OAuth account info or it says "Not logged in". Also update sync-credentials to copy /root/.claude.json into the credentials dir so it stays fresh alongside the token. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor')
-rw-r--r--internal/executor/container.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/executor/container.go b/internal/executor/container.go
index bfce750..5421108 100644
--- a/internal/executor/container.go
+++ b/internal/executor/container.go
@@ -161,7 +161,7 @@ func (r *ContainerRunner) Run(ctx context.Context, t *task.Task, e *storage.Exec
_ = os.WriteFile(filepath.Join(agentHome, ".claude", ".credentials.json"), srcData, 0600)
}
// settings (used by claude CLI; copy so it can write updates without hitting the host)
- if srcData, readErr := os.ReadFile(filepath.Join(filepath.Dir(r.ClaudeConfigDir), ".claude.json")); readErr == nil {
+ if srcData, readErr := os.ReadFile(filepath.Join(r.ClaudeConfigDir, ".claude.json")); readErr == nil {
_ = os.WriteFile(filepath.Join(agentHome, ".claude.json"), srcData, 0644)
}
}