GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): restore Windows terminal startup after node-pty upgrade by SegFaultZero · Pull Request #1 · SegFaultZero/t3code

Conversation

@SegFaultZero

@SegFaultZero SegFaultZero commented Sep 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

What Changed

Wait for a valid Windows terminal PID before completing the node-pty adapter's spawn operation. This restores terminal startup after the node-pty upgrade; the terminal manager keeps storing the PID once, and Unix startup is unchanged.

The adapter uses node-pty's private ready_datapipe event, validates the PID, and removes listeners on completion or interruption. Startup failures are reported as PtySpawnError. Cancellation uses the internal Windows agent because public kill() waits for first output. Comments link the upstream changes that require these compatibility hooks.

Why

Terminals on Windows are broken after the node-pty upgrade: opening a terminal displays "[terminal] The environment request failed." instead of a usable shell.

After pingdotgg#13748 upgraded node-pty from 1.1.0 to 1.2.0-beta.15, Windows spawn initially returns PID 0 while process creation is still pending. T3 immediately stored that startup value and never refreshed it when node-pty assigned the real PID. Clients rejected the resulting terminal snapshots because the contract accepts only a positive PID or null, displaying "[terminal] The environment request failed."
image

microsoft/node-pty#885 deferred Windows process creation to avoid blocking on named pipes. Waiting for its internal readiness event handles silent processes without polling or waiting for shell output. The private API dependency is confined to the adapter.

Validation

  • 97 focused tests passed: vp test run src/terminal/NodePtyAdapter.test.ts src/terminal/Manager.test.ts from apps/server.
  • Server typecheck and targeted lint passed.
  • vp run build:desktop succeeded on Windows.
  • Native Windows PTY check returned a positive PID and preserved output and exit delivery.
  • Reporter ran the compiled desktop app and confirmed that terminals work.

Implemented with GPT-6-Astra through the Codex harness.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SegFaultZero
fix(server): handle asynchronous Windows terminal process IDs
cfc3f38
SegFaultZero
SegFaultZero commented Sep 27, 2026
View reviewed changes
Comment thread apps/server/src/terminal/Manager.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@SegFaultZero
fix(server): wait for Windows PTY readiness in the adapter
6c680ef
SegFaultZero
SegFaultZero commented Sep 27, 2026
View reviewed changes

@SegFaultZero SegFaultZero left a comment

Copy link
Copy Markdown
Owner Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SegFaultZero
SegFaultZero marked this pull request as ready for review September 27, 2026 06:12
@SegFaultZero SegFaultZero changed the title fix(server): handle asynchronous Windows terminal process IDs fix(server): restore Windows terminal startup after node-pty upgrade Sep 27, 2026
@SegFaultZero SegFaultZero mentioned this pull request Sep 27, 2026
fix(server): restore Windows terminal startup after node-pty upgrade pingdotgg/t3code#13927
Merged
@SegFaultZero
SegFaultZero merged commit 2a44bba into main Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@SegFaultZero
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.