File: src/server/render.zig:515–539
Severity: MEDIUM
Status: ✅ FIXED — updated SGR color switch cases to emit \x1b[39m (for default foreground) and \x1b[49m (for default background) if attr_changed is false. Added unit test.
In the delta SGR emission optimization (commit 1f7f37d), the renderer only emits SGR sequences when colors change. However, when a color changed back to .default_ or .terminal, the switch statement did nothing (.default_, .terminal => {}). This meant no color reset sequence was sent to the terminal, leaving the active foreground/background colors set to their previous values and causing colors to bleed into subsequent default-colored characters (most visible in the color block grids of tools like fastfetch).