[BUG] Claude Code on the Web: Git LFS not supported — proxy rejects LFS batch API with "invalid git path"
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Git LFS still doesn't work in Claude Code Web. This bug was reported before and closed due to inactivity, but it's not fixed: https://github.com/anthropics/claude-code/issues/25043
Repositories that use Git LFS cannot pull LFS-tracked files
in Claude Code web sessions. The local GitHub proxy
(127.0.0.1) actively rejects the LFS batch API endpoint,
so all LFS-tracked files remain as pointer stubs throughout
the session.
The proxy seems to have a path validation check that
only allows standard git smart HTTP protocol paths. It
rejects the /info/lfs/objects/batch URL pattern with the
error Proxy error: invalid git path.
What Should Happen?
The GitHub proxy should pass through Git LFS batch API
requests (/info/lfs/objects/batch) to GitHub, allowing
git lfs pull to download LFS objects. Repositories using
Git LFS should be fully functional in web sessions.
What Should Happen?
Pulling LFS file should work.
Error Messages/Logs
Steps to Reproduce
$ curl -s -o /dev/null -w "%{http_code}" -X POST
http://127.0.0.1/://.git/info/lfs/objects/batch
502
- Create a repository that uses Git LFS (e.g. tracking .pdf or .pkl files via .gitattributes)
- Start a Claude Code web session on that repository
- Run git lfs install && git lfs pull
- Observe: 502 error with "invalid git path"
- The LFS-tracked files remain as ~130-byte text pointer stubs instead of actual binary content
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code Web
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Non-interactive/CI environment
Additional Information
_No response_
13 Comments
cc @aunitt @JJC1138
cc @mikewirth @cvdub @ezheidtmann @hakon-j-d-johnsen
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Not a duplicate. Those bugs are closed/abandoned and LFS is still unsupported.
Agreed. This does need addressing.
Fix is going out for this shortly! Let me know if you still see it happening, sorry for the gap here!
You're a hero @omid-ant 💪 🎉
I just tested and didn't have any success, I'm afraid. Could the feature still be rolling out @omid-ant? Here's what Claude reported:
I also get 502s when trying to use lfs ☹️
@omid-ant any update on this rollout?
New bug opened since this was closed without fixing the issue: https://github.com/anthropics/claude-code/issues/60593
FYI @omid-ant still hasn't gone out.
<img width="671" height="214" alt="Image" src="https://github.com/user-attachments/assets/2fc4c679-beee-4580-8191-58a19eb702b1" />
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.