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

Hide Install Coder Desktop / Install CLI items in UserDropdown when already installed

Đang mở
#28,288 1 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
cli
Lĩnh vực
cli, desktop, frontend

Hướng nghiên cứu

Bắt đầu bằng việc xem xét UserDropdownContent và PR #28244, nơi đã giới thiệu các mục cài đặt. Điều tra các tín hiệu phía trình duyệt được đề xuất để phát hiện việc cài đặt Coder Desktop và CLI, sau đó xác định xem có tín hiệu đáng tin cậy hay không. Công việc được xem là hoàn tất khi các mục tương ứng được ẩn nếu việc phát hiện là đáng tin cậy, hoặc khi các phát hiện được ghi lại nếu không đáng tin cậy.

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

Mô tả

Background

Follow-up from #28244 (DEVEX-722), which added an Install Coder Desktop item to the UserDropdown, sitting above the existing Install CLI item.

During review, Christin suggested that we only surface these install options when the respective tool has not been installed yet. It was intentionally left out of scope for that PR, and we agreed to track it as a follow-up.

Proposal

Hide the Install Coder Desktop and Install CLI items in UserDropdownContent when the user already has the respective tool installed.

Considerations / open questions
  • There is no reliable browser-side API to detect whether a native desktop application is installed. Some ideas to explore:
    • Custom URL scheme / protocol handler probing (e.g., attempt to open a coder:// deep link and detect success/failure).
    • A signal sent from Coder Desktop itself (e.g., a local endpoint, a cookie, or a header) that the web app can read.
    • Detecting a running local agent/session initiated by Coder Desktop.
  • For the CLI, detection is even trickier from the browser; we may need to rely on a heuristic (e.g., "has the user ever downloaded the CLI or authenticated a session via CLI on this deployment").
  • UX: decide whether to hide the item entirely, collapse it into a submenu, or show it with a "installed" state.
Acceptance criteria (draft)
  • Investigate feasible detection mechanisms for Coder Desktop (and, if practical, the CLI).
  • If a reliable signal is available, hide the corresponding Install … item in the UserDropdown when the tool is installed.
  • If no reliable signal is available, document the findings and close the issue.
References

Created on behalf of @jakehwll

Ngôn ngữ chính
Go
Star
16.6k
Fork
1.6k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
560

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 coder/coder

Tất cả issue của coder/coder

Issue tương tự

Thêm issue về Go

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.