Agent CLI output contains mojibake in Windows console
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
## Type of bug
Bug
## Description
When running the Agent CLI from a Windows console, symbols in the Agent Host output are rendered as mojibake (for example, `Γ₧€`-like sequences) instead of the intended glyphs. The same corruption appears in `code-insiders agent ps` output around the session status.
The CLI appears to pipe Agent Host output through Node rather than inheriting the Windows console. This may cause the Agent CLI to assume UTF-8 output while the console uses a different code page.
## Steps to reproduce
1. Open a Windows console.
2. Start the Agent Host with `code-insiders agent`.
3. Run `code-insiders agent ps`.
4. Observe garbled characters before the Tunnel/Local/Network/Manage labels and around the session status.
## Expected behavior
Agent CLI output renders correctly in the active Windows console encoding. If Unicode output is not safe, the CLI should fall back to ASCII.
## Version
Visual Studio Code Agent Host `1.138.0`.
Contributor guide
Assessment
This issue has not been assessed yet.