Commit 4af8b11
fix(core): run state sync before docker compose up to prevent broken bind mounts
autoSyncState does git-reset-hard which replaces directory inodes on disk.
When it ran after docker compose up, the bind mount for .orch/auth/codex
(mounted as /home/dev/.codex) pointed to a deleted inode, leaving the
container with an empty CODEX_HOME directory.
This caused codex inside the container to fail with:
"Error loading configuration: No such file or directory"
Moving autoSyncState before runDockerUpIfNeeded ensures bind mount source
directories are stable before the container starts.
Fixes #158
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ec93a48 commit 4af8b11
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
266 | 274 | | |
267 | 275 | | |
268 | 276 | | |
| |||
278 | 286 | | |
279 | 287 | | |
280 | 288 | | |
281 | | - | |
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
| |||
0 commit comments