Files
gbrain/test/e2e
Garry TanandClaude Fable 5 921d759a93 fix(sources): skip non-object array elements in updateSourceConfig repair (#2251)
The array branch of postgres-engine.updateSourceConfig's config-shape
repair ran jsonb_each(elem) over every array element; a non-object element
(the in-the-wild shape mixes a double-encoded string with patch objects)
raised "cannot call jsonb_each on a non-object" and failed the whole
UPDATE — last_full_cycle_at never wrote and the dream cycle re-ran the
source forever. Guard elem with a CASE (not a WHERE qual) so jsonb_each
never sees a non-object regardless of qual-evaluation order. Postgres-only:
the CASE repair exists only in postgres-engine (pglite path unchanged).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 14:44:46 -07:00
..