Skip to content

feat(powershell): compact WSL interop output - #3097

Open
lntutor wants to merge 1 commit into
rtk-ai:developfrom
lntutor:feat/2313-powershell-proxy
Open

feat(powershell): compact WSL interop output#3097
lntutor wants to merge 1 commit into
rtk-ai:developfrom
lntutor:feat/2313-powershell-proxy

Conversation

@lntutor

@lntutor lntutor commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add rtk powershell / rtk pwsh routing while preserving powershell.exe, pwsh, or powershell
  • normalize UTF-8 BOM and CRLF output from Windows interop
  • compact standard PowerShell Format-Table and Format-List padding
  • pass interactive, help/version, and ConvertTo-Json commands through unchanged
  • cap oversized generic output with full-output recovery and preserve failures verbatim

Verification

  • cargo test --all-targets --all-features
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo fmt --check
  • git diff --check
  • compiled proxy smoke tests for rewrites, table/BOM output, JSON passthrough, truncation, and exit-9 failure

Closes #2313

@CLAassistant

CLAassistant commented Jul 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@lntutor
lntutor force-pushed the feat/2313-powershell-proxy branch from 338c917 to 7f431b9 Compare July 31, 2026 00:12
@lntutor
lntutor force-pushed the feat/2313-powershell-proxy branch from 7f431b9 to 5f9620d Compare July 31, 2026 00:48
@lntutor

lntutor commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

The benchmark failure is unrelated to this change: mockhttp.org/json/1 rotates response payloads, while the benchmark compares two separate requests. I reproduced the same failure mode on develop and opened #3340 to make the curl JSON comparison deterministic with the repository fixture. All other checks on this PR pass.

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.

rtk should proxy powershell.exe for WSL→Windows interop (84 unhandled calls/30d)

2 participants