Git LFS fails to run correctly

Resolved 💬 2 comments Opened Nov 3, 2025 by joshka Closed Jan 17, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

Cloud

What subscription do you have?

Pro

Which model were you using?

_No response_

What platform is your computer?

_No response_

What issue are you seeing?

For ratatui/ratatui-website we use git lfs. I have an environment with a custom install script:

mise trust
mise install
git lfs install
git lfs pull
npm install
npx playwright install-deps
npm run build

It consistently fails during environment setup (try + retry), but succeeds when connecting to the interactive terminal on the environment page.

Causes this task to fail:
https://chatgpt.com/s/cd_69080e02c8d8819186acddc747da898b
https://github.com/ratatui/ratatui-website/issues/905#issuecomment-3478557504

What steps can reproduce the bug?

See above

What is the expected behavior?

git lfs pull should work in the environment both interactive and automatic

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 7 months ago

Closing out old bugs.

alexaka1 · 6 months ago

@etraut-openai This is not fixed, just because it is old. I am running into the same issue.

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

results in Skipping Git LFS content refresh (no LFS endpoint configured in this session).
And of course lfs files are not checked out in the setup phase of the cloud env.