Skip to content

start: script failure with an empty error message logs nothing useful #71

Description

@kitlangton

Drive 2.0.0 (464f9a3).

When a script fails with an error whose message is empty, drive start prints ERROR and exits 1 with no cause, tag, or stack. Hit this with a ClientError from @opencode-ai/client wrapping a SchemaError (Expected Plugin.Info at ["data"][0]); the actual reason was only visible after adding Effect.tapCause(... Cause.pretty(cause)) to the script itself.

[2026-09-02T02:30:12.070Z] ERROR
error:
error: script "drive" exited with code 1

Expected: start renders the failure with Cause.pretty (or at least _tag plus the nested cause) so tagged errors with empty messages are diagnosable from the run log.

Log: .drive-output/plugin-registry/candidate-6.log; the cause is visible in candidate-8.log after the script-side workaround.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions