• turbo 2.8.3 • Packages in scope: bb-plugin-provider-claude-code, bb-plugin-provider-codex • Running test in 2 packages • Remote caching disabled, using shared worktree cache @bb/templates:generate:plugin-scaffold: cache bypass, force executing 05707be7b083b634 //:ensure-native-modules: cache bypass, force executing 460779aee171f18f @bb/templates:generate:templates: cache bypass, force executing 0fc4e5b41cbcf8d3 //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @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: @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-provider-claude-code:test: cache bypass, force executing e24866205e93e9b4 bb-plugin-provider-codex:test: cache bypass, force executing 0b50f1830573d663 bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: > bb-plugin-provider-claude-code@0.1.0 test /plugins/provider-claude-code bb-plugin-provider-claude-code:test: > vitest run --config vitest.config.ts "--run" "src/issue-3464.test.ts" bb-plugin-provider-claude-code:test: 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/issue-3464.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-claude-code:test: bb-plugin-provider-claude-code:test: RUN v4.1.1 /plugins/provider-claude-code bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: stdout | src/issue-3464.test.ts > keeps distinguishable cache read and creation usage bb-plugin-provider-claude-code:test: {"readHeavy":{"last":{"totalTokens":118,"inputTokens":11,"cachedInputTokens":100,"outputTokens":7,"reasoningOutputTokens":0},"modelContextWindow":null},"writeHeavy":{"last":{"totalTokens":118,"inputTokens":11,"cachedInputTokens":100,"outputTokens":7,"reasoningOutputTokens":0},"modelContextWindow":null}} bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: stdout | src/issue-3464.test.ts > retains cache creation information through the shared usage boundary bb-plugin-provider-claude-code:test: {"parsed":{"totalTokens":118,"inputTokens":11,"cachedInputTokens":100,"outputTokens":7,"reasoningOutputTokens":0}} bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ❯ |bb-plugin-provider-claude-code| src/issue-3464.test.ts (2 tests | 2 failed) 10ms bb-plugin-provider-claude-code:test: × keeps distinguishable cache read and creation usage 8ms bb-plugin-provider-claude-code:test: × retains cache creation information through the shared usage boundary 1ms bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/issue-3464.test.ts > keeps distinguishable cache read and creation usage bb-plugin-provider-claude-code:test: AssertionError: expected { …(2) } to not deeply equal { …(2) } bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: Compared values have no visual difference. bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ❯ src/issue-3464.test.ts:15:25 bb-plugin-provider-claude-code:test: 13| const writeHeavy = result(10, 90); bb-plugin-provider-claude-code:test: 14| console.log(JSON.stringify({ readHeavy, writeHeavy })); bb-plugin-provider-claude-code:test: 15| expect(readHeavy).not.toEqual(writeHeavy); bb-plugin-provider-claude-code:test: | ^ bb-plugin-provider-claude-code:test: 16| }); bb-plugin-provider-claude-code:test: 17| bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/issue-3464.test.ts > retains cache creation information through the shared usage boundary bb-plugin-provider-claude-code:test: AssertionError: expected { totalTokens: 118, …(4) } to have property "cacheWriteInputTokens" with value 10 bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: - Expected: bb-plugin-provider-claude-code:test: 10 bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: + Received: bb-plugin-provider-claude-code:test: undefined bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ❯ src/issue-3464.test.ts:23:18 bb-plugin-provider-claude-code:test: 21| const parsed = threadEventTokenUsageBreakdownSchema.parse(usage); bb-plugin-provider-claude-code:test: 22| console.log(JSON.stringify({ parsed })); bb-plugin-provider-claude-code:test: 23| expect(parsed).toHaveProperty("cacheWriteInputTokens", 10); bb-plugin-provider-claude-code:test: | ^ bb-plugin-provider-claude-code:test: 24| }); bb-plugin-provider-claude-code:test: 25| bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: Test Files 1 failed (1) bb-plugin-provider-claude-code:test: Tests 2 failed (2) bb-plugin-provider-claude-code:test: Start at 20:32:40 bb-plugin-provider-claude-code:test: Duration 5.77s (transform 2.93s, setup 0ms, import 4.34s, tests 10ms, environment 0ms) bb-plugin-provider-claude-code:test: bb-plugin-provider-codex:test: stdout | src/issue-3464.test.ts > preserves nonzero cache creation in both usage intervals bb-plugin-provider-codex:test: {"result":{"kind":"usage","total":{"totalTokens":120,"inputTokens":100,"cachedInputTokens":30,"outputTokens":20,"reasoningOutputTokens":0},"last":{"totalTokens":120,"inputTokens":100,"cachedInputTokens":30,"outputTokens":20,"reasoningOutputTokens":0},"modelContextWindow":1000,"providerTurnId":"repro-turn"}} bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ |bb-plugin-provider-codex| src/issue-3464.test.ts (1 test | 1 failed) 138ms bb-plugin-provider-codex:test: × preserves nonzero cache creation in both usage intervals 137ms bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: FAIL |bb-plugin-provider-codex| src/issue-3464.test.ts > preserves nonzero cache creation in both usage intervals bb-plugin-provider-codex:test: AssertionError: expected { Object (kind, total, ...) } to match object { total: { …(1) }, last: { …(1) } } bb-plugin-provider-codex:test: (13 matching properties omitted from actual) 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: "last": { bb-plugin-provider-codex:test: - "cacheWriteInputTokens": 8, bb-plugin-provider-codex:test: + "cachedInputTokens": 30, bb-plugin-provider-codex:test: + "inputTokens": 100, bb-plugin-provider-codex:test: + "outputTokens": 20, bb-plugin-provider-codex:test: + "reasoningOutputTokens": 0, bb-plugin-provider-codex:test: + "totalTokens": 120, bb-plugin-provider-codex:test: }, bb-plugin-provider-codex:test: "total": { bb-plugin-provider-codex:test: - "cacheWriteInputTokens": 20, bb-plugin-provider-codex:test: + "cachedInputTokens": 30, bb-plugin-provider-codex:test: + "inputTokens": 100, bb-plugin-provider-codex:test: + "outputTokens": 20, bb-plugin-provider-codex:test: + "reasoningOutputTokens": 0, bb-plugin-provider-codex:test: + "totalTokens": 120, bb-plugin-provider-codex:test: }, bb-plugin-provider-codex:test: } bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ❯ src/issue-3464.test.ts:14:18 bb-plugin-provider-codex:test: 12| const result = deltas.find(delta => delta.kind === "usage"); bb-plugin-provider-codex:test: 13| console.log(JSON.stringify({ result })); bb-plugin-provider-codex:test: 14| expect(result).toMatchObject({ total: { cacheWriteInputTokens: 20 },… bb-plugin-provider-codex:test: | ^ bb-plugin-provider-codex:test: 15| }); bb-plugin-provider-codex:test: 16| bb-plugin-provider-codex:test: bb-plugin-provider-codex:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ 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 1 failed (1) bb-plugin-provider-codex:test: Start at 20:32:40 bb-plugin-provider-codex:test: Duration 5.92s (transform 3.44s, setup 0ms, import 4.90s, tests 138ms, environment 0ms) bb-plugin-provider-codex:test: bb-plugin-provider-claude-code:test:  ELIFECYCLE  Test failed. See above for more details. bb-plugin-provider-claude-code:test: command finished with error, but continuing... bb-plugin-provider-codex:test:  ELIFECYCLE  Test failed. See above for more details. bb-plugin-provider-codex:test: command finished with error, but continuing... bb-plugin-provider-claude-code#test: command (/plugins/provider-claude-code) pnpm run test --run src/issue-3464.test.ts exited (1) bb-plugin-provider-codex#test: command (/plugins/provider-codex) pnpm run test --run src/issue-3464.test.ts exited (1) Tasks: 3 successful, 5 total Cached: 0 cached, 5 total Time: 21.481s Failed: bb-plugin-provider-claude-code#test, bb-plugin-provider-codex#test ERROR run failed: command exited (1)