Skip to content

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

Closed

Description

@santoshkumarradha

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

Activity

  1. added
    bug
    area:session
    sev:critical
    on Sep 27, 2026
  2. added 2 commits that reference this issue on Sep 27, 2026
    caa6d39
    c82483b
  3. added a commit that references this issue on Sep 29, 2026
    ac84606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:sessionbugsev:critical

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions