mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-25 11:10:00 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user