mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix(docker): pre-create ~/.claude.json in the agent base image
Claude Code prints "configuration file not found at ~/.claude.json" (3x) at startup when that sibling file is absent. The orchestrator only bind-mounts the host copy when it exists, and delivery agents (unlike intake/secretary, which pre-create it in Python) launch the CLI directly with no wrapper — so when the host file is gone the warning floods every agent's logs. Pre-create an empty {} config in the image; the host mount still overrides it when present and the CLI self-heals the file.
This commit is contained in:
@@ -81,6 +81,12 @@ USER agent
|
||||
# a per-agent sandbox that only mounts its own workspace.
|
||||
RUN git config --global --add safe.directory '*'
|
||||
|
||||
# Claude Code reads ~/.claude.json (a sibling FILE, not under ~/.claude/). The
|
||||
# orchestrator bind-mounts the host's copy over this when it exists; pre-create
|
||||
# an empty config so that when it doesn't, the CLI no longer logs "configuration
|
||||
# file not found" (3x) at every agent start (audit D-48). The CLI self-heals it.
|
||||
RUN echo '{}' > /home/agent/.claude.json
|
||||
|
||||
# PYTHONUNBUFFERED: flush stdout/stderr immediately so the SDK driver's logs
|
||||
# (e.g. the intake agent's turn-received / streamed lines) reach `docker logs` in
|
||||
# real time instead of block-buffering until the container is reaped.
|
||||
|
||||
Reference in New Issue
Block a user