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.
Drive 2.0.0 (
464f9a3).When a script fails with an error whose
messageis empty,drive startprintsERRORand exits 1 with no cause, tag, or stack. Hit this with aClientErrorfrom@opencode-ai/clientwrapping aSchemaError(Expected Plugin.Info at ["data"][0]); the actual reason was only visible after addingEffect.tapCause(... Cause.pretty(cause))to the script itself.Expected:
startrenders the failure withCause.pretty(or at least_tagplus the nestedcause) so tagged errors with empty messages are diagnosable from the run log.Log:
.drive-output/plugin-registry/candidate-6.log; the cause is visible incandidate-8.logafter the script-side workaround.