Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

session: worker tasks in team chats inherit manager cwd ~ and unpruned find freezes on missing plandb doc

Đã đóng
#1,561 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/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ệ
go, sqlite

Hướng nghiên cứu

Start by tracing manager subtask derivation and the worker instruction path to determine where the repository root is lost. Then inspect filesystem discovery guidance and the plandb task lifecycle, especially terminal or cancelled tasks. Done means delegated work uses the active worktree, discovery avoids the listed heavy directories, and plandb done handles externally managed or cancelled tasks without a spurious claim error.

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

Mô tả

area:session bug sev:critical
Problem

When a team manager or chat session located at home directory (/Users/...) delegates work or spawns tasks:

  1. Subtask worker inherits the manager's directory (~) as ground instead of the git repository worktree, causing relative doc references such as docs/design/plandb-cli/DESIGN.md to fail.
  2. In response to the missing document, the agent falls back to an unpruned find . -name "DESIGN.md" -o -name "*plandb*" scanning the entire home drive, freezing turns for 30s+ across multiple attempts.
  3. In plan-born tasks, tasks created under the engine supervisor collide with SQLite plandb.db, causing plandb done t-<id> to fail with task is not claimed when upstream cancelled or managed outside plandb.
Proposed Fix
  1. Ensure manager subtask derivation properly resolves and propagates the project repository root / active worktree rather than naked home folder ~.
  2. Safeguard tool guidance and belt execution to prune common heavy directories (.git, node_modules, vendor, .venv, Library) on filesystem discovery commands, and inline plandb contract rules into worker instructions.
  3. Make plandb CLI handle terminal/cancelled tasks cleanly without spurious un-claimed rejections on done.

—
Drafted with CodeAF · reviewed and owned by the author

Ngôn ngữ chính
Go
Star
115
Fork
14
Merge trung bình
9 giờ 44 phút
Pull request đã merge (30 ngày)
775

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

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. 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 Agent-Field/CodeAF

Tất cả issue của Agent-Field/CodeAF

Issue tương tự

Thêm issue về Go

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.