Dashboard › opencode › PTY JSON envelopes
01a07f25-913d-7b21-b2df-b64f5dbc392fChose JSON-only model-visible envelopes for PTY spawn, read, and exit results over XML-like control tags and interpolated trusted delimiters because terminal output is attacker-controlled and can imitate control messages. Keep operational instructions out of JSON fields; direct tools return data while event-driven completion supplies the exit envelope.