Right now the diagnostics RPC strips ANSI from its error messages. This causes information loss, e.g., in expect test differences, when you have a line such as ! [%expect {| foo |}]; -- you know something has changed on that line but without the ANSI you don't know what. The RPC should be extended to communicate its display markup so clients have this information.