7eab694fe9
Node-pty's darwin helper can lose its execute bit in local installs, which leaves the module loadable but causes terminal session creation to fail with posix_spawnp errors. Normalize helper permissions before loading node-pty and remove the rebuild-only hint so startup repairs the real failure mode automatically. Constraint: Must preserve Node 24 and the existing node-pty integration path Rejected: Pipe fallback transport | loses true PTY behavior such as proper terminal semantics Rejected: Tell users to run npm rebuild node-pty | rebuild alone did not restore the helper execute bit here Confidence: high Scope-risk: narrow Reversibility: clean Directive: If a future node-pty release changes helper locations, update the helperCandidates list before touching terminal startup again Tested: npm run build Tested: WebSocket terminal session create + echo command on localhost:8648 under Node 24/macOS Not-tested: Non-macOS helper layouts