Git LFS fails to run correctly

Open 💬 4 comments Opened Mar 30, 2026 by alexaka1

What issue are you seeing?

GIT LFS does not work in Codex Web. LFS files are not checked out before setup scripts. During setup scripts LFS is not configured, so I can't even pull the files there. During the model run with internet access LFS files still cannot be pulled.

What steps can reproduce the bug?

add this to you setup script in a repo that has LFS files.

has_lfs_endpoint() {
  local endpoint
  endpoint="$(git lfs env 2>/dev/null | awk -F': ' '/Endpoint/{print $2; exit}')"
  [ -n "$endpoint" ] && printf '%s' "$endpoint" | grep -Eq '^[a-zA-Z][a-zA-Z0-9+.-]*://' 
}
if [ -f .gitattributes ] && grep -q "filter=lfs" .gitattributes && command -v git-lfs >/dev/null 2>&1; then
  log 'Enable Git LFS support'
  git lfs install --local
  if has_lfs_endpoint; then
    log 'Refresh Git LFS content'
    git lfs pull
  else
    log 'Skipping Git LFS content refresh (no LFS endpoint configured in this session)'
  fi
fi

This results in Skipping Git LFS content refresh (no LFS endpoint configured in this session).

What is the expected behavior?

Git LFS should work as this means any repo that relies on LFS files completely fails to work in Codex Web.

Additional information

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗