Add submodule safety rule to CLAUDE.md

Instructs AI agents to always push submodule commits to remote main
before updating the parent pointer, preventing orphaned commits.
This commit is contained in:
Lawrence Chen 2026-02-17 22:14:32 -08:00
parent 893e1a5d4b
commit 3b4c6f124b

View file

@ -88,6 +88,7 @@ tail -f /tmp/cmux-debug.log
## Pitfalls
- Do not add an app-level display link or manual `ghostty_surface_draw` loop; rely on Ghostty wakeups/renderer to avoid typing lag.
- **Submodule safety:** When modifying a submodule (ghostty, vendor/bonsplit, etc.), always push the submodule commit to its remote `main` branch BEFORE committing the updated pointer in the parent repo. Never commit on a detached HEAD or temporary branch — the commit will be orphaned and lost. Verify with: `cd <submodule> && git merge-base --is-ancestor HEAD origin/main`.
## E2E mac UI tests