[VSCE-157] Allow Link Formatting via Markdown in System Errors

This commit is contained in:
Colin Young
2025-10-07 18:48:18 -07:00
parent abd517091f
commit 0fc0137720
9 changed files with 159 additions and 21 deletions
@@ -157,7 +157,7 @@ impl EventProcessor for EventProcessorWithHumanOutput {
fn process_event(&mut self, event: Event) -> CodexStatus {
let Event { id: _, msg } = event;
match msg {
EventMsg::Error(ErrorEvent { message }) => {
EventMsg::Error(ErrorEvent { message, .. }) => {
let prefix = "ERROR:".style(self.red);
ts_msg!(self, "{prefix} {message}");
}
@@ -434,6 +434,7 @@ fn error_event_produces_error() {
"e1",
EventMsg::Error(codex_core::protocol::ErrorEvent {
message: "boom".to_string(),
markdown_message: None,
}),
));
assert_eq!(
@@ -469,6 +470,7 @@ fn error_followed_by_task_complete_produces_turn_failed() {
"e1",
EventMsg::Error(ErrorEvent {
message: "boom".to_string(),
markdown_message: None,
}),
);
assert_eq!(