Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Browser Preview leaks WebView2 temp profiles: 5,577 folders / 46.5 GB in %LOCALAPPDATA%\Temp\github-app-browser-previews filled the system drive

Đang mở
#3,874 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
desktop

Hướng nghiên cứu

Bắt đầu từ vòng đời của Browser Preview được các panel canvas và preview sử dụng, sau đó theo dõi việc tạo các thư mục %LOCALAPPDATA%\Temp\github-app-browser-previews\github-app-browser-preview-*. Tạo lại nhiều preview và xác minh rằng việc đóng chúng hoặc thoát app sẽ xóa các profile WebView2 của chúng; đồng thời kiểm tra rằng các thư mục cũ do một sự cố gây ra được xử lý khi khởi động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

  1. Use the app normally with Browser Preview (canvas / preview panels) over a few sessions.
  2. Open %LOCALAPPDATA%\Temp\github-app-browser-previews\.
  3. Observe one github-app-browser-preview-<random> folder per preview, each containing a full EBWebView profile (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.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
157
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/app

Tất cả issue của github/app

Issue tương tự

Thêm issue về Desktop Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.