mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 08:41:38 +00:00
createNonExitingRuntime.exit() threw a generic Error, making it impossible for upstream try-catch to distinguish a simulated process exit from a real runtime crash. Added an ExitError class (internal-only, not exported from SDK) that callers can check via instanceof. ExitError is kept internal to avoid expanding the public plugin SDK API surface without maintainer approval. Tests import directly from ./runtime.js. Fixes #97796. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2.4 KiB
2.4 KiB