• turbo 2.10.12 • Packages in scope: bb-plugin-provider-claude-code • Running test in 1 packages • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing 5bc798d93f99516d @bb/plugin-build:generate: cache miss, executing 530e3a10046cea26 @bb/templates:generate:templates: cache miss, executing 44a0a38a07f968ab @bb/templates:generate:plugin-scaffold: cache miss, executing 6775856c701732ac //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-5252/verify //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-5252/verify/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/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-5252/verify/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 /tmp/issue-5252/verify/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @get-bb/plugin-sdk:build: cache miss, executing b7f050cbd397c583 @bb/plugin-build:generate: wrote /tmp/issue-5252/verify/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4) @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.33 build /tmp/issue-5252/verify/packages/plugin-sdk @get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: Built 19 @get-bb/plugin-sdk runtime entries. bb-plugin-provider-claude-code:test: cache miss, executing 4b72f9a1eab7d45a bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: > bb-plugin-provider-claude-code@0.1.0 test /tmp/issue-5252/verify/plugins/provider-claude-code bb-plugin-provider-claude-code:test: > vitest run --config vitest.config.ts "src/bridge/__tests__/bridge.test.ts" bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: RUN v4.1.1 /tmp/issue-5252/verify/plugins/provider-claude-code bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":10,"error":{"code":-32000,"message":"Claude SDK stream ended before input consumed"}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":10,"error":{"code":-32000,"message":"Claude SDK stream ended before input consumed"}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: claude-code bridge: Invalid params for turn/start: params.clientRequestId: Invalid string: must match pattern /^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u bb-plugin-provider-claude-code:test: claude-code bridge: Unknown method: turn/teleport bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":3,"error":{"code":-32000,"message":"Claude SDK stream ended before input consumed"}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":3,"error":{"code":-32000,"message":"Claude SDK stream ended before input consumed"}} bb-plugin-provider-claude-code:test: claude-code bridge: Invalid params for thread/resume: params.providerThreadId: Invalid input: expected string, received null bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: {"jsonrpc":"2.0","id":2,"result":{"ok":true}} bb-plugin-provider-claude-code:test: ❯ |bb-plugin-provider-claude-code| src/bridge/__tests__/bridge.test.ts (91 tests | 5 failed) 2493ms bb-plugin-provider-claude-code:test: ✓ uses the reported 200000 capacity from initialization through assistant messages and compaction (delayed: false) 242ms bb-plugin-provider-claude-code:test: ✓ uses the reported 1000000 capacity from initialization through assistant messages and compaction (delayed: false) 208ms bb-plugin-provider-claude-code:test: ✓ uses the reported 200000 capacity from initialization through assistant messages and compaction (delayed: true) 262ms bb-plugin-provider-claude-code:test: ✓ uses the reported 1000000 capacity from initialization through assistant messages and compaction (delayed: true) 258ms bb-plugin-provider-claude-code:test: ✓ answers model/list with the missing-executable code when the Claude CLI is absent 4ms bb-plugin-provider-claude-code:test: ✓ forks a Claude session through the requested provider checkpoint 6ms bb-plugin-provider-claude-code:test: ✓ keeps manager sessions on a plain string system prompt 0ms bb-plugin-provider-claude-code:test: ✓ decomposes ultracode into xhigh effort plus the ultracode settings flag 0ms bb-plugin-provider-claude-code:test: ✓ enables workflows without the ultracode flag at lower efforts 1ms bb-plugin-provider-claude-code:test: ✓ sets fast mode only for the fast service tier at session start 0ms bb-plugin-provider-claude-code:test: ✓ passes the memory setting when workflows are not enabled 0ms bb-plugin-provider-claude-code:test: ✓ disables Claude auto-memory reads and writes 0ms bb-plugin-provider-claude-code:test: ✓ leaves standard sessions on the default Claude tool preset 0ms bb-plugin-provider-claude-code:test: ✓ allows bypass mode only for full access sessions, including ones starting in plan mode 0ms bb-plugin-provider-claude-code:test: ✓ uses a Claude executable discovered from PATH for SDK sessions 1ms bb-plugin-provider-claude-code:test: × falls back to well-known install locations when PATH discovery fails 11ms bb-plugin-provider-claude-code:test: ✓ trims explicit Claude executable overrides before forwarding 1ms bb-plugin-provider-claude-code:test: ✓ rejects explicit Claude executable overrides that are not executable 1ms bb-plugin-provider-claude-code:test: ✓ configures acceptEdits and auto sessions with the same Claude sandbox 0ms bb-plugin-provider-claude-code:test: ✓ keeps plan sessions on native gating without the workspace sandbox 0ms bb-plugin-provider-claude-code:test: ✓ leaves the Claude sandbox off when the sandbox setting is disabled 1ms bb-plugin-provider-claude-code:test: ✓ 'auto workspace sandbox denies out-of-…' 5ms bb-plugin-provider-claude-code:test: ✓ 'escalation deny blocks unsandboxed Ba…' 3ms bb-plugin-provider-claude-code:test: ✓ 'full bypass allows Bash input unchang…' 2ms bb-plugin-provider-claude-code:test: ✓ forwards unresolved high-risk auto-mode asks to bb 58ms bb-plugin-provider-claude-code:test: ✓ forwards a sandbox network ask with a grantable network permission 57ms bb-plugin-provider-claude-code:test: ✓ approves only Claude Code's suggested rule when a Bash command is allowed for the session 107ms bb-plugin-provider-claude-code:test: ✓ forwards a permissions.ask rule prompt that carries no permission hints 55ms bb-plugin-provider-claude-code:test: ✓ keeps folder grants scoped and clears them on live permission changes 160ms bb-plugin-provider-claude-code:test: ✓ forwards AskUserQuestion through canUseTool and returns the answer payload 58ms bb-plugin-provider-claude-code:test: ✓ forwards ExitPlanMode for user approval in plan mode 55ms bb-plugin-provider-claude-code:test: × prepares the 'full' sandbox before approving a Plan preset (undefined, undefined) 3ms bb-plugin-provider-claude-code:test: ✓ prepares the 'auto' sandbox before approving a Plan preset (undefined, undefined) 62ms bb-plugin-provider-claude-code:test: ✓ prepares the 'accept-edits' sandbox before approving a Plan preset (undefined, undefined) 62ms bb-plugin-provider-claude-code:test: × prepares the 'full' sandbox before approving a Plan preset (true, undefined) 3ms bb-plugin-provider-claude-code:test: ✓ prepares the 'auto' sandbox before approving a Plan preset (true, undefined) 61ms bb-plugin-provider-claude-code:test: ✓ prepares the 'accept-edits' sandbox before approving a Plan preset (true, undefined) 62ms bb-plugin-provider-claude-code:test: ✓ prepares the 'accept-edits' sandbox before approving a Plan preset (undefined, true) 59ms bb-plugin-provider-claude-code:test: ✓ translates tagged dollar skill mentions without changing plain dollar text 4ms bb-plugin-provider-claude-code:test: ✓ switches a live session into Plan mode when a later turn carries /plan 57ms bb-plugin-provider-claude-code:test: ✓ enters Plan mode from a /plan steer and only re-requests it after the plan is approved 61ms bb-plugin-provider-claude-code:test: ✓ fails a /plan turn instead of running it in the old mode when the SDK refuses the switch 4ms bb-plugin-provider-claude-code:test: ✓ denies ExitPlanMode without prompting when the plan is missing 3ms bb-plugin-provider-claude-code:test: ✓ dispatches an inbound request whose id collides with a pending bb request 57ms bb-plugin-provider-claude-code:test: ✓ answers a schema-invalid request with an error instead of dropping it 1ms bb-plugin-provider-claude-code:test: ✓ does not answer a response line that matches no pending request 1ms bb-plugin-provider-claude-code:test: ✓ denies invalid AskUserQuestion input before forwarding to bb 3ms bb-plugin-provider-claude-code:test: ✓ denies AskUserQuestion when bb returns an interactive request error 57ms bb-plugin-provider-claude-code:test: ✓ denies AskUserQuestion when bb returns an invalid response payload 56ms bb-plugin-provider-claude-code:test: ✓ denies AskUserQuestion when bb returns a mismatched response kind 54ms bb-plugin-provider-claude-code:test: ✓ returns the bridge-owned Claude model list from the SDK probe 2ms bb-plugin-provider-claude-code:test: ✓ treats an empty Claude model report as a discovery failure 1ms bb-plugin-provider-claude-code:test: ✓ recovers model discovery when an inherited model conflicts with client data 1ms bb-plugin-provider-claude-code:test: ✓ propagates Claude model discovery failures and closes the probe 1ms bb-plugin-provider-claude-code:test: ✓ exposes the host HOME and CLAUDE settings cascade to the Claude SDK on thread/start 4ms bb-plugin-provider-claude-code:test: ✓ includes captured Claude stderr when the SDK stream fails 4ms bb-plugin-provider-claude-code:test: ✓ passes thread/start max reasoningLevel through to Claude SDK effort and thinking display 5ms bb-plugin-provider-claude-code:test: ✓ passes thread/start additional workspace-write roots to Claude SDK options 4ms bb-plugin-provider-claude-code:test: ✓ passes thread/resume additional workspace-write roots to Claude SDK options 6ms bb-plugin-provider-claude-code:test: ✓ returns an existing live same-provider thread/resume session 5ms bb-plugin-provider-claude-code:test: ✓ rebuilds for enforcement changes but applies model changes live 10ms bb-plugin-provider-claude-code:test: ✓ keeps a live Claude session across an escalation-only resume change 6ms bb-plugin-provider-claude-code:test: ✓ restarts the Claude process before the next turn when chromeEnabled changes 6ms bb-plugin-provider-claude-code:test: ✓ restarts the Claude process before the next turn when disable1MContext changes 8ms bb-plugin-provider-claude-code:test: × refreshes permissions before turn/start and preserves the conversation 8ms bb-plugin-provider-claude-code:test: × refreshes permissions before turn/steer and preserves the conversation 4ms bb-plugin-provider-claude-code:test: ✓ applies sandbox changes live without replacing the Claude process 8ms bb-plugin-provider-claude-code:test: ✓ applies turn model, reasoning, memory, workflow, and subagent settings live 5ms bb-plugin-provider-claude-code:test: ✓ keeps background subagents on their parent tool escalation when canUseTool omits agent metadata 58ms bb-plugin-provider-claude-code:test: ✓ replaces a live thread/resume session when the provider thread differs 6ms bb-plugin-provider-claude-code:test: ✓ refuses a thread/resume with no provider thread id 1ms bb-plugin-provider-claude-code:test: ✓ replaces a stream-ended same-provider thread/resume session 7ms bb-plugin-provider-claude-code:test: ✓ waits for a closing same-provider thread/resume session before replacing it 9ms bb-plugin-provider-claude-code:test: ✓ resumes a Claude session when follow-up arrives after an SDK stream error 8ms bb-plugin-provider-claude-code:test: ✓ restarts a Claude session before the next turn after an authentication failure 9ms bb-plugin-provider-claude-code:test: ✓ does not resume an ended Claude session for invalid follow-up input 4ms bb-plugin-provider-claude-code:test: ✓ forwards stale Claude resume errors without starting a fresh session 6ms bb-plugin-provider-claude-code:test: ✓ holds thread stop open until the Claude SDK stream closes 4ms bb-plugin-provider-claude-code:test: ✓ waits for an in-flight close before replacing the same thread 9ms bb-plugin-provider-claude-code:test: ✓ opens 'turn start' when the SDK consumes input before producing output 5ms bb-plugin-provider-claude-code:test: ✓ opens 'turn steer' when the SDK consumes input before producing output 4ms bb-plugin-provider-claude-code:test: ✓ keeps the prior escalation when a rejected 'turn start' cannot push input 5ms bb-plugin-provider-claude-code:test: ✓ keeps the prior escalation when a rejected 'turn steer' cannot push input 5ms bb-plugin-provider-claude-code:test: ✓ emits a path-bearing marker for a localImage attachment 4ms bb-plugin-provider-claude-code:test: ✓ emits a name+mime+size marker for a localFile with full metadata 4ms bb-plugin-provider-claude-code:test: ✓ omits missing fields from the localFile marker 3ms bb-plugin-provider-claude-code:test: ✓ emits a URL marker for a remote image attachment 4ms bb-plugin-provider-claude-code:test: ✓ accepts an attachment-only turn (no text fragments) 3ms bb-plugin-provider-claude-code:test: ✓ assembles a local plugin per generic skill root and loads them on canonical sessions 8ms bb-plugin-provider-claude-code:test: ✓ rebuilds with the same provider session when the turn environment changes 6ms bb-plugin-provider-claude-code:test: ✓ uses Fable's Claude Code capacity through a custom API endpoint 2ms bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 5 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/bridge/__tests__/bridge.test.ts > bridge > falls back to well-known install locations when PATH discovery fails bb-plugin-provider-claude-code:test: AssertionError: expected undefined to be '/tmp/bb-claude-home-5WZRI1/.local/bin…' // Object.is equality bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: - Expected: bb-plugin-provider-claude-code:test: "/tmp/bb-claude-home-5WZRI1/.local/bin/claude" 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/bridge/__tests__/bridge.test.ts:1272:48 bb-plugin-provider-claude-code:test: 1270| ); bb-plugin-provider-claude-code:test: 1271| bb-plugin-provider-claude-code:test: 1272| expect(options.pathToClaudeCodeExecutable).toBe(executablePath); bb-plugin-provider-claude-code:test: | ^ bb-plugin-provider-claude-code:test: 1273| }); bb-plugin-provider-claude-code:test: 1274| bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/5]⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/bridge/__tests__/bridge.test.ts > bridge > prepares the 'full' sandbox before approving a Plan preset (undefined, undefined) bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/bridge/__tests__/bridge.test.ts > bridge > prepares the 'full' sandbox before approving a Plan preset (true, undefined) bb-plugin-provider-claude-code:test: AssertionError: expected undefined to be true // Object.is equality bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: - Expected: bb-plugin-provider-claude-code:test: true 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/bridge/__tests__/bridge.test.ts:2271:75 bb-plugin-provider-claude-code:test: 2269| expect(getLatestQueryOptions().permissionMode).toBe("plan"); bb-plugin-provider-claude-code:test: 2270| if (full) { bb-plugin-provider-claude-code:test: 2271| expect(getLatestQueryOptions().allowDangerouslySkipPermissio… bb-plugin-provider-claude-code:test: | ^ bb-plugin-provider-claude-code:test: 2272| true, bb-plugin-provider-claude-code:test: 2273| ); bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/5]⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/bridge/__tests__/bridge.test.ts > bridge > refreshes permissions before turn/start and preserves the conversation bb-plugin-provider-claude-code:test: AssertionError: expected { …(15) } to match object { …(2) } bb-plugin-provider-claude-code:test: (101 matching properties omitted from actual) bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: - Expected bb-plugin-provider-claude-code:test: + Received bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: { bb-plugin-provider-claude-code:test: - "allowDangerouslySkipPermissions": true, bb-plugin-provider-claude-code:test: "resume": "eda20eba-fa42-42de-9a2d-e17ddd01dfd3", bb-plugin-provider-claude-code:test: } bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ❯ src/bridge/__tests__/bridge.test.ts:3850:43 bb-plugin-provider-claude-code:test: 3848| expect(queries[1]?.close).not.toHaveBeenCalled(); bb-plugin-provider-claude-code:test: 3849| expect(queries[1]?.interrupt).not.toHaveBeenCalled(); bb-plugin-provider-claude-code:test: 3850| expect(getLatestQueryOptions()).toMatchObject({ bb-plugin-provider-claude-code:test: | ^ bb-plugin-provider-claude-code:test: 3851| resume: providerThreadId, bb-plugin-provider-claude-code:test: 3852| allowDangerouslySkipPermissions: true, bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/5]⎯ bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: FAIL |bb-plugin-provider-claude-code| src/bridge/__tests__/bridge.test.ts > bridge > refreshes permissions before turn/steer and preserves the conversation bb-plugin-provider-claude-code:test: AssertionError: expected { …(15) } to match object { …(2) } bb-plugin-provider-claude-code:test: (101 matching properties omitted from actual) bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: - Expected bb-plugin-provider-claude-code:test: + Received bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: { bb-plugin-provider-claude-code:test: - "allowDangerouslySkipPermissions": true, bb-plugin-provider-claude-code:test: "resume": "969c6a3a-2737-4bb1-b1a3-b54ab2326744", bb-plugin-provider-claude-code:test: } bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ❯ src/bridge/__tests__/bridge.test.ts:3850:43 bb-plugin-provider-claude-code:test: 3848| expect(queries[1]?.close).not.toHaveBeenCalled(); bb-plugin-provider-claude-code:test: 3849| expect(queries[1]?.interrupt).not.toHaveBeenCalled(); bb-plugin-provider-claude-code:test: 3850| expect(getLatestQueryOptions()).toMatchObject({ bb-plugin-provider-claude-code:test: | ^ bb-plugin-provider-claude-code:test: 3851| resume: providerThreadId, bb-plugin-provider-claude-code:test: 3852| allowDangerouslySkipPermissions: true, bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/5]⎯ 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 5 failed | 86 passed (91) bb-plugin-provider-claude-code:test: Start at 09:33:45 bb-plugin-provider-claude-code:test: Duration 3.75s (transform 773ms, setup 0ms, import 1.10s, tests 2.49s, environment 0ms) bb-plugin-provider-claude-code:test: bb-plugin-provider-claude-code:test:  ELIFECYCLE  Test failed. See above for more details. bb-plugin-provider-claude-code#test: ERROR command (/tmp/issue-5252/verify/plugins/provider-claude-code) /usr/local/bin/pnpm run test src/bridge/__tests__/bridge.test.ts exited (1) Tasks: 5 successful, 6 total Cached: 0 cached, 6 total Time: 6.096s Failed: bb-plugin-provider-claude-code#test ERROR run failed: command exited (1)