Repository navigation
Conversation
Xuepoo
force-pushed
the
ctx-0018/fix-pty-seam-warnings
branch
2 times, most recently
from
August 26, 2026 16:44
55b961a to
177dc3a
Compare
CTX-0018: make the Windows ConPTY seam exercisable and add targeted allow(dead_code) - builder.rs: SpawnConfig now cfg_attr(windows, allow(dead_code)) with comment referencing ADR-0002 Tier-1 Windows follow-up slice - platform/windows.rs: Master/Child marked allow(dead_code) with seam comment; open_pty_and_spawn now touches SpawnConfig fields so they are considered read on cfg(windows) instead of dead - error.rs: flatten_upstream now cfg_attr(windows, allow(dead_code)) with comment (exercised on Unix, unused until Tier-1 Windows slice) - verified zero warnings: cargo check --workspace --all-targets and cargo check --workspace --all-targets --target x86_64-pc-windows-gnu (just check green)
Xuepoo
force-pushed
the
ctx-0018/fix-pty-seam-warnings
branch
from
August 26, 2026 16:45
177dc3a to
0959c32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Resolves dead-code warnings on cfg(windows) seam types in
crates/bitty-pty(platform/windows.rsandbuilder.rs) that were left non-blocking after CTX-0013.CarryCtx: CTX-0018
Changes (strictly
crates/bitty-pty/**, no API changes)builder.rs:SpawnConfignow#[cfg_attr(windows, allow(dead_code))]with documenting comment referencing the Tier-1 Windows follow-up slice (ADR-0002). Seam remains exercisable viaplatform::windows::open_pty_and_spawn.platform/windows.rs:Master/Childmarked#[allow(dead_code)]with seam comment;open_pty_and_spawnnow takesconfig: &SpawnConfigand touches all fields (program,args,env,cwd,cols,rows) so they are considered read oncfg(windows)— honest exercisability instead of masking.error.rs:flatten_upstreamnow#[cfg_attr(windows, allow(dead_code))]with comment (fully exercised on Unix viaplatform::unix, unused on Windows until Tier-1 slice).Verification
cargo check --workspace --all-targets→ zero warnings (linux)cargo check --workspace --all-targets --target x86_64-pc-windows-gnu→ zero warnings (verified afterrustup target add x86_64-pc-windows-gnu)just checkgreen:cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace --all-targets,actionlint,markdownlint-cli2crates/bitty-pty/**.Closes CarryCtx CTX-0018 — stops at
IN_REVIEW, hands off toopencode.