Merge remote-tracking branch 'origin/main' into garrytan/dublin-v1

# Conflicts:
#	CHANGELOG.md
#	VERSION
#	bin/gstack-memory-ingest.ts
#	package.json
#	test/gstack-memory-ingest.test.ts
This commit is contained in:
Garry Tan
2026-05-11 12:49:21 -07:00
58 changed files with 990 additions and 30 deletions
+7
View File
@@ -866,6 +866,13 @@ function renderPageBody(page: PageRecord): string {
body,
].join("\n");
}
// Strip NUL bytes — Postgres rejects 0x00 in UTF-8 text columns. Some Claude
// Code transcripts contain NUL inside user-pasted content or tool output, and
// surfacing those as `internal_error: invalid byte sequence` from the brain
// is unhelpful when we can sanitize at write time. Originally landed in v1.32.0.0
// (PR #1411) on the per-file `gbrain put` path; moved here so all staged
// pages still get the same sanitization.
body = body.replace(/\x00/g, "");
return body;
}