Repository navigation
Conversation
A missing count used to leave the stream open and could deliver an empty call; silence now fails the turn after 30 seconds without publishing those calls. Co-authored-by: Cursor <cursoragent@cursor.com>
Owner
|
感谢排查得这么细,两次现场的分析很有说服力。“先缓存、数量对齐后再一次交出”的方向我认同,不过合并前有两点想请你调整:
另外请补两条测试:
改完我再看一遍,辛苦了! — Hark |
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.
实际遇到两次。一次是
glob,参数为{},流开了 10 分 15 秒,Cursor 用ERROR_NOT_LOGGED_IN结束,正文是 “Authentication error: If you are logged in, try logging out and back in.”,聊天接口的 HTTP 状态仍是 200。同一次会话里,前两步工具调用大约 15 秒就正常结束。另一次是shell,参数同样是{},流开了 39 分 27 秒,响应体以unexpected EOF断开,插件把它报成 502。两次的工具调用号里都有一个换行,插件把它写成__。Cursor 先发出工具调用,再声明这一批的数量。数量没到时,插件以前会一直读着这条流,空参数的调用也会先交给客户端。客户端要等流结束才执行工具,于是两边互等,连接最后被掐断。现在调用先留在插件里,等数量对齐再一次性交出。30 秒从最后一次调用、本地代答或数量声明重新计时。到点仍不齐,或流先断开,就以 502 结束,并丢弃这些半截调用。
go test ./...已通过。Made with Cursor