DashboardKnowledgePTY exit notification completion

PTY exit notification completion

Category: preference
Confidence: 1.00
ID: 01a07f25-9100-79b6-a015-7164c4203057
Project ID: (global)
Cross-project: Yes
Recalled in other projects: 0
Source session: 1YUpdJpSmTRNO1Oy9
Created: 2026-08-03 19:47:58
Updated: 2026-09-08 03:52:43

Content

Never poll PTY completion with sleep and repeated pty_read. For notifyOnExit=true, wait for the future JSON exit notification; use pty_read before exit only for explicitly needed live output, requested logs, or nonzero-exit investigation. Polling looks practical but wastes resources and races the event-driven completion contract.

Move to: