Skip to content

Fix Windows PTY initialization on the GPUI host fork - #1

Merged
Hmbown merged 1 commit into
codewhale/gpui-prefrom
fix/windows-pty-options-1003
Oct 3, 2026
Merged

Hmbown merged 1 commit into
codewhale/gpui-prefrom
fix/windows-pty-options-1003

Conversation

@Hmbown

@Hmbown Hmbown commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

On Windows, the terminal Options initializer omits alacritty_terminal 0.26's Windows-only escape_args field and fails to compile with E0063. Reuse upstream a6119f1's exact two-line fix: each Launch argument remains an argv entry through Alacritty's existing C-runtime escaping.

The upstream author and cherry-pick provenance are preserved; GPUI snapshot and host-theme patches remain. Validation: 3 existing Unix PTY tests passed, 0 failed, including actual process output and cwd refusal; format and diff checks passed. Exact new-pin Windows app compilation/native checks are pending and remain distinct from Windows PTY runtime acceptance.

alacritty_terminal 0.26's tty::Options has a field that exists only on
Windows, so the crate failed to compile there with E0063. Each launch
argument is one argv entry, so they are escaped by the C runtime rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a6119f1)
Copilot AI balanced review requested due to automatic review settings October 3, 2026 22:07
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Windows compilation and PTY runtime validation remain pending for this platform-specific fix.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes the terminal launcher’s missing Windows-only PTY option.

Changes:

  • Sets escape_args: true on Windows to enable Alacritty’s argument escaping, leaving Unix initialization unchanged.
File Description
src/​terminal/​pty.rs Adds the Windows-gated escape_args initializer.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Hmbown
Hmbown merged commit 572dd2d into codewhale/gpui-pre Oct 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants