From 0b4d810f7b53aa5daeff8326b3e07863fa45f4b8 Mon Sep 17 00:00:00 2001 From: ScriptedAlchemy Date: Fri, 25 Sep 2026 21:06:40 +0000 Subject: [PATCH] test(dev): wait for the PTY size line instead of asserting it after ready --- packages/agent-bundle/tests/host-session-pty.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/agent-bundle/tests/host-session-pty.test.ts b/packages/agent-bundle/tests/host-session-pty.test.ts index 7a5cd29a3..6dda1be98 100644 --- a/packages/agent-bundle/tests/host-session-pty.test.ts +++ b/packages/agent-bundle/tests/host-session-pty.test.ts @@ -19,8 +19,7 @@ it('runs input, resize, output, and termination through a real PTY', { timeout: const exited = Promise.withResolvers(); process.onExit(() => exited.resolve()); - await expect.poll(() => output).toContain('ready'); - expect(output).toMatch(/24\s+80/u); + await expect.poll(() => output).toMatch(/ready\r?\n24\s+80/u); process.resize(100, 30); process.write('hello\n'); await expect.poll(() => output).toContain('got:hello');