feat(claude-dev + pnpm-store): share host OAuth credentials + fix dotfiles-sync store-dir#36
Merged
Merged
Conversation
✅ PR Validation Passed
📋 Pipeline Status
🤖 Generated by @helpers4 CI • 2026-06-13 |
baxyz
force-pushed
the
feat/claude-dev-credentials
branch
from
June 13, 2026 22:07
e95728b to
3be5fa6
Compare
Mount host ~/.claude/.credentials.json to a staging path at container start, then symlink it into the container user's home. This means no re-authentication is needed after a devcontainer rebuild, and token refreshes propagate automatically in both directions. Architecture mirrors dotfiles-sync: bind-mount to /mnt/h4claude/ at build time, postStartCommand creates the symlink at runtime so $HOME resolves correctly regardless of the container username. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- bump version to 1.0.2 - update description for clarity - simplify credential symlink setup
- bump version to 1.0.6 - ensure store-dir persists in ~/.npmrc
… mount The bind mount source ~/.claude must exist on the host before docker run or the container fails to start. Added mkdir -p step to both test.yml (push to main) and pr-validation.yml (PR checks), same pattern as dotfiles-sync. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace unconditional PASS with checks that install.sh actually deployed setup-credentials.sh at the expected path, made it executable, and baked in TARGET_HOME. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
baxyz
force-pushed
the
feat/claude-dev-credentials
branch
from
June 13, 2026 22:24
3be5fa6 to
1a9226f
Compare
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
~/.claude/.credentials.jsonvia live symlink so les tokens Claude survivent aux rebuilds sans re-auth (bind-mount → postStart symlink, même architecture que dotfiles-sync)setup-credentials.sh— simplification du setup symlink, description mise à jourpostCreatere-applique maintenant activementstore-dirdans~/.npmrc(au lieu de juste vérifier), ce qui le rend résistant à dotfiles-sync ou tout autre outil qui écrase~/.npmrcentre le build et le start — résout le bug où pnpm résolvait le store à<cwd>/.pnpm-storeau lieu de/workspaces/.pnpm-storeTest plan
~/.claude/.credentials.jsonest un symlink valide sans re-authpnpm config get store-dirretourne/workspaces/.pnpm-storepackageManager) télécharge dans/workspaces/.pnpm-storeet non dans<cwd>/.pnpm-store🤖 Generated with Claude Code