fix: bound provider telemetry memory - #3168
Merged
Merged
Conversation
numnx
marked this pull request as ready for review
July 17, 2026 16:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Root cause
The V8 abort was application heap exhaustion, not a kernel OOM kill. Two independent amplification paths were present:
js-tiktokenand constructed a full interpolated patch string before truncation.The Codex parser weakness was related to the latest PR commits; the Jules synchronization path predated them and was uncovered after the first fix was exercised against the live recovered workload.
Impact
Large generated assets, command output, and wide hosted-session synchronization no longer multiply into an unbounded server heap spike. Pathological Codex records are omitted from the dashboard transcript, but parsing resumes at the next record and usage/native session identity remain available. Jules usage and message persistence retain their existing contract, with full-history refreshes processed one at a time.
Validation
pnpm run cipassed/readyremained healthy, JS heap stayed around 170–203 MiB, and RSS stabilized around 0.70–0.75 GiBRisk and rollback
Wide Jules batches can delay an individual live transcript refresh while earlier sessions finish, but they no longer run full-history fetches concurrently. Codex usage accounting and session selection remain unchanged. Roll back by reverting this PR; no database migration or persisted-data rewrite is involved.