Commit da75451
fix: use claude_config_dir to store .claude.json inside .claude directory (#448)
Instead of mounting .claude.json as a separate file (which causes Docker
to create it as a directory), we use CLAUDE_CONFIG_DIR environment
variable to tell Claude Code to store .claude.json inside the .claude
directory.
This solves the problem permanently because:
1. We only mount one directory (.claude/) instead of a file + directory
2. Claude Code auto-creates .claude.json when needed inside .claude/
3. Everything is persistent since .claude/ is mounted from host
4. No Docker file mount issues since we're not mounting a file
Changes:
- Add CLAUDE_CONFIG_DIR=/home/vscode/.claude environment variable
- Remove .claude.json file mount (only mount .claude/ directory now)
- Remove .claude.json file creation code (Claude creates it automatically)
- Remove local_file resource (no longer needed)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Mohsin Hashmi <mhashmi@wiser.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 3e7a86a commit da75451
2 files changed
Lines changed: 14 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 77 | + | |
| 78 | + | |
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
| |||
237 | 230 | | |
238 | 231 | | |
239 | 232 | | |
240 | | - | |
| 233 | + | |
241 | 234 | | |
242 | 235 | | |
243 | 236 | | |
| |||
391 | 384 | | |
392 | 385 | | |
393 | 386 | | |
394 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
395 | 390 | | |
396 | 391 | | |
397 | 392 | | |
| |||
416 | 411 | | |
417 | 412 | | |
418 | 413 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
427 | 417 | | |
428 | 418 | | |
429 | 419 | | |
| |||
518 | 508 | | |
519 | 509 | | |
520 | 510 | | |
521 | | - | |
| 511 | + | |
522 | 512 | | |
523 | 513 | | |
524 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 157 | + | |
161 | 158 | | |
162 | 159 | | |
163 | 160 | | |
| |||
0 commit comments