Profile UI listed from outside the profile folder fails silently

Đang mở
#8 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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start with the check that emits "is outside the profile" when a profile's ui entries resolve outside its folder, and compare it with the path rule that already lets daemon extensions load from outside. Reproduce with a profile like chief-of-staff/profile.ts listing ui: ['../default/run/ui.tsx']. Done means either the UI loads, or the refusal appears in superego extensions and extension reload output; the maintainers must first decide which of the two the fix should be.

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

Mô tả

A profile that lists a UI file outside its own folder (e.g. chief-of-staff/profile.ts with ui: ['../default/run/ui.tsx']) has its whole UI rejected: the daemon refuses with "../default/run/ui.tsx is outside the profile", and that error only shows in the window's dev-tools console. Daemon extensions from outside the folder load fine, so the profile looks half-working (tools work, header views and panes from other UI files in the profile never appear).

superego extension test can't catch it because its test window takes the UI code directly instead of loading it from the profile's files.

Suggestions: allow UI paths outside the profile the same way daemon extensions are allowed (or within the user's profiles dir), and surface the refusal in superego extensions / extension reload output and the window. Workaround used: a symlink chief-of-staff/run -> ../default/run.

Ngôn ngữ chính
TypeScript
Star
44
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 githubnext/superego

Tất cả issue của githubnext/superego

Issue tương tự

Thêm issue về TypeScript

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.