mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 10:45:33 -04:00
3c4da51263
Two issues fixed: 1. SSE event format mismatch (app.ts): Server was sending event type in SSE event: field and only properties in data: field. SDK only yields data: field content, so run command couldn't determine event types. Fix: Include both type and properties in data field. 2. Agent validation in attach mode (run.ts): When using --attach, code tried to validate agents locally via Agent.get() which requires Instance context. But attach mode doesn't call bootstrap() so no context exists, causing "No context found for instance" error. Fix: Skip local agent validation in attach mode (server validates), only validate locally in bootstrap mode where Instance context exists. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>