• turbo 2.10.12 • Packages in scope: bb-plugin-provider-codex • Running test in 1 packages • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing 36da8f40880095c0 @bb/templates:generate:plugin-scaffold: cache hit, replaying logs f28e36c7d593ecb9 @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/templates:generate:templates: cache hit, replaying logs 04bd8b3b8e376789 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/plugin-build:generate: cache hit, replaying logs 1c5e53c7de12dc4a @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: wrote /packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4) //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: bb-plugin-provider-codex:test: cache miss, executing 7e3001bfd83c8ef5 bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: > bb-plugin-provider-codex@0.1.0 test /plugins/provider-codex bb-plugin-provider-codex:test: > vitest run --config vitest.config.ts "--run" "src/hook-notifications.test.ts" bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: RUN v4.1.1 /plugins/provider-codex bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ |bb-plugin-provider-codex| src/hook-notifications.test.ts (9 tests | 4 failed) 12ms bb-plugin-provider-codex:test: × suppresses routine hook/started notifications 8ms bb-plugin-provider-codex:test: × suppresses routine hook/completed notifications 1ms bb-plugin-provider-codex:test: × normalizes a warning with threadId thread-test exactly once 1ms bb-plugin-provider-codex:test: × normalizes a warning with threadId null exactly once 1ms bb-plugin-provider-codex:test: ✓ preserves failed hook diagnostics 0ms bb-plugin-provider-codex:test: ✓ preserves blocked hook diagnostics 0ms bb-plugin-provider-codex:test: ✓ preserves stopped hook diagnostics 0ms bb-plugin-provider-codex:test: ✓ preserves unknown notifications as diagnostics 0ms bb-plugin-provider-codex:test: ✓ preserves malformed warnings as diagnostics 1ms bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 4 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: FAIL |bb-plugin-provider-codex| src/hook-notifications.test.ts > Codex lifecycle notification diagnostics > suppresses routine hook/started notifications bb-plugin-provider-codex:test: AssertionError: expected [ Array(1) ] to deeply equal [] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: - Expected bb-plugin-provider-codex:test: + Received bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: - [] bb-plugin-provider-codex:test: + [ bb-plugin-provider-codex:test: + { bb-plugin-provider-codex:test: + "providerId": "codex", bb-plugin-provider-codex:test: + "providerThreadId": "", bb-plugin-provider-codex:test: + "rawEvent": { bb-plugin-provider-codex:test: + "jsonrpc": "2.0", bb-plugin-provider-codex:test: + "method": "hook/started", bb-plugin-provider-codex:test: + "params": { bb-plugin-provider-codex:test: + "run": { bb-plugin-provider-codex:test: + "completedAt": null, bb-plugin-provider-codex:test: + "displayOrder": 0, bb-plugin-provider-codex:test: + "durationMs": null, bb-plugin-provider-codex:test: + "entries": [], bb-plugin-provider-codex:test: + "eventName": "sessionStart", bb-plugin-provider-codex:test: + "executionMode": "sync", bb-plugin-provider-codex:test: + "handlerType": "command", bb-plugin-provider-codex:test: + "id": "hook-test", bb-plugin-provider-codex:test: + "scope": "thread", bb-plugin-provider-codex:test: + "source": "user", bb-plugin-provider-codex:test: + "sourcePath": "/tmp/hooks.json", bb-plugin-provider-codex:test: + "startedAt": 1, bb-plugin-provider-codex:test: + "status": "running", bb-plugin-provider-codex:test: + "statusMessage": null, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "threadId": "thread-test", bb-plugin-provider-codex:test: + "turnId": null, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "rawType": "hook/started", bb-plugin-provider-codex:test: + "scope": { bb-plugin-provider-codex:test: + "kind": "thread", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "threadId": "", bb-plugin-provider-codex:test: + "type": "provider/unhandled", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + ] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ src/hook-notifications.test.ts:37:20 bb-plugin-provider-codex:test: 35| }, bb-plugin-provider-codex:test: 36| }); bb-plugin-provider-codex:test: 37| expect(events).toEqual([]); bb-plugin-provider-codex:test: | ^ bb-plugin-provider-codex:test: 38| }); bb-plugin-provider-codex:test: 39| bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/4]⎯ bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: FAIL |bb-plugin-provider-codex| src/hook-notifications.test.ts > Codex lifecycle notification diagnostics > suppresses routine hook/completed notifications bb-plugin-provider-codex:test: AssertionError: expected [ Array(1) ] to deeply equal [] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: - Expected bb-plugin-provider-codex:test: + Received bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: - [] bb-plugin-provider-codex:test: + [ bb-plugin-provider-codex:test: + { bb-plugin-provider-codex:test: + "providerId": "codex", bb-plugin-provider-codex:test: + "providerThreadId": "", bb-plugin-provider-codex:test: + "rawEvent": { bb-plugin-provider-codex:test: + "jsonrpc": "2.0", bb-plugin-provider-codex:test: + "method": "hook/completed", bb-plugin-provider-codex:test: + "params": { bb-plugin-provider-codex:test: + "run": { bb-plugin-provider-codex:test: + "completedAt": 2, bb-plugin-provider-codex:test: + "displayOrder": 0, bb-plugin-provider-codex:test: + "durationMs": 1, bb-plugin-provider-codex:test: + "entries": [], bb-plugin-provider-codex:test: + "eventName": "sessionStart", bb-plugin-provider-codex:test: + "executionMode": "sync", bb-plugin-provider-codex:test: + "handlerType": "command", bb-plugin-provider-codex:test: + "id": "hook-test", bb-plugin-provider-codex:test: + "scope": "thread", bb-plugin-provider-codex:test: + "source": "user", bb-plugin-provider-codex:test: + "sourcePath": "/tmp/hooks.json", bb-plugin-provider-codex:test: + "startedAt": 1, bb-plugin-provider-codex:test: + "status": "completed", bb-plugin-provider-codex:test: + "statusMessage": null, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "threadId": "thread-test", bb-plugin-provider-codex:test: + "turnId": null, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "rawType": "hook/completed", bb-plugin-provider-codex:test: + "scope": { bb-plugin-provider-codex:test: + "kind": "thread", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "threadId": "", bb-plugin-provider-codex:test: + "type": "provider/unhandled", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + ] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ src/hook-notifications.test.ts:37:20 bb-plugin-provider-codex:test: 35| }, bb-plugin-provider-codex:test: 36| }); bb-plugin-provider-codex:test: 37| expect(events).toEqual([]); bb-plugin-provider-codex:test: | ^ bb-plugin-provider-codex:test: 38| }); bb-plugin-provider-codex:test: 39| bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/4]⎯ bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: FAIL |bb-plugin-provider-codex| src/hook-notifications.test.ts > Codex lifecycle notification diagnostics > normalizes a warning with threadId thread-test exactly once bb-plugin-provider-codex:test: AssertionError: expected [ Array(1) ] to deeply equal [ ObjectContaining{…} ] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: - Expected bb-plugin-provider-codex:test: + Received bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: [ bb-plugin-provider-codex:test: { bb-plugin-provider-codex:test: - "category": "general", bb-plugin-provider-codex:test: - "summary": "Provider context budget notice", bb-plugin-provider-codex:test: - "type": "provider/warning", bb-plugin-provider-codex:test: + "providerId": "codex", bb-plugin-provider-codex:test: + "providerThreadId": "", bb-plugin-provider-codex:test: + "rawEvent": { bb-plugin-provider-codex:test: + "jsonrpc": "2.0", bb-plugin-provider-codex:test: + "method": "warning", bb-plugin-provider-codex:test: + "params": { bb-plugin-provider-codex:test: + "message": "Provider context budget notice", bb-plugin-provider-codex:test: + "threadId": "thread-test", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "rawType": "warning", bb-plugin-provider-codex:test: + "scope": { bb-plugin-provider-codex:test: + "kind": "thread", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "threadId": "", bb-plugin-provider-codex:test: + "type": "provider/unhandled", bb-plugin-provider-codex:test: }, bb-plugin-provider-codex:test: ] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ src/hook-notifications.test.ts:43:20 bb-plugin-provider-codex:test: 41| const translate = createHarness(); bb-plugin-provider-codex:test: 42| const events = translate("warning", { threadId, message: "Provider… bb-plugin-provider-codex:test: 43| expect(events).toEqual([expect.objectContaining({ bb-plugin-provider-codex:test: | ^ bb-plugin-provider-codex:test: 44| type: "provider/warning", bb-plugin-provider-codex:test: 45| category: "general", bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/4]⎯ bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: FAIL |bb-plugin-provider-codex| src/hook-notifications.test.ts > Codex lifecycle notification diagnostics > normalizes a warning with threadId null exactly once bb-plugin-provider-codex:test: AssertionError: expected [ Array(1) ] to deeply equal [ ObjectContaining{…} ] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: - Expected bb-plugin-provider-codex:test: + Received bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: [ bb-plugin-provider-codex:test: { bb-plugin-provider-codex:test: - "category": "general", bb-plugin-provider-codex:test: - "summary": "Provider context budget notice", bb-plugin-provider-codex:test: - "type": "provider/warning", bb-plugin-provider-codex:test: + "providerId": "codex", bb-plugin-provider-codex:test: + "providerThreadId": "", bb-plugin-provider-codex:test: + "rawEvent": { bb-plugin-provider-codex:test: + "jsonrpc": "2.0", bb-plugin-provider-codex:test: + "method": "warning", bb-plugin-provider-codex:test: + "params": { bb-plugin-provider-codex:test: + "message": "Provider context budget notice", bb-plugin-provider-codex:test: + "threadId": null, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "rawType": "warning", bb-plugin-provider-codex:test: + "scope": { bb-plugin-provider-codex:test: + "kind": "thread", bb-plugin-provider-codex:test: + }, bb-plugin-provider-codex:test: + "threadId": "", bb-plugin-provider-codex:test: + "type": "provider/unhandled", bb-plugin-provider-codex:test: }, bb-plugin-provider-codex:test: ] bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ src/hook-notifications.test.ts:43:20 bb-plugin-provider-codex:test: 41| const translate = createHarness(); bb-plugin-provider-codex:test: 42| const events = translate("warning", { threadId, message: "Provider… bb-plugin-provider-codex:test: 43| expect(events).toEqual([expect.objectContaining({ bb-plugin-provider-codex:test: | ^ bb-plugin-provider-codex:test: 44| type: "provider/warning", bb-plugin-provider-codex:test: 45| category: "general", bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/4]⎯ bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: Test Files 1 failed (1) bb-plugin-provider-codex:test: Tests 4 failed | 5 passed (9) bb-plugin-provider-codex:test: Start at 00:42:45 bb-plugin-provider-codex:test: Duration 555ms (transform 319ms, setup 0ms, import 452ms, tests 12ms, environment 0ms) bb-plugin-provider-codex:test: bb-plugin-provider-codex:test:  ELIFECYCLE  Test failed. See above for more details. bb-plugin-provider-codex#test: ERROR command (/plugins/provider-codex) /tmp/slopcop-3477-bin/pnpm run test --run src/hook-notifications.test.ts exited (1) Tasks: 4 successful, 5 total Cached: 3 cached, 5 total Time: 1.418s Failed: bb-plugin-provider-codex#test ERROR run failed: command exited (1)