productivity plugin: dashboard.html forgets TASKS.md / memory folder on every reload
Maintainer thường phản hồi trong vòng 1 ngày
@AbarnaaSree đang làm issue này rồi.
Từ ngày 17/9/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 84/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- html, javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu với productivity/skills/dashboard.html và dashboard-reconnect.patch đính kèm; kiểm tra luồng showOpenFilePicker/showDirectoryPicker hiện có và markup của trạng thái trống. Xác minh trong một trình duyệt dựa trên Chromium rằng việc khôi phục sau khi tải lại hoạt động, các lời nhắc quyền cung cấp Reconnect, các picker thay thế vẫn khả dụng và các mục đã di chuyển hoặc bị xóa sẽ quay về picker thông thường.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
dashboard.html (from the productivity plugin) uses the File System Access API (showOpenFilePicker / showDirectoryPicker) to load TASKS.md and the memory/ folder. Every time the dashboard is reopened — a new browser tab, a restart, even just closing and reopening the file — it forgets the file/folder you picked last time and makes you re-select both from scratch. For a dashboard meant to be a daily driver, that's a meaningful bit of friction.
Proposed fix
The File System Access API supports persisting a FileSystemFileHandle / FileSystemDirectoryHandle in IndexedDB and re-querying permission on it later (handle.queryPermission() / handle.requestPermission()), without re-showing the picker dialog. I've implemented this in our own copy of dashboard.html:
After a successful pick, the handle is saved to a small IndexedDB store (productivity-dashboard / handles).
On page load, the dashboard tries to restore the saved TASKS.md handle and memory folder handle:
If permission is still granted, it reloads silently — no prompt at all.
If permission needs reconfirming (prompt state), the empty-state screen swaps its button to a one-click "Reconnect" instead of the full file picker.
Either way, a second button — "Choose a different file" / "Choose a different folder" — stays visible so switching to a different file is never blocked by the reconnect flow.
If the file's been moved/deleted, it falls back to the normal picker automatically.
This only touches dashboard.html (two new small buttons in the empty-state markup, plus the IndexedDB helper + refactored load functions in the script). No changes to TASKS.md/CLAUDE.md format, no new dependencies, no build step.
A patch is attached (dashboard-reconnect.patch) generated against the current productivity/skills/dashboard.html, and I'm happy to open this as a PR directly if that's preferred over a patch on an issue.
Caveats worth noting for reviewers
This relies on the File System Access API, so it only works in Chromium-based browsers (Chrome, Edge, etc.) — same limitation the dashboard already has today for the picker itself.
The saved handle lives in the browser's IndexedDB for the page's origin (typically shared across local file:// pages in Chromium), not in the markdown files themselves, so it's per-browser/per-machine and never travels with the files — confirmed this doesn't leak across users if the same dashboard.html is shared or copied.
- Ngôn ngữ chính
- Python
- Star
- 36.8k
- Fork
- 4.1k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 17
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
- Đọ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 anthropics/knowledge-work-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
anthropics/knowledge-work-plugins#1357 · 1 bình luận ·
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 75/100
anthropics/knowledge-work-plugins#1308 · 1 bình luận ·
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 72/100
anthropics/knowledge-work-plugins#1306 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
package_data_skill.py reports success with an empty ZIP under .claudeCó thể làm lại được @swati781895-netizen đã nhận 48 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anthropics/knowledge-work-plugins#1298 · 4 bình luận ·
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
anthropics/knowledge-work-plugins#1297 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anthropics/knowledge-work-plugins
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
SQL Lab: pasting text that matches no database into the "Data connection" select throws TypeErrorĐang mở#bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug crash needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Community-Access/quill#2135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
munendra07-tech/agent-crashtest#20 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
braveapi: time range filter is sent as time_range, which the Brave API ignores (needs freshness)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày