From 42013df324f124578bcc7da33575cb23702375ce Mon Sep 17 00:00:00 2001 From: wassname <1103714+wassname@users.noreply.github.com> Date: Mon, 2 Mar 2026 14:10:02 +0800 Subject: [PATCH] chore(gitignore): ignore Claude Code sandbox phantom files bwrap sandbox creates 0-byte read-only bind mount stubs in CWD. Known bug: https://github.com/anthropics/claude-code/issues/17087 Global gitignore handles dotfiles; repo gitignore handles git-internal names. Co-Authored-By: Claude Opus 4.6 --- .gitignore | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 329068f..0e419d0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,12 @@ system-prompts/*.diff.html config.json .claude/ docs/ + +# Claude Code sandbox phantom files (repo-specific, too generic for global ignore) +# https://github.com/anthropics/claude-code/issues/17087 +.gitmodules +HEAD +config +hooks +objects +refs