Files
opencode/packages
Artur Do Lago 3c4da51263 fix(cli): resolve agent-core run command hanging
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>
2026-01-20 13:31:26 +01:00
..
2026-01-19 21:55:27 +00:00