Skip to content

fix(cli): clarify background process waits - #13224

Merged
marius-kilocode merged 1 commit into
mainfrom
prevent-bash-sleep-looping
Aug 19, 2026
Merged

fix(cli): clarify background process waits#13224
marius-kilocode merged 1 commit into
mainfrom
prevent-bash-sleep-looping

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

The background process tool description did not clearly distinguish a persistent process from a blocking wait. This caused agents to launch sleep as a tracked background process, which returned immediately and led to repeated status checks instead of blocking the turn.

Clarify that start returns immediately and reserve the tool for processes that must continue independently. Explicitly direct fixed waits to a normal blocking shell command with a sufficient timeout.

@kilo-code-bot

kilo-code-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • .changeset/blocking-shell-waits.md
  • packages/opencode/src/kilocode/tool/background-process.txt

Reviewed by grok-4.6 · Input: 41.3K · Output: 4.1K · Cached: 237.6K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit c356c2f into main Aug 19, 2026
45 of 48 checks passed
@marius-kilocode
marius-kilocode deleted the prevent-bash-sleep-looping branch August 19, 2026 09:32
teknium1 added a commit to NousResearch/hermes-agent that referenced this pull request Aug 19, 2026
Port from Kilo-Org/kilocode#13224: fixed waits belong in foreground terminal calls, while background mode is reserved for independently running processes.
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