Skip to content

fix: bridge host global Claude memory into container#23

Merged
dlovell merged 1 commit into
mainfrom
fix/bridge-global-claude-memory
Jun 21, 2026
Merged

fix: bridge host global Claude memory into container#23
dlovell merged 1 commit into
mainfrom
fix/bridge-global-claude-memory

Conversation

@dlovell

@dlovell dlovell commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Container Claude sessions never received the host's top-level ~/.claude/memory (cross-project feedback and preferences) — only per-project memory was bridged.
  • setup-claude.py copied the host CLAUDE.md but not the sibling memory/ dir. This adds copy_global_memory(), mirroring the existing copy pattern.

Notes

  • One-time copy at init, consistent with how the script bridges everything else (CLAUDE.md, prefs). Host memories written after init won't sync until the next init.
  • Global feedback memories are portable preferences, so copying is low-risk; the only thing to watch is a memory that hardcodes a host path.

Test plan

  • Re-run dev/devcontainer init and confirm ~/.claude/memory/ in the container contains the host's global memory files (e.g. feedback_code_style.md).
  • Confirm per-project memory still bridges correctly.

🤖 Generated with Claude Code

Container Claude sessions only received per-project memory; the host's
top-level ~/.claude/memory (cross-project feedback and preferences) never
crossed the boundary because setup-claude only copied CLAUDE.md, not the
sibling memory/ dir.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@dlovell dlovell marked this pull request as ready for review June 21, 2026 13:20
@dlovell dlovell merged commit 06025d5 into main Jun 21, 2026
6 checks passed
@dlovell dlovell deleted the fix/bridge-global-claude-memory branch June 21, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant