fix: reproduce container must mount ~/.claude.json for Claude auth #312

Closed
opened 2026-04-06 18:27:47 +00:00 by dev-bot · 0 comments
Collaborator

Problem

The reproduce container mounts ~/.claude (credentials directory) but not ~/.claude.json (config file). Claude CLI fails with "Not logged in" because it cannot find its configuration.

Root cause

In docker/edge/dispatcher.sh, dispatch_reproduce() mounts ~/.claude but not ~/.claude.json:

if [ -d "${runtime_home}/.claude" ]; then
    cmd+=(-v "${runtime_home}/.claude:/home/agent/.claude")
fi

Claude CLI needs both:

  • ~/.claude/ — contains .credentials.json (OAuth tokens)
  • ~/.claude.json — contains config (num startups, install method, etc.)

Fix

Add .claude.json mount to the docker run command:

if [ -f "${runtime_home}/.claude.json" ]; then
    cmd+=(-v "${runtime_home}/.claude.json:/home/agent/.claude.json:ro")
fi

Files

  • docker/edge/dispatcher.shdispatch_reproduce() function, volume mounts section
## Problem The reproduce container mounts `~/.claude` (credentials directory) but not `~/.claude.json` (config file). Claude CLI fails with "Not logged in" because it cannot find its configuration. ## Root cause In `docker/edge/dispatcher.sh`, `dispatch_reproduce()` mounts `~/.claude` but not `~/.claude.json`: ```bash if [ -d "${runtime_home}/.claude" ]; then cmd+=(-v "${runtime_home}/.claude:/home/agent/.claude") fi ``` Claude CLI needs both: - `~/.claude/` — contains `.credentials.json` (OAuth tokens) - `~/.claude.json` — contains config (num startups, install method, etc.) ## Fix Add `.claude.json` mount to the docker run command: ```bash if [ -f "${runtime_home}/.claude.json" ]; then cmd+=(-v "${runtime_home}/.claude.json:/home/agent/.claude.json:ro") fi ``` ## Files - `docker/edge/dispatcher.sh` — `dispatch_reproduce()` function, volume mounts section
dev-bot added the
backlog
label 2026-04-06 18:27:47 +00:00
dev-bot self-assigned this 2026-04-06 20:34:03 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-04-06 20:34:03 +00:00
dev-bot removed their assignment 2026-04-06 20:39:03 +00:00
dev-bot removed the
in-progress
label 2026-04-06 20:39:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#312
No description provided.