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

Đang mở Phù hợp với người mới
#1,057 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
77/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ệ
python
Lĩnh vực
cli, testing

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

  1. A v7 project with the ticket tree (_bmad/method/scripts/tickets.py present) and an active initiative whose folder holds deferred-work.md with DW entries.
  2. Central config still resolves the v6 keys planning_artifacts and implementation_artifacts (for example [modules.bmm] in _bmad/config.toml, or _bmad/bmm/config.yaml).
  3. 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_entries calls _project_paths(project) without want_tickets (tui/data.py#L1467).
  • pending_missed_decisions has the same call (tui/data.py#L1552).
  • bmadconfig.load_paths switches to v7 only when want_tickets is 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

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 bmad-code-org/bmad-loop

Tất cả issue của bmad-code-org/bmad-loop

Issue tương tự

Thêm issue về Python

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.