tui: Deferred work pane is empty on a mixed v6/v7 install — deferred_entries and pending_missed_decisions don't resolve paths with want_tickets
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 77/100
Hướng nghiên cứu
Bắt đầu tại src/bmad_loop/tui/data.py ở deferred_entries và pending_missed_decisions, sau đó đọc _project_paths và bmadconfig.load_paths để theo dõi cách want_tickets chọn đường dẫn. Thêm một trường hợp hồi quy trong tests/test_tui_data.py sử dụng cấu hình v6/v7 kết hợp và sổ cái initiative; hoàn thành khi cả hai hàm tìm thấy sổ cái v7 và việc phân giải đường dẫn chỉ dùng v6 vẫn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
On a BMAD v7 project whose central config still carries the v6 keys [modules.bmm] planning_artifacts / implementation_artifacts (the installer writes them, so a migrated v6 → v7 project typically has them), the TUI's Deferred work pane shows "deferred ledger unavailable" even though the v7 ledger exists and parses. The ticket boards in the same TUI resolve the project as v7 correctly.
Seen on v0.13.2; the same code is on main at 8224d535e09a68c9ed5144e32e0842396acc646d.
Reproduce
- A v7 project with the ticket tree (
_bmad/method/scripts/tickets.pypresent) and an active initiative whose folder holdsdeferred-work.mdwith DW entries. - Central config still resolves the v6 keys
planning_artifactsandimplementation_artifacts(for example[modules.bmm]in_bmad/config.toml, or_bmad/bmm/config.yaml). bmad-loop tui→ Deferred work.
Expected: the initiative's deferred-work.md entries, as bmad-loop sweep and tickets runs see them.
Actual: "deferred ledger unavailable". Calling data.deferred_entries(project) returns None; data._project_paths(project) resolves the v6 era with the ledger at <implementation_artifacts>/deferred-work.md, which no longer exists after the migration.
With want_tickets=True the same project resolves v7, the ledger path is <output_folder>/<active_initiative>/deferred-work.md, and parse_ledger returns every entry, so the ledger format is not the problem.
Cause
deferred_entriescalls_project_paths(project)withoutwant_tickets(tui/data.py#L1467).pending_missed_decisionshas the same call (tui/data.py#L1552).bmadconfig.load_pathsswitches to v7 only whenwant_ticketsis set or no v6 key resolves (bmadconfig.py#L676), so a mixed install answers v6 here.- The ticket boards already pass
want_tickets=True(tui/data.py#L1324, #L1349), and_project_paths's docstring says that flag "resolves as a tickets run does, so a mixed install answers v7".
Possible fix
Resolve the ledger the way tickets runs and sweeps do on a v7 project: pass want_tickets=True at both call sites when the v7 marker is present (or always, if load_paths already falls back correctly on a pure v6 project). A test in tests/test_tui_data.py with a mixed config (v6 keys + v7 marker + initiative ledger) would pin it.
Workaround
Deleting the v6 keys isn't a good fix: the installer manages them, and v6 skills may still read them. Pointing implementation_artifacts at the active initiative's folder in a user override makes the pane read the right file, but it has to follow every initiative switch.
- Ngôn ngữ chính
- Python
- Star
- 196
- Fork
- 78
- Merge trung bình
- 9 giờ 24 phút
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 bmad-code-org/bmad-loop
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bmad-code-org/bmad-loop#1063 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
psmux: task window name starting with '-' creates no window; session reads as crashedCó thể đã có người làm @RECOHA đã nhận 8 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
bmad-code-org/bmad-loop#1061 ·
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 69/100
bmad-code-org/bmad-loop#973 ·
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
bmad-code-org/bmad-loop#965 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TeA plugin: consume scoped gate artifacts from TeA 4.6.1Có thể đã có người làm @muratkeremozcan đã nhận 5 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
bmad-code-org/bmad-loop#1065 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bmad-code-org/bmad-loop
Issue tương tự
-
Ubuntu for Debian DevelopersĐang mởDMB 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
ubuntu/ubuntu-project-docs#921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
⏳ Pending feedback 🐛 Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
jumpserver/jumpserver#18282 · 1 bình luận ·
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 76/100
ClickHouse/loom#2014 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
future-agi/future-agi#5274 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ 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 2 ngày