@devries-cameron20 / t3code-1 / commits / bd8ea12990
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(server): terminal history drops the tertiary Device Attributes query (#35537)

Julius Marminge committed Nov 12, 2026 at 11:59 UTC bd8ea129904165b7ea511e59fdaf857ac6d86307
2 files changed +2 -1
apps/server/src/terminal/Manager.test.ts
+1
@@ -1157,6 +1157,7 @@ it.layer(
1157
1158 process.emitData("prompt ");
1159 process.emitData("\u001b[?2026$p\u001b[?2026;2$y\u001b[>q\u001b[?u\u001b[?31u");
1160 + process.emitData("\u001b[=c\u001b[=0c");
1161 process.emitData("\u001bP$q m\u001b\\\u001bP1$r0m\u001b\\");
1162 process.emitData("\u001bP+q544e\u001b\\\u001bP1+r544e=1b\u001b\\");
1163 process.emitData('\u001b[!p\u001b["p\u001b[4 q\u001b[u');
apps/server/src/terminal/Manager.ts
+1 -1
@@ -1106,7 +1106,7 @@ function shouldStripCsiSequence(body: string, finalByte: string): boolean {
1106 if (finalByte === "R" && /^[0-9;?]*$/.test(body)) {
1107 return true;
1108 }
1109 - if (finalByte === "c" && /^[>0-9;?]*$/.test(body)) {
1109 + if (finalByte === "c" && /^[>=0-9;?]*$/.test(body)) {
1110 return true;
1111 }
1112 // Strip DECRQM/DECRPM query traffic to prevent echoed replies during replay; $ guards preserve setters.