Skip to content

fix(cli): clarify background Task orchestration - #13362

Merged
marius-kilocode merged 1 commit into
mainfrom
fix-wait-background-agents
Aug 24, 2026
Merged

fix(cli): clarify background Task orchestration#13362
marius-kilocode merged 1 commit into
mainfrom
fix-wait-background-agents

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Background Task execution already returns immediately and automatically retriggers the parent when a result arrives. The issue was ambiguous guidance that did not clearly distinguish work that can run independently from work whose result is needed before the parent proceeds.

This change makes the Task guidance generic:

  • Use foreground when the next step depends on the result.
  • Use background only while useful non-overlapping work remains.
  • Do not give the final answer until all required background results have arrived.

The change intentionally does not alter the Task lifecycle, notification payloads, runtime finish behavior, or add a tracking registry. The investigation and public-harness comparison are documented in #13360.

@kilo-code-bot

kilo-code-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • .changeset/clear-background-task-waiting.md
  • packages/opencode/src/tool/task.ts

Reviewed by grok-4.6 · Input: 70.8K · Output: 4.9K · Cached: 154.6K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit e1198ad into main Aug 24, 2026
32 checks passed
@marius-kilocode
marius-kilocode deleted the fix-wait-background-agents branch August 24, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants