Screenshot runs start a runner and create Cortex's files in the vault they open

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

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
58/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ệ
electron, nodejs, typescript
Lĩnh vực
desktop-dev

Hướng nghiên cứu

Start with the screenshot entry point behind npm run desktop:shot and the SealedChip component in RailStatus.tsx, which requests seal status from cortex-runner.js serve. Find where the runner is spawned in screenshot mode, and where the nested .gitignore files and .vault-meta/cortex/state/colours.json are written. Done when a screenshot run on a fresh npm run sample vault starts no runner and leaves the vault file tree unchanged.

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

Mô tả

bug

npm run desktop:shot is meant to open the vault read-only. On a vault Cortex has not used before, a screenshot run still:

  • starts a cortex-runner.js serve child process: the side rail's "Sealed through" line (SealedChip in RailStatus.tsx) asks the runner for its seal status
  • creates Cortex's own files in the vault: the nested .gitignore files of its folders and .vault-meta/cortex/state/colours.json

These are Cortex's runtime files, not notes, and a vault Cortex already uses has them already. But a screenshot run should leave the vault exactly as it found it and start no runner.

Found while adding the stand-in agents status (#9), and reproduced on unchanged main with a fresh npm run sample vault.

Fix idea: in screenshot runs, skip the seal-status request (or answer it from a stand-in, as with the agents status) and keep colour slots in memory instead of saving them.

Ngôn ngữ chính
TypeScript
Star
2
Fork
1
Merge trung bình
5 phút
Pull request đã merge (30 ngày)
19

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

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 A21-devs/cortex

Tất cả issue của A21-devs/cortex

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.