#5822 · Cancelled hooks are misclassified as daemon failures
Verdict: REPRODUCED · Root-cause confidence: high · Reproduction label: confirmed-repro
1. TL;DR
A cancellation that reaches the daemon before its hook-run request leaves a cancellation marker. When the delayed request arrives, the handler safely refuses to run the script, but throws an ordinary Error. The RPC router mistakes this expected outcome for a host failure and warns with the Error object; the production logger serializes that object with its stack. Repeating the same request repeats the warning. This report reproduces that mechanism deterministically, not the original production log volume or the upstream reason for repeated requests.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| A cancelled-before-dispatch hook produces a warning. | Verified | Both baseline runs fail at the no-warning assertion: two WARN calls for two delayed requests, in both normal and recovery modes. |
| The warning carries an Error/stack. | Verified by execution and source | The captured warning contains an Error. The production logger uses pino.stdSerializers.errWithCause for err. The terminal's precise multiline formatting is not exercised by the spy. |
| Cancellation is not a reason to execute the script or report success. | Verified | Both requests still return ok: false with the existing error code/message, and no marker file is created. |
| Approximately half a million messages and the claimed sampling rate occurred. | Unverified | No live daemon, production logs, archived threads, or user data were accessed. |
| Archived threads or a long-running server cause the repetition. | Unverified | The reproduction establishes per-request warning amplification only. Server scheduling/recovery frequency needs separate evidence. |
3. Environment
- Public repository
get-bb/bb; trustedorigin/mainat7e4232ef241b5cdfb7d272cee044fe6f82702c70. - Linux 4.19.0-gvisor, Node v22.19.0, pnpm 9.15.0, Vitest v4.1.1.
- Two separate temporary clones with frozen installs. No server, provider, network listener, browser, or live data directory is required. Each test creates a new temporary directory through the repository test helper.
- The first full build hit an existing parallel SDK build-order problem. SDK type generation followed by the normal build with
--concurrency=1passed all 67 tasks; this is not the reproduced product defect.
4. Minimal reproduction
- Prepare trusted source:
git clone --branch main https://github.com/get-bb/bb.git bb-5822 cd bb-5822 git checkout --detach 7e4232ef241b5cdfb7d272cee044fe6f82702c70 pnpm install --frozen-lockfile --prefer-offline
- Save the complete regression test shown below as
apps/host-daemon/test/command/environment-hook-rpc.test.ts. The public reports repository permits only self-contained HTML, so the test and evidence are embedded rather than published as separate files. - Run the focused owner-boundary test through Turbo:
pnpm exec turbo run test --filter=@bb/host-daemon -- test/command/environment-hook-rpc.test.ts
Expected: three tests pass; the cancellation requests fail safely without warnings and emit compact debug metadata; unknown recovery still warns. Actual on unchanged production code (both runs):
Tests 2 failed | 1 passed (3)
AssertionError: expected "vi.fn()" to not be called at all, but actually been called 2 times
Object {
"err": [Error: Environment hook cancelled before dispatch],
"type": "environment.hook.run",
},
"online host RPC failed"
The test first sends cancellation for an unknown operation ID, then sends two run requests for that same ID. Its checks cover both resumeOnly values, non-execution of the script, unchanged failure responses, absence of warning stacks, and retention of a warning for a genuinely unknown recovery outcome. Neither dispatch nor the hook handler is mocked; only the log sink is observed.
Complete regression test
import { readFile, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { makeTempDir } from "@bb/test-helpers";
import { expect, it, vi } from "vitest";
import { CommandRouter } from "../../src/command-router.js";
import { createHarness } from "./dispatch-helpers.js";
it.each([false, true])(
"reports pre-dispatch hook cancellation without warnings (resumeOnly: %s)",
async (resumeOnly) => {
const path = await makeTempDir("bb-hook-rpc-cancel-");
await writeFile(join(path, ".bb-env-setup.sh"), "echo unsafe > marker\n");
const logger = { debug: vi.fn(), warn: vi.fn() };
const router = new CommandRouter({
...createHarness().dispatchOptions({ dataDir: path }),
logger,
});
await expect(
router.handleOnlineRpcRequest({
type: "host-rpc.request",
requestId: "cancel-before-dispatch",
command: { type: "environment.hook.cancel", operationId: "cancelled" },
}),
).resolves.toMatchObject({ ok: true, result: { status: "unknown" } });
for (const requestId of ["delayed-run", "repeated-run"]) {
await expect(
router.handleOnlineRpcRequest({
type: "host-rpc.request",
requestId,
command: {
type: "environment.hook.run",
operationId: "cancelled",
path,
kind: "setup",
contributedEnv: [],
resumeOnly,
timeoutMs: 5000,
},
}),
).resolves.toMatchObject({
ok: false,
errorCode: "command_failed",
errorMessage: "Environment hook cancelled before dispatch",
});
}
await expect(readFile(join(path, "marker"))).rejects.toMatchObject({
code: "ENOENT",
});
expect(logger.warn).not.toHaveBeenCalled();
expect(logger.debug).toHaveBeenCalledTimes(2);
expect(logger.debug).toHaveBeenCalledWith(
{
commandType: "environment.hook.run",
errorCode: "command_failed",
handlerMs: expect.any(Number),
ok: false,
},
"Online host RPC",
);
},
);
it("still warns when hook recovery has an unknown outcome", async () => {
const path = await makeTempDir("bb-hook-rpc-unknown-");
const logger = { debug: vi.fn(), warn: vi.fn() };
const router = new CommandRouter({
...createHarness().dispatchOptions({ dataDir: path }),
logger,
});
await expect(
router.handleOnlineRpcRequest({
type: "host-rpc.request",
requestId: "unknown-recovery",
command: {
type: "environment.hook.run",
operationId: "unknown",
path,
kind: "teardown",
contributedEnv: [],
resumeOnly: true,
timeoutMs: 5000,
},
}),
).resolves.toMatchObject({
ok: false,
errorCode: "command_failed",
errorMessage: "Environment hook outcome is unknown after daemon restart",
});
expect(logger.warn).toHaveBeenCalledExactlyOnceWith(
{ type: "environment.hook.run", err: expect.any(Error) },
"online host RPC failed",
);
});
The full test is embedded above; baseline transcripts are embedded in the Appendix below. Checkout paths are normalized; the remaining test output is unchanged. Raw files remain in local evidence storage, not the public repository.
5. Root cause
- Cancellation handler stores
"cancelled"for a not-yet-dispatched operation. - Run handler sees that marker and throws a generic Error:
if (existing === "cancelled") throw new Error("Environment hook cancelled before dispatch");The marker remains, so another run request takes the same path. - Expected-failure classification suppresses warnings only for the existing expected-error class or specific recognized codes. This generic Error has
command_failed, which is not globally expected. - RPC failure handling therefore warns with
err: error. Production error serializer includes the Error stack. - Existing lifecycle debug logger already records compact failure metadata, without an Error object. Correctly marking just this known cancellation as expected is sufficient; no global warning filter or new wire code is needed.
The generic throw has existed since commit 5f558957aa (September 8, 2026). This explains warning severity and stack amplification. It does not establish the root cause of the server's production retry volume; the command descriptor marks hook runs non-retryable at the transport layer.
6. Proposed fix
Use the existing ExpectedCommandDispatchError at the cancelled-marker branch. Preserve command_failed, the exact message, failed-response shape, marker retention, and non-execution behavior. The existing router then emits its compact debug record without a warning stack. Do not classify every command_failed or every hook failure as expected; unknown recovery and other faults must remain visible. No protocol version change is needed because the existing wire behavior is deliberately unchanged and asserted in the regression.
7. Verification
The same agent repeated the reproduction itself in a second clean temporary clone at exactly 7e4232ef241b5cdfb7d272cee044fe6f82702c70. Before copying the authored test, git status --porcelain was empty. A separate pnpm install --frozen-lockfile --prefer-offline was run; then the exact focused Turbo command above ran afresh (not a successful cached test). It again reported two cancellation-test failures and one passing unknown-recovery control. Each run allocates fresh test directories and uses no listening ports. No correction to the root-cause finding was required. This is repeated verification by one agent, not an independent review.
Candidate fix verification
A two-file candidate uses the existing expected-error class with no change to the RPC code or message. The focused cancellation/control test passes after the fix; the combined hook/router selection passes 22 tests, and the entire command subsystem passes 117 tests in 10 files. Typechecking passes. The text diff is 103 changed lines (102 additions, 1 deletion), including the regression test.
The broader host-daemon suite reports 791 passed, 5 skipped, and two failures outside the changed subsystem. Both failures were reproduced on unchanged trusted production code in the second checkout: a systemd unit-mode expectation under the environment's 0077 umask, and server-move readiness returning null rather than a numeric free-space value. No unrelated source was changed, and this report does not describe that whole-package run as green.
8. Related issues and pull requests
No linked open pull request was present in issue timeline metadata or the repository's open-PR search for issue number 5822 at investigation time. The report does not infer an issue number for the related log-growth report, because the original reference is ambiguous.
9. Appendix and limits
Issue content was treated as untrusted claims. No issue-supplied command, URL, script, branch, patch, or test was executed. The test is authored from trusted repository code. Public output contains no live logs or user data. No visual artifact is needed for this log-only bug.
Repository preparation and investigation: git fetch origin main git rev-parse origin/main git clone --shared --no-checkout <local trusted clone> <second checkout> git checkout --detach 7e4232ef241b5cdfb7d272cee044fe6f82702c70 git status --porcelain pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build pnpm exec turbo run build:types --filter=@get-bb/plugin-sdk pnpm exec turbo run build --concurrency=1 pnpm exec turbo run test --filter=@bb/host-daemon -- test/command/environment-hook-rpc.test.ts pnpm exec turbo run test --filter=@bb/host-daemon -- test/command/environment-hook-rpc.test.ts test/command/command-router.test.ts test/command/environment-hook.test.ts test/command/environment-hook-unverified-stop.test.ts pnpm exec turbo run test --filter=@bb/host-daemon -- test/command pnpm exec turbo run test typecheck --filter=@bb/host-daemon pnpm exec turbo run test --filter=@bb/host-daemon -- src/server-move/service-definition.test.ts src/server-move/service.test.ts pnpm exec oxfmt apps/host-daemon/src/command-handlers/environment-hook.ts apps/host-daemon/test/command/environment-hook-rpc.test.ts git diff --check origin/main git diff --numstat origin/main Read-only evidence: issue properties and timeline via GitHub GraphQL; open PR search; source reads; git log and blame for hook and router owners.
Remaining limits: no validation of the reporter's precise message count, historical daemon version, terminal formatting, or server-side cause of repeated cancellations. The tested defect is reproducible on the recorded current main commit.
Baseline run 1: full focused-test transcript
• turbo 2.10.12
• Packages in scope: @bb/host-daemon
• Running test in 1 packages
• Remote caching disabled
//:ensure-native-modules: cache bypass, force executing d5625db2eafd2e39
@bb/process-utils:generate:profile-worker: cache miss, executing 3e906ac1dc356d44
@bb/templates:generate:templates: cache miss, executing 34db2c8a45a1c366
@bb/templates:generate:plugin-scaffold: cache miss, executing dd4a817e2c7f88bd
@bb/plugin-build:generate: cache miss, executing 1bc1fc744b9fc826
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker $CHECKOUT_1/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates $CHECKOUT_1/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules $CHECKOUT_1
//: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 $CHECKOUT_1/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 $CHECKOUT_1/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@get-bb/plugin-sdk:build: cache miss, executing 7e8c61eee6ea8b2a
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.59 build $CHECKOUT_1/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@bb/plugin-build:generate: wrote $CHECKOUT_1/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@get-bb/plugin-sdk:build: Built 20 @get-bb/plugin-sdk runtime entries.
@bb/host-daemon:test: cache miss, executing bb52ec8b750f3fa1
@bb/host-daemon:test:
@bb/host-daemon:test: > @bb/host-daemon@0.0.1 test $CHECKOUT_1/apps/host-daemon
@bb/host-daemon:test: > vitest run --config vitest.config.ts "test/command/environment-hook-rpc.test.ts"
@bb/host-daemon:test:
@bb/host-daemon:test:
@bb/host-daemon:test: RUN v4.1.1 $CHECKOUT_1/apps/host-daemon
@bb/host-daemon:test:
@bb/host-daemon:test: ❯ |@bb/host-daemon| test/command/environment-hook-rpc.test.ts (3 tests | 2 failed) 31ms
@bb/host-daemon:test: × reports pre-dispatch hook cancellation without warnings (resumeOnly: false) 22ms
@bb/host-daemon:test: × reports pre-dispatch hook cancellation without warnings (resumeOnly: true) 5ms
@bb/host-daemon:test: ✓ still warns when hook recovery has an unknown outcome 4ms
@bb/host-daemon:test:
@bb/host-daemon:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
@bb/host-daemon:test:
@bb/host-daemon:test: FAIL |@bb/host-daemon| test/command/environment-hook-rpc.test.ts > reports pre-dispatch hook cancellation without warnings (resumeOnly: false)
@bb/host-daemon:test: FAIL |@bb/host-daemon| test/command/environment-hook-rpc.test.ts > reports pre-dispatch hook cancellation without warnings (resumeOnly: true)
@bb/host-daemon:test: AssertionError: expected "vi.fn()" to not be called at all, but actually been called 2 times
@bb/host-daemon:test:
@bb/host-daemon:test: Received:
@bb/host-daemon:test:
@bb/host-daemon:test: 1st vi.fn() call:
@bb/host-daemon:test:
@bb/host-daemon:test: Array [
@bb/host-daemon:test: Object {
@bb/host-daemon:test: "err": [Error: Environment hook cancelled before dispatch],
@bb/host-daemon:test: "type": "environment.hook.run",
@bb/host-daemon:test: },
@bb/host-daemon:test: "online host RPC failed",
@bb/host-daemon:test: ]
@bb/host-daemon:test:
@bb/host-daemon:test: 2nd vi.fn() call:
@bb/host-daemon:test:
@bb/host-daemon:test: Array [
@bb/host-daemon:test: Object {
@bb/host-daemon:test: "err": [Error: Environment hook cancelled before dispatch],
@bb/host-daemon:test: "type": "environment.hook.run",
@bb/host-daemon:test: },
@bb/host-daemon:test: "online host RPC failed",
@bb/host-daemon:test: ]
@bb/host-daemon:test:
@bb/host-daemon:test:
@bb/host-daemon:test: Number of calls: 2
@bb/host-daemon:test:
@bb/host-daemon:test: ❯ test/command/environment-hook-rpc.test.ts:52:29
@bb/host-daemon:test: 50| code: "ENOENT",
@bb/host-daemon:test: 51| });
@bb/host-daemon:test: 52| expect(logger.warn).not.toHaveBeenCalled();
@bb/host-daemon:test: | ^
@bb/host-daemon:test: 53| expect(logger.debug).toHaveBeenCalledTimes(2);
@bb/host-daemon:test: 54| expect(logger.debug).toHaveBeenCalledWith(
@bb/host-daemon:test:
@bb/host-daemon:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
@bb/host-daemon:test:
@bb/host-daemon:test:
@bb/host-daemon:test: Test Files 1 failed (1)
@bb/host-daemon:test: Tests 2 failed | 1 passed (3)
@bb/host-daemon:test: Start at 01:22:09
@bb/host-daemon:test: Duration 6.05s (transform 4.97s, setup 0ms, import 5.73s, tests 31ms, environment 0ms)
@bb/host-daemon:test:
@bb/host-daemon:test: ELIFECYCLE Test failed. See above for more details.
@bb/host-daemon#test: ERROR command ($CHECKOUT_1/apps/host-daemon) /usr/local/bin/pnpm run test test/command/environment-hook-rpc.test.ts exited (1)
Tasks: 6 successful, 7 total
Cached: 0 cached, 7 total
Time: 9.549s
Failed: @bb/host-daemon#test
ERROR run failed: command exited (1)
Baseline run 2: full focused-test transcript
• turbo 2.10.12
• Packages in scope: @bb/host-daemon
• Running test in 1 packages
• Remote caching disabled
@bb/templates:generate:templates: cache miss, executing 34db2c8a45a1c366
@bb/templates:generate:plugin-scaffold: cache miss, executing dd4a817e2c7f88bd
@bb/plugin-build:generate: cache miss, executing 1bc1fc744b9fc826
@bb/process-utils:generate:profile-worker: cache miss, executing 3e906ac1dc356d44
//:ensure-native-modules: cache bypass, force executing d5625db2eafd2e39
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold $CHECKOUT_2/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules $CHECKOUT_2
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates $CHECKOUT_2/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker $CHECKOUT_2/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate $CHECKOUT_2/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@get-bb/plugin-sdk:build: cache miss, executing 7e8c61eee6ea8b2a
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.59 build $CHECKOUT_2/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@bb/plugin-build:generate: wrote $CHECKOUT_2/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@get-bb/plugin-sdk:build: Built 20 @get-bb/plugin-sdk runtime entries.
@bb/host-daemon:test: cache miss, executing bb52ec8b750f3fa1
@bb/host-daemon:test:
@bb/host-daemon:test: > @bb/host-daemon@0.0.1 test $CHECKOUT_2/apps/host-daemon
@bb/host-daemon:test: > vitest run --config vitest.config.ts "test/command/environment-hook-rpc.test.ts"
@bb/host-daemon:test:
@bb/host-daemon:test:
@bb/host-daemon:test: RUN v4.1.1 $CHECKOUT_2/apps/host-daemon
@bb/host-daemon:test:
@bb/host-daemon:test: ❯ |@bb/host-daemon| test/command/environment-hook-rpc.test.ts (3 tests | 2 failed) 33ms
@bb/host-daemon:test: × reports pre-dispatch hook cancellation without warnings (resumeOnly: false) 21ms
@bb/host-daemon:test: × reports pre-dispatch hook cancellation without warnings (resumeOnly: true) 6ms
@bb/host-daemon:test: ✓ still warns when hook recovery has an unknown outcome 4ms
@bb/host-daemon:test:
@bb/host-daemon:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
@bb/host-daemon:test:
@bb/host-daemon:test: FAIL |@bb/host-daemon| test/command/environment-hook-rpc.test.ts > reports pre-dispatch hook cancellation without warnings (resumeOnly: false)
@bb/host-daemon:test: FAIL |@bb/host-daemon| test/command/environment-hook-rpc.test.ts > reports pre-dispatch hook cancellation without warnings (resumeOnly: true)
@bb/host-daemon:test: AssertionError: expected "vi.fn()" to not be called at all, but actually been called 2 times
@bb/host-daemon:test:
@bb/host-daemon:test: Received:
@bb/host-daemon:test:
@bb/host-daemon:test: 1st vi.fn() call:
@bb/host-daemon:test:
@bb/host-daemon:test: Array [
@bb/host-daemon:test: Object {
@bb/host-daemon:test: "err": [Error: Environment hook cancelled before dispatch],
@bb/host-daemon:test: "type": "environment.hook.run",
@bb/host-daemon:test: },
@bb/host-daemon:test: "online host RPC failed",
@bb/host-daemon:test: ]
@bb/host-daemon:test:
@bb/host-daemon:test: 2nd vi.fn() call:
@bb/host-daemon:test:
@bb/host-daemon:test: Array [
@bb/host-daemon:test: Object {
@bb/host-daemon:test: "err": [Error: Environment hook cancelled before dispatch],
@bb/host-daemon:test: "type": "environment.hook.run",
@bb/host-daemon:test: },
@bb/host-daemon:test: "online host RPC failed",
@bb/host-daemon:test: ]
@bb/host-daemon:test:
@bb/host-daemon:test:
@bb/host-daemon:test: Number of calls: 2
@bb/host-daemon:test:
@bb/host-daemon:test: ❯ test/command/environment-hook-rpc.test.ts:52:29
@bb/host-daemon:test: 50| code: "ENOENT",
@bb/host-daemon:test: 51| });
@bb/host-daemon:test: 52| expect(logger.warn).not.toHaveBeenCalled();
@bb/host-daemon:test: | ^
@bb/host-daemon:test: 53| expect(logger.debug).toHaveBeenCalledTimes(2);
@bb/host-daemon:test: 54| expect(logger.debug).toHaveBeenCalledWith(
@bb/host-daemon:test:
@bb/host-daemon:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
@bb/host-daemon:test:
@bb/host-daemon:test:
@bb/host-daemon:test: Test Files 1 failed (1)
@bb/host-daemon:test: Tests 2 failed | 1 passed (3)
@bb/host-daemon:test: Start at 01:23:01
@bb/host-daemon:test: Duration 6.26s (transform 5.16s, setup 0ms, import 5.94s, tests 33ms, environment 0ms)
@bb/host-daemon:test:
@bb/host-daemon:test: ELIFECYCLE Test failed. See above for more details.
@bb/host-daemon#test: ERROR command ($CHECKOUT_2/apps/host-daemon) /usr/local/bin/pnpm run test test/command/environment-hook-rpc.test.ts exited (1)
Tasks: 6 successful, 7 total
Cached: 0 cached, 7 total
Time: 10.178s
Failed: @bb/host-daemon#test
ERROR run failed: command exited (1)