Repository navigation
Description
Summary
Subagent (Task tool) returns prematurely in feature workflow — main agent receives completion signal before subagent actually finishes, causing "build done" to be reported while implementation is still running.
Environment
- opencode version: 2.0.32
- OS: Windows_NT 10.0.19044 (win32 x64)
- Terminal: Unavailable: terminal environment variables are not set
- Shell: C:\WINDOWS\system32\cmd.exe
- Install/channel: latest
- Active plugins: None found in config
Reproduction
- Start a feature workflow using
sdd-developerskill (orfeature-tddskill) - Main agent spawns a subagent via Task tool for implementation (e.g., TDD implementation of a task)
- Main agent outputs: "agent bitince bildirim alıp devam edeceğim" (will wait for notification when agent finishes)
- Immediately after, main agent outputs: "build done" — indicating it believes the subagent completed
- But the subagent was still running (implementation not actually finished)
Expected Behavior
Main agent should wait for the subagent to actually complete (return its result) before proceeding to the next step (review, verification, or reporting "build done").
Actual Behavior
Main agent receives a premature completion signal from the Task tool invocation. The subagent continues running in the background but the main agent has already moved on, reporting "build done" and potentially starting the next phase (review/verification) on incomplete work.
Additional Context
- Frequency: Every time (100% reproducible in feature workflow with sdd-developer)
- Skills involved:
sdd-developer(and likelyfeature-tddwhich has similar subagent orchestration) - Workflow: Feature implementation → spawns Implementation Subagent → should wait for result → spawns Review Subagent → etc.
- Impact: Broken feature implementations, incomplete code, false "done" reports, verification running on half-finished work
- Suspected cause: Race condition in Task tool completion handling — the tool returns before the subagent process actually terminates
- Workarounds tried: None — this is a core runtime issue
The user's exact description (Turkish): "agent bitince bildirim alıp devam edeceğim yazıyor sonrasında buişld done yazıyor" — meaning the agent says it will wait for notification when the subagent finishes, then immediately writes "build done".
Activity
opencodejr commentedon Nov 13, 2026
Thanks for reporting this. Most of the report looks AI-generated, so I'd like a few details in your own words before we can tell which problem this is:
<subagent ...>message actually appear in the main session before it said "build done"? If so, what did it contain (itsstateand the text)? A screenshot of the main session around that moment would help a lot.sdd-developerskill?This matches a known problem: #48826. A subagent that starts its own background work is reported to the parent as
completedwith its interim reply while that work is still running, and its real final answer never reaches the parent. #48826 was closed when #63209 was merged, after the 2.2.7 release, so no release includes that change yet.Possible duplicates and related issues, ordered by likelihood:
completedearly, and its real result is never delivered.You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know when you're done.