-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell Integration causes weird characters in PowerShelll prompt #242507
Comments
If this setting is disabled, prompt seems ok but shell integration with Copilot Agent is not working |
Could you explain what you mean by Disabling "terminal.integrated.shellIntegration.environmentReporting" to false should resolve your particular issue for the prompt, but that shouldnt affect other things that are related to shell integration in general. |
I am using Copilot Edits in Agent mode. It should be able to read the outputs of the commands that it sends to the terminal when shellIntegration is enabled. It was not able to do so if it is marked as enabled. Actually after a complete restart and a few updates, integration problem seems to be resolved. |
@tanrikut do you have
We're tracking a few issues related to the reliability of the run in terminal copilot tool. This is the main one: #242195 |
@Tyriar yes both are set. (enabled) |
Type: Bug
When I enable shell integration with PowerShell, the injected script causes extremely long text with weird characters inside. It seems like the contents of PATH environment variable or so with wrong encoding.
尰\x5cu0085巸\x5cu0085\x3bC:\x5c\x5cUsers\x5c\x5ctkoray\x5c\x5c.dotnet\x5c\x5ctools\x3bC:\x5c\x5cUsers\x5c\x5ctkoray\x5c\x5cAppData\x5c\x5cLocal\x5c\x5cPrograms\x5c\x5cFiddler\x3bC:\x5c\x5cUsers\x5c\x5ctkoray\x5c\x5c.dotnet\x5c\x5ctools\x3bC:\x5c\x5cUsers\x5c\x5ctkoray\x5c\x5cAppData\x5c\x5cLocal\x5c\x5cMicrosoft\x5c\x5cWindowsApps\x3bC:\x5c\x5cUsers\x5c\x5ctkoray\x5c\x5cAppData\x5c\x5cLocal\x5c\x5cMicrosoft\x5c\x5cWinGet\x5c\x5cLinks\x3bC:\x5c\x5cUsers\x5c\x5ctkoray\x5c\x5cAppData\x5c.........
I tried a few settings combinations with decorations, shell integration and envrionment reporting and see that enabling "terminal.integrated.shellIntegration.environmentReporting" causes this issue. As workaround, this setting can be disabled
VS Code version: Code - Insiders 1.98.0-insider (c7a5cfe, 2025-02-28T22:42:41.870Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (41)
A/B Experiments
The text was updated successfully, but these errors were encountered: