← Back to Pull requests

fix(nightly): wait for native Windows PTY exit codes #6094

Closed
unknown closed this pull request without merging on Oct 14, 2026 03:46 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 01:56 UTC
Author

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's close handler emits exit using 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

  • A regression loads the installed WindowsTerminal and WindowsPtyAgent implementations with controlled native/socket boundaries. The original implementation reports undefined after pipe close; the patch passes both event orders with exit codes 0 and 7.

  • A clean npm ci applied the dependency patch successfully. Runtime build and the two affected PTY test files passed, including the existing Unix write-lifecycle regression.

  • The updated installed-package smoke passed on macOS arm64 / Node 24 using the exact failed Nightly artifact 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.

  • All 51 release-workflow/CI-planner tests, format, lint, and diff checks passed.

  • CLI package validation passed on native Windows x64 / Node 24, Linux x64 / Node 22.19 and 24, Linux arm64, and macOS arm64. Main CI and Windows recovery also passed at the reviewed head. Nightly publication has not been retried.
  • AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: Codex diagnosed the failure, implemented the dependency patch and regression, expanded the existing package smoke, and ran local checks.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — described under Summary above

  • No
  • Diff: 290 lines (+217 / -73) across 3 files Reviewer: me2seeks Review duration: 109m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.2% · Safe to merge
    17.2%
    Repository