Dashboard › opencode › PTY authorization, allocation, and stre…
01a0ae82-559f-70c5-a7c0-a17bb85e8e43| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 16h ago |
PTY authorization resources must use the same canonical boundary-preserving argv serialization as execution; joining arguments with spaces can collapse distinct commands. Bound input writes, queued bytes, retained output, worker output, and line scanning during collection—not after splitting—because grep prefixes and ignored backpressure can amplify memory. Attach child and stream error listeners before checking process state, handle stdin.write callbacks, backpressure, closed-stream races, and EPIPE, and apply identical protections to regex-worker stdin.