mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-29 19:01:39 +00:00
src/core/embed-stale.ts (used by the embed-backfill minion handler) built its merged ChunkInput without a model field, so every chunk on a touched page — re-embedded AND preserved — was relabeled to the engine default on each backfill pass. Mirror the embed.ts semantics: stamp the resolved gateway label on re-embedded chunks, carry the existing label on untouched ones. Pinned by a PGLite test that fails without the fix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>