Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Treat unclosed inline backtick as code-to-EOF in streaming markdown splitter

wyt646deb6173c6
diff --git a/src/renderer/modules/conversation.js b/src/renderer/modules/conversation.js
index c2121634..a5ba60f4 100644
--- a/src/renderer/modules/conversation.js
+++ b/src/renderer/modules/conversation.js
@@ -3220,6 +3220,15 @@ function _splitMarkdownProseCode(text) {
i = close;
continue;
}
+ // Mid-stream unclosed inline backticks — mirror the fenced-block branch
+ // above and tentatively classify [backtick, EOF] as code so a literal
+ // `<agent>` typed inside the span isn't stripped while we wait for the
+ // closing backtick to stream in.
+ flushProse(i);
+ segs.push({ kind: 'code', text: text.slice(i, n) });
+ proseStart = n;
+ i = n;
+ continue;
}
i++;
}