Show RAM usage in the VS Code status bar
Maintainer thường phản hồi trong vòng 1 ngày
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
- 68/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript, vscode
- Lĩnh vực
- desktop, developer-experience
Hướng nghiên cứu
Bắt đầu trong src/remote/remote.ts, nơi mục thanh trạng thái siêu dữ liệu của agent sử dụng sự kiện siêu dữ liệu đầu tiên làm văn bản trạng thái. Kiểm tra cách siêu dữ liệu từ coder stat mem và template Kubernetes mặc định được biểu diễn, sau đó theo dõi hành vi của tooltip. Hoàn tất khi workspace đang hoạt động có thể hiển thị bộ nhớ đã sử dụng, tổng bộ nhớ và phần trăm, đánh dấu rõ ràng mức sử dụng cao, giữ lại các chi tiết siêu dữ liệu và xử lý dữ liệu RAM bị thiếu hoặc không thể phân tích mà không ngụ ý rằng có một giá trị đọc hợp lệ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature request
Please add a way for the Coder Remote VS Code extension to show workspace RAM usage directly in the VS Code status bar, alongside or instead of the current first agent metadata value.
Today, Coder workspace templates commonly expose both CPU and RAM through agent metadata, for example:
metadata {
display_name = "CPU Usage"
key = "0_cpu_usage"
script = "coder stat cpu"
interval = 10
timeout = 1
}
metadata {
display_name = "RAM Usage"
key = "1_ram_usage"
script = "coder stat mem"
interval = 10
timeout = 1
}
The VS Code extension appears to render the first metadata value in the status bar and place the full metadata list in the tooltip. In practice this means CPU is often visible in the status bar, while RAM requires opening the Coder sidebar or hovering the status item.
Why RAM should be more visible
In Kubernetes-backed workspaces, CPU and RAM pressure have very different failure modes:
- When CPU maxes out, Kubernetes throttles the container and work usually just takes longer.
- When RAM maxes out, Kubernetes can OOM-kill the pod and restart the workspace.
That makes RAM usage much more important to watch continuously. A status-bar RAM indicator would give users time to stop processes, reduce workload, or resize the workspace before the pod is killed.
Suggested UX
Show RAM usage directly in the VS Code status bar when RAM metadata is available, for example:
RAM 54.1/64 GiB (85%)
or a compact variant:
54.1/64 GiB RAM (85%)
Possible behavior:
- Prefer metadata whose display name/key clearly represents RAM or memory usage.
- Keep CPU and other metadata available in the tooltip.
- Show a warning state when memory usage is high, such as above 80% or 90%.
- If RAM data is unavailable, do not show a misleading value; keep current behavior or explicitly indicate that memory usage is unavailable.
Acceptance criteria
- The VS Code status bar can show RAM usage for the active Coder workspace.
- The visible status text includes used memory, memory limit/total, and percentage when available.
- High-memory states are visually noticeable.
- Existing agent metadata tooltip behavior is preserved or improved.
- Missing/unparseable RAM metadata is handled explicitly and does not look like a successful live reading.
Relevant code paths
src/remote/remote.tscurrently creates the agent metadata status bar item and uses the first metadata event as the status text.coder/coderalready providescoder stat mem, and default Kubernetes template metadata includesRAM Usage, so this may be possible as a display-priority improvement without requiring new workspace telemetry.
- Ngôn ngữ chính
- TypeScript
- Star
- 131
- Fork
- 48
- Merge trung bình
- 4 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/vscode-coder
-
Surface non-blocking agent startup script failures to the userCó thể đã có người làm @EhabY đã nhận 3 ngày trước. Đang mở
coder/vscode-coder#1125 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Migrate CI setup to pnpm/setupCó thể đã có người làm @EhabY đã nhận 8 ngày trước. Đang mởtech-debt
coder/vscode-coder#1119 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement tech-debt
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
coder/vscode-coder#1118 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Design the VS Code Workspaces panelCó thể đã có người làm @chrifro đã nhận 11 ngày trước. Đang mở
coder/vscode-coder#1113 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable serverĐang mởenhancement tech-debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
coder/vscode-coder#1112 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của coder/vscode-coder
Issue tương tự
-
Resources: New palettes of MacaoĐang mởresources
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
railmapgen/rmg-palette#2445 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
danielmiessler/LifeOS#2242 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
good first issue hacktoberfest help wanted translation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
callstackincubator/appduct#129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100