From c73d63f3118853efe4dd9f3ce5963fa24c290cca Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sat, 11 Apr 2026 10:51:23 +0000 Subject: [PATCH] fix(ci): pin codex CLI to 0.105.0 and improve turn_failed diagnostics Playwright archive-tab tests fail because CI installs @openai/codex@latest (0.120.0) which has breaking protocol changes vs the known-working 0.105.0. Pin the version and add diagnostics for future debugging: elevate turn_failed log from TRACE to WARN, and include error details in test assertions. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 4 ++-- packages/app/e2e/helpers/archive-tab.ts | 2 +- packages/server/src/server/agent/agent-manager.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b95ce9d19..0abae0ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,7 +120,7 @@ jobs: run: npm run build --workspace=@getpaseo/server - name: Install agent CLIs for provider tests - run: npm install -g @openai/codex opencode-ai + run: npm install -g @openai/codex@0.105.0 opencode-ai - name: Run Playwright E2E tests run: npm run test:e2e --workspace=@getpaseo/app @@ -170,7 +170,7 @@ jobs: run: npm install - name: Install agent CLIs for provider tests - run: npm install -g @openai/codex opencode-ai + run: npm install -g @openai/codex@0.105.0 opencode-ai - name: Build highlight dependency run: npm run build --workspace=@getpaseo/highlight diff --git a/packages/app/e2e/helpers/archive-tab.ts b/packages/app/e2e/helpers/archive-tab.ts index 5bfe2b901..e66192706 100644 --- a/packages/app/e2e/helpers/archive-tab.ts +++ b/packages/app/e2e/helpers/archive-tab.ts @@ -118,7 +118,7 @@ export async function createIdleAgent( }); const finished = await client.waitForFinish(created.id, 120_000); if (finished.status !== "idle") { - throw new Error(`Expected agent ${created.id} to become idle, got ${finished.status}.`); + throw new Error(`Expected agent ${created.id} to become idle, got ${finished.status}. Error: ${JSON.stringify((finished as Record).error ?? "unknown")}`); } return { id: created.id, diff --git a/packages/server/src/server/agent/agent-manager.ts b/packages/server/src/server/agent/agent-manager.ts index afd28c4be..9e6cfbbaf 100644 --- a/packages/server/src/server/agent/agent-manager.ts +++ b/packages/server/src/server/agent/agent-manager.ts @@ -2180,7 +2180,7 @@ export class AgentManager { void this.refreshRuntimeInfo(agent); break; case "turn_failed": - this.logger.trace( + this.logger.warn( { agentId: agent.id, lifecycle: agent.lifecycle,