From 44ab5aad45baedc4e899fee562f739c516e6dc1d Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 Sep 2026 05:47:28 -0700 Subject: [PATCH] test(omp): cover fragmented keyboard modes and ConPTY handoff --- src/shared/pty-startup-ingress-kitty.test.ts | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/shared/pty-startup-ingress-kitty.test.ts b/src/shared/pty-startup-ingress-kitty.test.ts index 7ec8a1d4847..a44966fa785 100644 --- a/src/shared/pty-startup-ingress-kitty.test.ts +++ b/src/shared/pty-startup-ingress-kitty.test.ts @@ -105,3 +105,26 @@ it.each([false, true])( f.ingress.drainAndClose() } ) + +it.each([false, true])('tracks fragmented pre-query mode changes on ConPTY %s', (conpty) => { + const bytes = '\x1b[>5u\x1b[>3u\x1b[ { + const f = fixture(true, true) + f.ingress.closeQueryAuthority() + f.ingress.accept('\x1b[?u\x1b]10;?\x07') + expect(f.writes).toEqual(['\x1b]10;rgb:ffff/ffff/ffff\x1b\\']) + expect(f.visible()).toBe('\x1b[?u') + f.ingress.drainAndClose() +})