Repository navigation
feat(tools): yield long-running Bash after the initial wait - #2536
Merged
Merged
Conversation
caulif
marked this pull request as ready for review
November 23, 2026 15:16
Collaborator
|
感谢贡献,已保留原提交并合并。符合条件的本地父 Agent Bash 在 10 秒后可返回运行中的作业,Host 保留同一进程和原超时;有后续工具的同批调用仍等待 Bash 完成。 已在最新 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1908
实际使用中,Agent 较少显式选择
runInBackground,导致普通 Bash 里的长命令会一直占用当前工具调用。这份改动让本地父 Agent 的普通 Bash 默认先等最多 10 秒。命令已结束时照常返回结果,仍在运行时返回有界输出和既有 Bash 作业 ID,Agent 可以先做别的事,之后用TaskWait取结果或用TaskStop停止。Host 继续管理同一个进程,原有命令超时从启动开始计时。同批后续工具仍等前面的 Bash 完成。远程工作区、子代理、模式门禁和补丁命令继续使用原有等待方式。显式后台启动和 #2372 的续跑路径保持原有行为。
验证