Dashboardopencodepty_read grep isolation

pty_read grep isolation

Category: gotcha
Confidence: 1.00
ID: 01a07f25-90da-76e3-9e1d-647fa1aed5b7
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 07PmcXIbo6QNZwYRV
Created: 2026-09-08 02:32:47
Updated: 2026-09-08 03:52:43

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 2h ago

Content

Trap: moving model-controlled regexes to bounded grep -E looks sufficient, but concurrent reads can still create unlimited workers and aggregate memory/process pressure. Fix: enforce a bounded worker semaphore, cap stdin and output, handle child/stdin errors, apply a hard deadline, force text-safe NUL behavior, and bound limit before materializing lines.

Move to: