Amazon Q fails to open diff view on Windows due to incorrect file path encoding.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
Type: Bug
Description:
When I accept a code change suggested by Amazon Q, I try to view the changes (diff view). This fails with an "Unable to resolve resource" error.
The error log shows that the file path's backslashes (\) are being incorrectly URL-encoded as %5C.
Steps to Reproduce:
Use Amazon Q on Windows to suggest a code change.
Click the option to view the changes/diff.
The error "Unable to resolve resource" appears.
Error Log:
2025-09-12 15:25:31.889 [error] [Janela] Unable to resolve resource c:%5CApache24%5Chtdocs%5CbtrApp%5Csrc%5Capp%5Ccomponents%5Ccabecalho.component.html: Error: Unable to resolve resource c:%5CApache24%5Chtdocs%5CbtrApp%5Csrc%5Capp%5Ccomponents%5Ccabecalho.component.html
at YKe.r (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1226:21649)
at YKe.r (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1226:21635)
at async pTt.acquire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:27:3195)
at async ZKe.createModelReference (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1226:22967)
at async YP.resolve (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:534:15386)
at async Promise.all (index 1)
at async Xa.C (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:503:20953)
at async Xa.resolve (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:503:20789)
at async $$.setInput (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:598:31490)
at async AGe.S (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:58577)
Extension version: 1.94.0
VS Code version: Code 1.104.0 (f220831ea2d946c0dcb0f3eaa480eb435a2c1260, 2025-09-10T06:46:18.035Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-14500 (20 x 2611)|
|GPU Status|2d_canvas: enabled
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.69GB (4.15GB free)|
|Process Argv|--crash-reporter-id f451eb2d-3ddf-49ed-a699-1d25657ef497|
|Screen Reader|no|
|VM|0%|
A/B Experiments
```
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
7bh79656:31259953
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
aj953862:31281341
nesew2to5:31336538
agentclaude:31350858
nes-set-on:31351930
6abeh943:31336334
envsdeactivate2:31353495
0927b901:31350571
ovs_c:31383294
0cj2b977:31352657
cloudbuttont:31379625
retryenabled:31370050
todos-1:31384886
v2-prompt:31370220
3efgi100_wstrepl:31382709
trigger-command-fix:31379601
auto_model_enabled:31385282
```
Contributor guide
Research direction
Start by reproducing the Amazon Q diff-view failure on Windows and trace how the file path becomes the diff resource URI. The issue's error log shows backslashes encoded as %5C; done means accepted changes open in the diff view without an “Unable to resolve resource” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100