From d744a4e60c93e22fe23bcfc53b24d7dc662db830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Almeida?= Date: Sun, 17 May 2026 17:10:46 +0100 Subject: [PATCH] test(e2e): align H5 assertion with actual on-disk session-dir layout The wrapper writes agentctl.pid and agentctl.log to ; the remote agentctl port travels via AGENTCTL_PORT env + ExecutorRunning metadata, not a separate .port file. Assert the files that actually exist and the metadata field that carries the port. --- apps/web/e2e/tests/ssh/launch-task.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/e2e/tests/ssh/launch-task.spec.ts b/apps/web/e2e/tests/ssh/launch-task.spec.ts index 1381148f10..80dd9d0633 100644 --- a/apps/web/e2e/tests/ssh/launch-task.spec.ts +++ b/apps/web/e2e/tests/ssh/launch-task.spec.ts @@ -159,7 +159,10 @@ test.describe("ssh executor — task launch", () => { const sessionDir = `${row!.remote_task_dir}/.kandev/sessions/${row!.session_id}`; expect(remotePathExists(seedData.sshTarget, sessionDir)).toBe(true); const entries = listRemoteDir(seedData.sshTarget, sessionDir); - expect(entries).toEqual(expect.arrayContaining(["agentctl.pid", "agentctl.port"])); + // The wrapper writes the pid file and the log; the port travels via the + // AGENTCTL_PORT env var and the ExecutorRunning metadata, not a file. + expect(entries).toEqual(expect.arrayContaining(["agentctl.pid", "agentctl.log"])); + expect(row!.remote_agentctl_port).toBeGreaterThan(0); }); test("stopping the session cleans up the session runtime dir but leaves the task dir", async ({