opencode
opencode copied to clipboard
fix(cli): clarify error when GitHub event context is missing
Fixes #7193
When running bun dev github run without a GitHub Actions event context, the CLI currently fails with an unclear error (Unsupported event type: undefined).
This PR detects the missing event context earlier and returns a clearer, more actionable error message, improving the CLI UX without changing behavior.