Gemini CLI PR fixes safeJsonStringify: shared references wrongly serialized as [Circular]
zero-dot7 · ghdev · 2026-10-04
A PR in google-gemini/gemini-cli fixes a subtle bug in safeJsonStringify: a single global WeakSet used to detect cycles misclassified shared (non-circular) references — like OTel endTime objects — as [Circular]. The fix tracks only the current DFS path, adding keys before serializing a subtree and removing them after, so true cycles still render as [Circular] while diamond references serialize normally. Ships with regression tests, a sabotage check (reverting the fix fails tests), and 11/11 + 69/69 test passes.
More from coding & agent
- TanStack AI adds experimental text-to-GLB 3D model and prompt-to-motion animation generation — bennash · 2026-11-20
- Dev builds typing survival game with troops and skill trees in ~24 hours using agents and kaigen3d — hullabaloo22 · 2026-11-20
- Harmonic's Aristotle writes proven-correct fusion plasma controllers in C and Verilog in 4 hours — satnam6502 · 2026-11-20
- R3 Code: A Native Rust Mac Client That Runs All Your Coding Agents — jasonkneen · 2026-11-20
- zlib: 2.4K-star open-source CLI turns Z-Library into a skill for AI agents — udmrzn · 2026-11-20
- Andriy Burkov's True Positive Weekly #186: what to know when agents do the work — burkov · 2026-11-20