Merge pull request #508 from Molecule-AI/fix/507-crlf-hook-breakage

fix: enforce LF for .py hook files — fix #507 (all agents "no response generated")
This commit is contained in:
Hongming Wang 2026-04-16 13:30:48 -07:00 committed by GitHub
commit de0344cc1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
.gitattributes vendored
View File

@ -3,6 +3,12 @@
*.sh text eol=lf
workspace-template/entrypoint.sh text eol=lf
# Python hook files are invoked by .sh hooks with path substitution;
# CRLF in either the .sh OR the .py file breaks the hook dispatch.
# See Molecule-AI/molecule-core#507 — SessionStart hook failed silently,
# agents returned "(no response generated)" on every A2A call.
*.py text eol=lf
# Dockerfiles and compose files are parsed by tools that tolerate CRLF,
# but keep LF for consistency across platforms.
Dockerfile text eol=lf