fix(core): run state sync before docker compose up to prevent broken bind mounts#159
Closed
konard wants to merge 3 commits intoProverCoderAI:mainfrom
Closed
fix(core): run state sync before docker compose up to prevent broken bind mounts#159konard wants to merge 3 commits intoProverCoderAI:mainfrom
konard wants to merge 3 commits intoProverCoderAI:mainfrom
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: ProverCoderAI#158
Contributor
Author
🚨 Solution Draft FailedThe automated solution draft encountered an error: 🤖 Models used:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
|
🤖 AI Work Session Started Starting automated work session at 2026-03-18T16:39:11.895Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. |
…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 ProverCoderAI#158 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit ec93a48.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #158
autoSyncState()ran afterdocker compose up, performinggit reset --hardwhich replaces directory inodes. The bind mount for.orch/auth/codex→/home/dev/.codexthen pointed to a deleted inode, leaving the container with an emptyCODEX_HOME.codexinside the container fails withError loading configuration: No such file or directoryautoSyncState()to run beforerunDockerUpIfNeeded()so bind mount source directories are stable when the container starts.Математические гарантии
Инварианты:
∀ bind_mount ∈ DockerCompose: source_inode(bind_mount) = stable_inode(bind mount sources must not be replaced after container start)autoSyncState(msg) → state_synced(msg) ∧ ¬container_running(state sync completes before any container starts)Предусловия:
prepareProjectFiles()Постусловия:
∀ codex_container: /home/dev/.codex/config.toml exists ∧ readableTest plan
pnpm run check)pnpm testin packages/lib)docker-git clone <repo> --force→ codex starts without "No such file or directory" errorThis PR was created by the AI issue solver