Before submitting#
Area#
apps/server
Steps to reproduce#
Reproduced in a throwaway Git project with a log-only action:
- Add a project action with Run in the thread's worktree when the thread settles enabled:
printf 'settle cwd=%s\n' "$PWD" >> /tmp/t3-settle-proof.log
- Launch a parent thread in a worktree and delegate one child with
delegate_task.
- Have the child call
t3_thread_organize(action="settle") and finish. Keep the parent running.
Expected behavior#
A delegated child's settlement should leave the shared worktree's lifecycle hooks to the owning parent. Please confirm whether excluding subagents is the intended rule.
Actual behavior#
The child becomes settled and the action runs in the parent's worktree while the parent is still running and unsettled. Both threads have the same worktreePath; the child's relationshipToParent is subagent.
As a control, settling the completed parent later runs the action again. The child explicitly requested settlement; this does not establish automatic settlement on ordinary child completion.
Impact#
A teardown action can stop an environment still used by the parent or other children. The reproduction used logging only.
Version or commit#
0.0.46-nightly.20261009.2873
Environment#
macOS arm64, T3 Code Nightly; Codex / gpt-6.1-sol.
Code context#
If confirmed, the proposed scope is a subagent guard plus focused child/parent tests.
Workaround#
Disable runOnSettle and run teardown manually from the owning parent.
Reproduced on Linux with the web dev server at main 70e5e384da: created a throwaway project with the log-only settle action, started a Codex parent in a worktree, and delegated a shared-worktree child using
gpt-6.1-sol. The child calledt3_thread_organize(action="settle")and completed. Its settle hook logged the shared worktree while the parent run remained running and its settlement override remained unset.Runtime transcript. No matching duplicate found among open issues; the auto-settle candidate report #19657 describes a different symptom.