The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 14:45 UTC
fix(server): RTF attachment text keeps joiners and direction marks (#36824)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Wout Stiens committed
Nov 14, 2026 at 17:58 UTC
73fb6cd009260087dca8b82e53e9415321f32961
2 files changed
+9
apps/server/src/provider/documentTextWorker.ts
+4
@@ -342,6 +342,10 @@ function* rtf(source: string): Generator<string, void> {
342
["ldblquote", "“"],
343
["rdblquote", "”"],
344
["bullet", "•"],
345
+ ["zwj", "\u200d"],
346
+ ["zwnj", "\u200c"],
347
+ ["ltrmark", "\u200e"],
348
+ ["rtlmark", "\u200f"],
349
["~", "\u00a0"],
350
["_", "\u2011"],
351
["-", ""],
apps/server/src/provider/userInputAttachments.test.ts
+5
@@ -285,6 +285,11 @@ describe("question answer paths", () => {
285
String.raw`{\rtf1\ansi A\enspace B\emspace C\qmspace D\~E\_F\-G}`,
286
"A\u2002B\u2003C\u2005D\u00a0E\u2011FG",
287
],
288
+ [
289
+ "joiner and direction marks",
290
+ String.raw`{\rtf1\ansi A\zwj B\zwnj C\ltrmark D\rtlmark E}`,
291
+ "A\u200dB\u200cC\u200eD\u200fE",
292
+ ],
293
[
294
"text symbol fallback",
295
String.raw`{\rtf1\ansi\uc10\u945\endash\emdash\enspace\emspace\qmspace\lquote\rquote\ldblquote\rdblquote\bullet Z}`,