Skip to content

fix(shell): initialize Windows PowerShell text output as UTF-8 - #563

Merged
agenteinstinct1-max merged 2 commits into
dev-vibecodedfrom
fix/543-powershell-utf8
Oct 24, 2026
Merged

agenteinstinct1-max merged 2 commits into
dev-vibecodedfrom
fix/543-powershell-utf8

Conversation

@agenteinstinct1-max

@agenteinstinct1-max agenteinstinct1-max commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

Refs #543

Type of change

  • Bug fix

What does this PR do?

Initialize Windows PowerShell host stdout/stderr and native-command text piping to UTF-8 without a BOM. Preserve the original command as its own line, shell arguments and exit status. Apply the helper to the core PowerShell argument builder, legacy/direct user-shell PowerShell invocation and V2 Bash execution string. Permission checks, saved command and warnings keep the original user command; shell invocation options remain unchanged.

This is partial coverage of #543, not a complete fix: the cmd encoding path remains outside this patch. The V2 PowerShell Windows runtime path was not exercised locally. The issue must stay open. No claim of actual Windows TUI validation is made.

How did you verify your code works?

Publication-side focused core tests:35passed,1skipped,109assertions. The real PowerShell test was skipped because PowerShell is not installed in this environment. Full legacy shell tests:25passed,71assertions. Formatting and diff whitespace checks pass.

Implementing worker separately reports real PowerShell7.5.4 on Linux with forcedCP1252: regression failed before helper and passed after; its focused core result36passed/115assertions. Worker red/green logs were inspected and match the reported counts; real PowerShell was not independently reproduced here. Worker focused strict helper/test typecheck also passed; that is not full core typecheck. Windows runtime tests are added but were not run locally. Worker core typecheck55s timeout was not a pass. Exact CI and independent review remain required before merge.

Screenshots / recordings

No Windows visual proof available; actual Windows output validation remains required for full issue closure.

Checklist

  • Focused local checks run with caveats recorded
  • Partial scope retained, no issue closure claimed

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@agenteinstinct1-max
agenteinstinct1-max merged commit 502b310 into dev-vibecoded Oct 24, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant