You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] macOS: persistent Bash tool hangs on commands containing ! in sdk-minimal
#8591
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
问题描述
使用内置 sdk-minimal bundle,通过 Python SDK 调用 Bash 工具时,包含
!的简单命令会卡住。普通对话正常,但以下命令停在
tool/call事件,长时间没有tool/result:此前同类调用在约 300 秒后返回超时。
环境
复现步骤
tool/call中的实际命令包含Hello, World!。tool/call,没有及时返回工具结果。预期:输出
Hello, World!并正常退出。初步排查
相关代码:
默认 Bash 参数包含
--noprofile --norc -i。工具使用
eval -- $'...'包装命令,并通过起止标记识别执行结果。在本机用相同包装方式进行独立 PTY 测试时,包含
!的命令触发了:起止标记也没有执行。这可能导致工具一直等待标记,直到超时。
在独立 Bash 测试中,添加
+H禁用 history expansion 后,命令及结束标记均正常执行。尚未完成添加
+H后的完整 DSH 对照测试,因此以上是初步定位,供维护者确认。All reactions