Skip to content

fix: force flat string copy before JSON.parse in event parser#720

Merged
FL4TLiN3 merged 2 commits intomainfrom
fix/openai-e2e-debug-4
Mar 5, 2026
Merged

fix: force flat string copy before JSON.parse in event parser#720
FL4TLiN3 merged 2 commits intomainfrom
fix/openai-e2e-debug-4

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Mar 5, 2026

Summary

  • Force Buffer round-trip before JSON.parse to work around JSC JSON.parse issue
  • Also includes debug logging to verify the fix

Test plan

  • Check CI E2E to see if OpenAI provider test passes

FL4TLiN3 and others added 2 commits March 5, 2026 00:29
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Work around JSC/bun JSON.parse issue with substring references
containing multi-byte characters (em dashes). Force a Buffer
round-trip to materialize a flat string before parsing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 enabled auto-merge (squash) March 5, 2026 00:37
@FL4TLiN3 FL4TLiN3 merged commit 4046434 into main Mar 5, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix/openai-e2e-debug-4 branch March 5, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant