feat(shell): auto-pull .docker-git state on docker-git startup#179
Merged
skulidropek merged 4 commits intoProverCoderAI:mainfrom Mar 23, 2026
Merged
feat(shell): auto-pull .docker-git state on docker-git startup#179skulidropek merged 4 commits intoProverCoderAI:mainfrom
skulidropek merged 4 commits intoProverCoderAI:mainfrom
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: ProverCoderAI#178
Performs `git pull --rebase` on the ~/.docker-git directory every time the docker-git CLI is invoked, ensuring local state is always up-to-date with the remote repository before any command runs. - Adds `autoPullState` effect to state-repo that pulls with GitHub auth when available and silently logs warnings on failure - Wires auto-pull into the CLI program pipeline before command dispatch - Controllable via DOCKER_GIT_STATE_AUTO_PULL env var (enabled by default when origin remote exists, can be disabled with "false"/"0"/"off") - Extracts shared `isFeatureEnabled` predicate to deduplicate auto-pull and auto-sync env logic Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Effect-TS lint rule forbids try/catch in product code. Uses Effect.ensuring to restore env var after test assertion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit 91a9a9f.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Repository (1876KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
🔄 Auto-restart 1/3Detected uncommitted changes from previous run. Starting new session to review and commit or discard them. Uncommitted files: Auto-restart will stop after changes are committed or discarded, or after 2 more iterations. Please wait until working session will end and give your feedback. |
Contributor
Author
🔄 Auto-restart 1/3 LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (2533KB)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
git pull --rebaseon the~/.docker-gitdirectory every time thedocker-gitCLI is invoked, ensuring local state is always up-to-date with the remote repository before any command runsautoPullStateeffect tostate-repo.tsthat pulls with GitHub auth when available and silently logs warnings on failure (never blocks CLI execution)DOCKER_GIT_STATE_AUTO_PULLenv var (enabled by default when origin remote exists, can be disabled withfalse/0/off)isFeatureEnabledpredicate to deduplicate auto-pull and auto-sync env logicМатематические гарантии
Инварианты:
∀ invocation ∈ docker-git: autoPull(~/.docker-git) *> handle(command)∀ error ∈ PullErrors: error → logWarning(error) ∧ ¬fail(program)Предусловия:
~/.docker-gitis a git repo with origin remote (otherwise auto-pull is skipped)Постусловия:
∃ state: pulled(~/.docker-git) ∨ warned(error)Сложность:
O(1)network round-trip forgit pull --rebaseO(1)— no additional data structuresTest plan
isAutoPullEnabledenv predicate (truthy/falsy/undefined/empty values).docker-git.docker-gitis not a git repo.docker-githas no origin remoteDOCKER_GIT_STATE_AUTO_PULL=falseto skip pull.docker-gitdirectory does not existCloses #178
🤖 Generated with Claude Code