Terminal Phase 1 [Windows]: own ConPTY layer in atlas-host with bundled OpenConsole
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 10/100
Hướng nghiên cứu
Read discussion #237 and the Phase 0 probe first, then the existing Windows path that portable-pty replaces before touching crates/atlas-host/src/pty/conpty.rs. The work spans loader flags, IOCP-backed overlapped pipes, close ordering, installer bundling and a self-test fallback ladder, so start by reproducing the Phase 0 matrix measurements on a Win10 1809 box. Done means no throughput regression, byte-exact DCS/sixel/kitty output, and no hangs on resize, mouse or close.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of the native GPU terminal roadmap. Design and evidence: discussion #237. Uses the Phase 0 probe.
Why
Win10 never gets ConPTY fixes (microsoft/terminal discussion #17608); only the redistributable Microsoft.Windows.Console.ConPTY (MIT, 17763+) brings the #17510 passthrough (DCS, sixel, kitty APC, ordered sync output, mouse). portable-pty 0.9 and alacritty_terminal load conpty.dll by bare name (DLL planting), have no overlapped pipes, no ReleasePseudoConsole, and cannot set GLYPH_WIDTH_GRAPHEMES.
Change
crates/atlas-host/src/pty/conpty.rsoverwindows-sys, replacingportable-ptyon Windows only.LoadLibraryExW(<exe dir>\\conpty.dll, LOAD_LIBRARY_SEARCH_APPLICATION_DIR); resolveConptyCreate/Resize/Close/ReleasePseudoConsole; kernel32 fallback.- Flags:
GLYPH_WIDTH_GRAPHEMES, neverINHERIT_CURSOR.Releaseright afterCreateProcess. - Output: overlapped named pipe, one IOCP reader for all PTYs in hostd. Input stays synchronous until overlapped input is proven on 1809.
- Close order: drop writer →
Closeoff the reader thread → drain to EOF → join (close blocks before Win11 24H2). - Ship a pinned stable pair (x64 + arm64) in the NSIS installer with licence notices; deliberate updates.
- First-use self-test (10 MB burst + DSR) picks bundled vs inbox per machine; setting
terminal.conpty = auto | bundled | system. - Fallback ladder: bundled → inbox → xterm.js.
Done when
On the Phase 0 matrix: no throughput regression vs inbox; DCS/sixel/kitty bytes byte-exact; resize, mouse and close without hangs; regression tests on real ptys.
- Ngôn ngữ chính
- Rust
- Star
- 3
- Fork
- 1
- Merge trung bình
- 9 giờ 51 phút
- Pull request đã merge (30 ngày)
- 310
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeatlasdev/atlas
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
codeatlasdev/atlas#597 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ci os: linux type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codeatlasdev/atlas#496 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ci type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
codeatlasdev/atlas#596 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
os: linux type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
codeatlasdev/atlas#591 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flaky: Windows scripts job hits test timeouts (check-dco, i18n runner/translate, check-changed)Đang mởarea: ci os: windows type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
codeatlasdev/atlas#550 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codeatlasdev/atlas
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
tinystream-dev/tinystream#132 ·
-
contract good first issue testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Emmyt24/nova-launch#2436 ·
Maintainer thường phản hồi trong vòng 1 ngày