mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
6a1fceb979
sample.png and sample.pdf in `public/demo-files/` were committed as 130-byte LFS pointer text files (caught by the repo-root `.gitattributes` `*.png filter=lfs`). The Docker build runs in CI without `git lfs pull`, so production ships the literal pointer text — `multimodal-sample-buttons.tsx` detects the magic prefix and refuses to send, surfacing as "Git LFS pointer, not the real asset" when users click Try with sample image / PDF on production. langgraph-python committed the raw binaries (different blob SHAs). Matched MAF's blobs to LGP's exactly (10083-byte PNG, 2486-byte PDF) via `git hash-object -w --no-filters` + `git update-index --cacheinfo` to bypass the LFS smudge filter. Added a per-directory `.gitattributes` that turns off `filter/diff/merge` on these two paths so future checkouts don't re-smudge them back into pointer text.
10 lines
483 B
Plaintext
10 lines
483 B
Plaintext
# These two demo files are committed as real binaries (not LFS pointers)
|
|
# because the CI Docker build doesn't run `git lfs pull` — production
|
|
# would otherwise ship the pointer-text and the Try-with-sample-{image,pdf}
|
|
# buttons reject it with "Git LFS pointer, not the real asset".
|
|
#
|
|
# langgraph-python's demo-files have the same setup (their root
|
|
# `.gitattributes` `*.png filter=lfs` is overridden here per-path).
|
|
sample.png -filter -diff -merge
|
|
sample.pdf -filter -diff -merge
|