fix(nightly): wait for native Windows PTY exit codes #6094
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 290 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6094"
general
weight: 0.35
me2seeks
Summary
The October 13 npm Nightly stopped before publication because the installed Windows fullscreen TUI reported
Interactive TUI exited with undefined. Desktop Nightly was consequently skipped. In node-pty, the output socket'sclosehandler emitsexitusing the agent's exit code even when the native process callback has not supplied it yet.Extend the existing node-pty patch so a pipe-first close waits for the native exit callback, then reports its real code once. CLI package validation now exercises both main-screen and fullscreen setup against the same installed tarball, including formal-version PR candidates, and runs when the node-pty patch changes. No release identity, publication gate, or supported exit code is relaxed.
Verification
undefinedafter pipe close; the patch passes both event orders with exit codes 0 and 7.npm ciapplied the dependency patch successfully. Runtime build and the two affected PTY test files passed, including the existing Unix write-lifecycle regression.0.2.1-dev.81.20261013, including both TUI modes and the existing Host/schedule checks. This validates the smoke change on macOS; it does not establish native Windows acceptance of the patch.AI use
Tool(s) and scope: Codex diagnosed the failure, implemented the dependency patch and regression, expanded the existing package smoke, and ran local checks.
Checklist
Does this PR entail a change in behavior?