Files
gbrain/test
Garry TanandClaude Opus 4.8 33a842a7cc fix(files): upload-raw persists small files + source-namespaced storage (#2297)
The small-file branch printed success and returned without copying the file into
the brain repo or inserting a files row — every small text/PDF raw was silently
lost. Both branches now copy into the repo and record a row via one shared writer.
storage_path (globally UNIQUE) is source-namespaced so the same page slug in two
sources can't ON CONFLICT-clobber each other; the physical copy stays repo-relative
under the source's own repo root. A new --source flag strictly disambiguates a slug
present in multiple sources (a scoped miss returns null, never falls back unscoped).

Adds test/silent-failure-wave.test.ts covering all four wave fixes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 15:19:14 -07:00
..