Browser Preview leaks WebView2 temp profiles: 5,577 folders / 46.5 GB in %LOCALAPPDATA%\Temp\github-app-browser-previews filled the system drive
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- desktop
Direzione di ricerca
Inizia dal ciclo di vita di Browser Preview utilizzato dai pannelli canvas e preview, quindi segui la creazione delle directory %LOCALAPPDATA%\Temp\github-app-browser-previews\github-app-browser-preview-*. Riproduci diverse preview e verifica che la loro chiusura o l’uscita dall’app rimuova i relativi profili WebView2; verifica inoltre che le directory obsolete risultanti da un arresto anomalo vengano gestite all’avvio.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Browser Preview leaks its temporary WebView2 profile directory on every use. Each preview creates a new %LOCALAPPDATA%\Temp\github-app-browser-previews\github-app-browser-preview-XXXXXX\EBWebView\ folder (~20 MB) and never deletes it when the preview is closed or when the app exits. On my machine this accumulated 5,577 folders / 46.5 GB in ~3 days and filled the system drive to 0 bytes free, which broke unrelated software (a game could no longer write save files).
Environment
| Field | Value |
|---|---|
| App version | 1.1.20 (%LOCALAPPDATA%\Programs\GitHub Copilot\github.exe) |
| OS | Windows 10 Pro 25H2 (build 26200) |
| WebView2 Runtime | 152.0.4191.66 |
| Disk | C: 200 GB, was at 0 bytes free when discovered |
Steps to reproduce
- Use the app normally with Browser Preview (canvas / preview panels) over a few sessions.
- Open
%LOCALAPPDATA%\Temp\github-app-browser-previews\. - Observe one
github-app-browser-preview-<random>folder per preview, each containing a fullEBWebViewprofile (cache, IndexedDB, GPU cache, etc.), none of which are removed.
Measurements
PS> (Get-ChildItem "$env:LOCALAPPDATA\Temp\github-app-browser-previews" -Force).Count
5577
PS> Get-ChildItem "$env:LOCALAPPDATA\Temp" -Force | sort by size
GB Name Modified
----- --------------------------- --------------------
46.47 github-app-browser-previews 9/14/2026 9:02:17 PM
0.51 DLSS5-Swapper
0.18 Highlights
...
Every folder had a LastWriteTime between 2026-09-11 and 2026-09-14, i.e. this is ~12 GB/day of growth under normal use. Each folder is roughly 20 MB and contains only EBWebView\ (the WebView2 user-data dir).
Deleting all folders older than 30 minutes freed 47.7 GB and the app kept working normally, so nothing in there is needed after the preview is closed.
Expected behavior
- Closing a Browser Preview (or exiting the app) should delete its
github-app-browser-preview-*user-data directory. - Ideally, on startup the app should also sweep stale directories left over from a crash.
- Alternatively, reuse a single persistent user-data dir per app instance instead of creating a new one per preview.
Actual behavior
Directories are created per preview and never removed. Disk usage grows unbounded until the system drive is full.
Workaround
Get-ChildItem "$env:LOCALAPPDATA\Temp\github-app-browser-previews" -Force |
Where-Object { $_.LastWriteTime -lt (Get-Date).AddMinutes(-30) } |
Remove-Item -Recurse -Force
Filed by Copilot on behalf of the user, from a Copilot chat session that diagnosed the full disk.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 2.1k
- Fork
- 157
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/app
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
Issue simili
-
comp/desktop P3 type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
NousResearch/hermes-agent#118866 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Package Request]: Raven ApertaHelp-Wanted Package-Request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/winget-pkgs#438682 ·
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/studio#4908 ·
-
bug popups
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100