Skip to content

feat(cli): headless session resume — -p --continue chains multi-turn … #44

feat(cli): headless session resume — -p --continue chains multi-turn …

feat(cli): headless session resume — -p --continue chains multi-turn … #44

Triggered via push August 31, 2026 19:34
Status Failure
Total duration 6m 13s
Artifacts –

ci.yml

on: push
build-and-check
1m 33s
build-and-check
test-integration-packages/billing
1m 4s
test-integration-packages/billing
test-integration-packages/internal
1m 19s
test-integration-packages/internal
Matrix: test-integration
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

43 errors and 26 warnings
test-packages/internal
Final attempt failed. Child_process exited with error code 1
TypeError: undefined is not an object (evaluating 'client.options.parsers'): node_modules/drizzle-orm/postgres-js/driver.js#L18
at construct (/home/runner/work/levelcode/levelcode/node_modules/drizzle-orm/postgres-js/driver.js:18:12) at /home/runner/work/levelcode/levelcode/packages/internal/src/db/index.ts:12:40 at loadAndEvaluateModule (2:1)
TypeError: undefined is not an object (evaluating 'client.options.parsers'): node_modules/drizzle-orm/postgres-js/driver.js#L18
at construct (/home/runner/work/levelcode/levelcode/node_modules/drizzle-orm/postgres-js/driver.js:18:12) at /home/runner/work/levelcode/levelcode/packages/internal/src/db/index.ts:12:40 at loadAndEvaluateModule (2:1)
TypeError: undefined is not an object (evaluating 'client.options.parsers'): node_modules/drizzle-orm/postgres-js/driver.js#L18
at construct (/home/runner/work/levelcode/levelcode/node_modules/drizzle-orm/postgres-js/driver.js:18:12) at /home/runner/work/levelcode/levelcode/packages/internal/src/db/index.ts:12:40 at loadAndEvaluateModule (2:1)
test-cli
Final attempt failed. Child_process exited with error code 1
error: expect(received).toContain(expected): cli/src/agents-console/__tests__/agents-console.test.ts#L196
Expected to contain: "render-team" or via the team_create tool.\n" at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/agents-console/__tests__/agents-console.test.ts:196:29)
error: expect(received).toHaveLength(expected): cli/src/agents-console/__tests__/agents-console.test.ts#L186
Expected length: 1 Received length: 0 at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/agents-console/__tests__/agents-console.test.ts:186:24)
error: expect(received).toBe(expected): cli/src/headless/__tests__/session-store.test.ts#L62
Expected: "second" Received: "first" at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/headless/__tests__/session-store.test.ts:62:7)
error: expect(received).toContain(expected): cli/src/agents-console/__tests__/agents-console.test.ts#L196
Expected to contain: "render-team" or via the team_create tool.\n" at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/agents-console/__tests__/agents-console.test.ts:196:29)
error: expect(received).toHaveLength(expected): cli/src/agents-console/__tests__/agents-console.test.ts#L186
Expected length: 1 Received length: 0 at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/agents-console/__tests__/agents-console.test.ts:186:24)
error: expect(received).toBe(expected): cli/src/headless/__tests__/session-store.test.ts#L62
Expected: "second" Received: "first" at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/headless/__tests__/session-store.test.ts:62:7)
error: expect(received).toContain(expected): cli/src/agents-console/__tests__/agents-console.test.ts#L196
Expected to contain: "render-team" or via the team_create tool.\n" at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/agents-console/__tests__/agents-console.test.ts:196:29)
error: expect(received).toHaveLength(expected): cli/src/agents-console/__tests__/agents-console.test.ts#L186
Expected length: 1 Received length: 0 at <anonymous> (/home/runner/work/levelcode/levelcode/cli/src/agents-console/__tests__/agents-console.test.ts:186:24)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L326
Expected length: 3 Received length: 8 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:326:21)
error: expect(received).toEqual(expected): sdk/src/__tests__/team-api.test.ts#L316
- [] + [ + { + "memberCount": 1, + "name": "team-beta", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "team-alpha", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "keep-me", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "good-team", + "phase": "planning", + }, + { + "memberCount": 3, + "name": "sdk-test-team", + "phase": "planning", + }, + ] - Expected - 1 + Received + 27 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:316:21)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L380
Expected length: 1 Received length: 11 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:380:21)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L339
Expected length: 2 Received length: 10 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:339:34)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L326
Expected length: 3 Received length: 8 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:326:21)
error: expect(received).toEqual(expected): sdk/src/__tests__/team-api.test.ts#L316
- [] + [ + { + "memberCount": 1, + "name": "team-beta", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "team-alpha", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "keep-me", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "good-team", + "phase": "planning", + }, + { + "memberCount": 3, + "name": "sdk-test-team", + "phase": "planning", + }, + ] - Expected - 1 + Received + 27 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:316:21)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L380
Expected length: 1 Received length: 10 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:380:21)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L339
Expected length: 2 Received length: 9 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:339:34)
error: expect(received).toHaveLength(expected): sdk/src/__tests__/team-api.test.ts#L326
Expected length: 3 Received length: 7 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:326:21)
error: expect(received).toEqual(expected): sdk/src/__tests__/team-api.test.ts#L316
- [] + [ + { + "memberCount": 1, + "name": "team-beta", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "team-alpha", + "phase": "planning", + }, + { + "memberCount": 1, + "name": "keep-me", + "phase": "planning", + }, + { + "memberCount": 3, + "name": "sdk-test-team", + "phase": "planning", + }, + ] - Expected - 1 + Received + 22 at <anonymous> (/home/runner/work/levelcode/levelcode/sdk/src/__tests__/team-api.test.ts:316:21)
error: expect(received).toHaveLength(expected): common/src/utils/__tests__/team-concurrency.test.ts#L905
Expected length: 5 Received length: 30 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-concurrency.test.ts:905:21)
error: expect(received).toHaveLength(expected): common/src/utils/__tests__/team-concurrency.test.ts#L832
Expected length: 8 Received length: 56 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-concurrency.test.ts:832:21)
error: expect(received).toHaveLength(expected): common/src/utils/__tests__/team-concurrency.test.ts#L364
Expected length: 15 Received length: 25 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-concurrency.test.ts:364:21)
error: expect(received).toHaveLength(expected): common/src/utils/__tests__/team-concurrency.test.ts#L297
Expected length: 10 Received length: 35 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-concurrency.test.ts:297:21)
error: expect(received).toEqual(expected): common/src/utils/__tests__/team-maintenance.test.ts#L554
- [] + [ + { + "message": + "Task file "bad-task.json" failed validation: [ + { + "expected": "string", + "code": "invalid_type", + "path": [ + "id" + ], + "message": "Invalid input: expected string, received undefined" + }, + { + "expected": "string", + "code": "invalid_type", + "path": [ + "subject" + ], + "message": "Invalid input: expected string, received undefined" + }, + { + "expected": "string", + "code": "invalid_type", + "path": [ + "description" + ], + "message": "Invalid input: expected string, received undefined" + }, + { + "code": "invalid_value", + "values": [ + "pending", + "in_progress", + "completed", + "blocked" + ], + "path": [ + "status" + ], + "message": "Invalid option: expected one of \"pending\"|\"in_progress\"|\"completed\"|\"blocked\"" + }, + { + "expected": "array", + "code": "invalid_type", + "path": [ + "blockedBy" + ], + "message": "Invalid input: expected array, received undefined" + }, + { + "expected": "array", + "code": "invalid_type", + "path": [ + "blocks" + ], + "message": "Invalid input: expected array, received undefined" + }, + { + "code": "invalid_value", + "values": [ + "planning", + "pre-alpha", + "alpha", + "beta", + "production", + "mature" + ], + "path": [ + "phase" + ], + "message": "Invalid option: expected one of \"planning\"|\"pre-alpha\"|\"alpha\"|\"beta\"|\"production\"|\"mature\"" + }, + { + "expected": "number", + "code": "invalid_type", + "path": [ + "createdAt" + ], + "message": "Invalid input: expected number, received undefined" + }, + { + "expected": "number", + "code": "invalid_type", + "path": [ + "updatedAt" + ], + "message": "Invalid input: expected number, received undefined" + } + ]" + , + "path": "/home/runner/.config/levelcode/tasks/test-team/bad-task.json", + "type": "invalid_task", + }, + { + "message": "Inbox exists for "ghost-agent" who is not a team member", + "path": "/home/runner/.config/levelcode/teams/test-team/inboxes/ghost-agent.json", + "type": "orphaned_inbox", + }, + { + "message": "Stale lock file found: old.lock", + "path": "/home/runner/.config/levelcode/teams/test-team/old.lock", + "type": "stale_lock", + }, + ] - Expected - 1 + Received + 104 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-maintenance.test.ts:554:22)
error: expect(received).toHaveLength(expected): common/src/utils/__tests__/team-maintenance.test.ts#L502
Expected length: 1 Received length: 0 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-maintenance.test.ts:502:30)
error: expect(received).toHaveLength(expected): common/src/utils/__tests__/team-maintenance.test.ts#L439
Expected length: 1 Received length: 0 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-maintenance.test.ts:439:22)
error: expect(received).toBe(expected): common/src/utils/__tests__/team-maintenance.test.ts#L426
Expected: 5 Received: 13 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-maintenance.test.ts:426:33)
error: expect(received).toBe(expected): common/src/utils/__tests__/team-maintenance.test.ts#L410
Expected: 0 Received: 8 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-maintenance.test.ts:410:33)
error: expect(received).toBe(expected): common/src/utils/__tests__/team-maintenance.test.ts#L389
Expected: 3 Received: 8 at <anonymous> (/home/runner/work/levelcode/levelcode/common/src/utils/__tests__/team-maintenance.test.ts:389:33)
error: expect(received).toEqual(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L717
- [] + [ + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050872, + "description": "A test task description", + "id": "3", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050872, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050873, + "description": "A test task description", + "id": "5", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050873, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050833, + "description": "A test task description", + "id": "7", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050833, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050833, + "description": "A test task description", + "id": "10", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050833, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050873, + "description": "A test task description", + "id": "12", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050873, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050873, + "description": "A test task description", + "id": "20", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050873, + }, + ] - Expected - 1 + Received + 74 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:717:25)
error: expect(received).toEqual(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L708
[ + "3", "5", + "7", + "10", "12", "20", ] - Expected - 0 + Received + 3 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:708:42)
error: expect(received).toHaveLength(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L696
Expected length: 1 Received length: 3 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:696:25)
error: expect(received).toHaveLength(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L684
Expected length: 1 Received length: 4 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:684:25)
error: expect(received).toHaveLength(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L673
Expected length: 2 Received length: 4 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:673:25)
error: expect(received).toHaveLength(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L548
Expected length: 1 Received length: 3 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:548:21)
error: expect(received).toEqual(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L357
- [] + [ + { + "agentName": "intern", + "taskId": "2", + }, + ] - Expected - 1 + Received + 6 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:357:27)
error: expect(received).toEqual(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L191
- [] + [ + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050832, + "description": "A test task description", + "id": "1", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050832, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050833, + "description": "A test task description", + "id": "3", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050833, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050833, + "description": "A test task description", + "id": "7", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050833, + }, + { + "blockedBy": [], + "blocks": [], + "createdAt": 1788205050833, + "description": "A test task description", + "id": "10", + "phase": "planning", + "priority": "medium", + "status": "pending", + "subject": "Test task", + "updatedAt": 1788205050833, + }, + ] - Expected - 1 + Received + 50 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:191:25)
error: expect(received).toEqual(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L183
[ + "1", "3", "7", "10", ] - Expected - 0 + Received + 1 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:183:42)
error: expect(received).toHaveLength(expected): packages/agent-runtime/src/__tests__/task-assignment.test.ts#L171
Expected length: 1 Received length: 2 at <anonymous> (/home/runner/work/levelcode/levelcode/packages/agent-runtime/src/__tests__/task-assignment.test.ts:171:25)
build-and-check
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-integration-web
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-integration-sdk
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-integration-packages/agent-runtime
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-integration-cli
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-.agents
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-web
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-packages/billing
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-integration-common
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-integration-packages/billing
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-packages/internal
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-packages/internal
Attempt 2 failed. Reason: Child_process exited with error code 1
test-packages/internal
Attempt 1 failed. Reason: Child_process exited with error code 1
test-cli
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-cli
Attempt 2 failed. Reason: Child_process exited with error code 1
test-cli
Attempt 1 failed. Reason: Child_process exited with error code 1
test-sdk
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-sdk
Attempt 2 failed. Reason: Child_process exited with error code 1
test-sdk
Attempt 1 failed. Reason: Child_process exited with error code 1
test-integration-packages/internal
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-common
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-common
Attempt 2 failed. Reason: Child_process exited with error code 1
test-common
Attempt 1 failed. Reason: Child_process exited with error code 1
test-packages/agent-runtime
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, nick-fields/retry@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-packages/agent-runtime
Attempt 2 failed. Reason: Child_process exited with error code 1
test-packages/agent-runtime
Attempt 1 failed. Reason: Child_process exited with error code 1