Files
analysis_claude_code/s18_worktree_isolation/code.py
root 43beba5e51 fix(s18): update wt_ctx after idle_poll auto-claims a worktree task
idle_poll wrote the worktree path into the prompt text but never
updated wt_ctx["path"], so the teammate's bash/read/write tools
still ran in the main repo instead of the bound worktree.

Change idle_poll to return (result, claimed_task_id) tuple, and
update wt_ctx in the caller when a worktree-bound task was claimed.
s20 already handles this correctly by passing worktree_context into
idle_poll directly.

Closes #475
2026-07-29 01:23:37 +08:00

38 KiB