From 44b99b9c8409433f71e504f83fd72726306cac59 Mon Sep 17 00:00:00 2001 From: Jason Mulligan Date: Sun, 9 Aug 2026 11:24:28 -0400 Subject: [PATCH] fix(tui): render system message content in orange and preserve conversation on errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - System message bubble content now renders in orange to match the label and border - Remove .clear() call from error handler in handleChat — only /new and /clear should wipe the message list --- src/tui/app.js | 1 - src/tui/messageBubble.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tui/app.js b/src/tui/app.js index e383466f..d3399aee 100644 --- a/src/tui/app.js +++ b/src/tui/app.js @@ -518,7 +518,6 @@ export default function App({ if (onSaveSession) { onSaveSession(); } - messageListRef.current?.clear(); setStatusMessage("Something went wrong"); addMessage({ role: "system", diff --git a/src/tui/messageBubble.js b/src/tui/messageBubble.js index 63c484e7..198bfc83 100644 --- a/src/tui/messageBubble.js +++ b/src/tui/messageBubble.js @@ -260,7 +260,10 @@ export function MessageBubbleInner({ React.createElement(Spinner, { type: "dots2" }), " thinking", ) - : React.createElement(MarkdownText, { content: text }), + : React.createElement(MarkdownText, { + content: text, + color: role === "system" ? "orange" : undefined, + }), ), reasoningEl, toolCallEl,