You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
session: worker tasks in team chats inherit manager cwd ~ and unpruned find freezes on missing plandb doc #1561
area:sessionThe engine — turns, tasks, the toolbelt, checkpointsbugSomething the code does that it should notsev:criticalData loss, money spent wrongly, a false done, or the merge queue blocked
When a team manager or chat session located at home directory (/Users/...) delegates work or spawns tasks:
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.
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.
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
Ensure manager subtask derivation properly resolves and propagates the project repository root / active worktree rather than naked home folder ~.
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.
Make plandb CLI handle terminal/cancelled tasks cleanly without spurious un-claimed rejections on done.
—
Drafted with CodeAF · reviewed and owned by the author
area:sessionThe engine — turns, tasks, the toolbelt, checkpointsbugSomething the code does that it should notsev:criticalData loss, money spent wrongly, a false done, or the merge queue blocked
Activity
plandb: check terminal status before ownership check in Done, prune s…
session: fall back to project place workspace when workspace is non-r…
Consolidate verified CodeAF task, chat and runtime fixes (Agent-Field…