Skip to content

[Bug]: validate/test/dev still hide host file load and extension host() errors behind "Operation failed" #724

Closed

Description

@jimhoyd

Runtime revision and environment

Found while fixing #714 (branch claude/sleepy-shannon-xvazgl, commit "fix(core): report extension activation errors from validate, test and dev (#714)"). Found by reading the code; not reproduced end to end.

Minimal reproduction

The #714 fix reports errors thrown by an extension's activate() (and by preparing its registration) from validate, test and dev, naming the extension. Two earlier failure points are not covered and still print the generic message:

  1. host.mjs itself throws while being imported (for example, a bad import or a top-level error in the operator's host file).
  2. An extension's host() hook throws inside composeHost, before prepareExtensions runs.

Both are in packages/core/src/operator-host.ts / packages/core/src/host.ts.

Relevant output

{"event":"error","message":"Operation failed; check project files, module dependencies and command options"}

describeError passes through only ConfigError/HttpError. These are operator-authored files on local operator surfaces, so it would be reasonable to wrap them the same way as activation errors (Host file failed to load: …, Extension "<name>" host() failed: …): a bounded single line, no stack, and never in HTTP responses. Unverified: whether a module-resolution error message could include paths that should stay hidden on shared CI logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions