Two chats, one session - buggy tool calls
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
No files or tests are named. Start by tracing how chats in one workspace handle tool-call completion and approval, and how their HTTP streams are managed; the report describes a failure when one chat advances while another awaits approval. Done means activity in one chat no longer causes the other chat to fail, with a regression test covering that interaction.
由索引模型根据 Issue 内容生成。
描述
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug
When having two chats for one workspace I noticed a strange behavior (with openai-chat but it doesn't probably make any difference).
- First chat finished some tool call and nothing is happening.
- The second chat is waiting for tool call approval
- Approving the tool call in the second chat will result in error: closed in the first chat.
- And this is the error I see in shared stderr
{:exception #error {
:cause EOF reached while reading
:via
[{:type java.io.IOException
:message closed
:at [jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream current ResponseSubscribers.java 448]}
{:type java.io.EOFException
:message EOF reached while reading
:at [jdk.internal.net.http.Http2Connection$Http2TubeSubscriber onComplete Http2Connection.java 1885]}]
:trace
[[jdk.internal.net.http.Http2Connection$Http2TubeSubscriber onComplete Http2Connection.java 1885]
[jdk.internal.net.http.common.SSLTube$DelegateWrapper onComplete SSLTube.java 276]
[jdk.internal.net.http.common.SSLTube$SSLSubscriberWrapper complete SSLTube.java 440]
[jdk.internal.net.http.common.SSLTube$SSLSubscriberWrapper onComplete SSLTube.java 541]
[jdk.internal.net.http.common.SubscriberWrapper checkCompletion SubscriberWrapper.java 474]
[jdk.internal.net.http.common.SubscriberWrapper$DownstreamPusher run1 SubscriberWrapper.java 334]
[jdk.internal.net.http.common.SubscriberWrapper$DownstreamPusher run SubscriberWrapper.java 259]
[jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask run SequentialScheduler.java 182]
[jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask run SequentialScheduler.java 149]
[jdk.internal.net.http.common.SequentialScheduler$SchedulableTask run SequentialScheduler.java 207]
[jdk.internal.net.http.common.SequentialScheduler runOrSchedule SequentialScheduler.java 280]
[jdk.internal.net.http.common.SequentialScheduler runOrSchedule SequentialScheduler.java 233]
[jdk.internal.net.http.common.SubscriberWrapper outgoing SubscriberWrapper.java 232]
[jdk.internal.net.http.common.SSLFlowDelegate$Reader processData SSLFlowDelegate.java 540]
[jdk.internal.net.http.common.SSLFlowDelegate$Reader$ReaderDownstreamPusher run SSLFlowDelegate.java 283]
[jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask run SequentialScheduler.java 182]
[jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask run SequentialScheduler.java 149]
[jdk.internal.net.http.common.SequentialScheduler$SchedulableTask run SequentialScheduler.java 207]
[java.util.concurrent.ThreadPoolExecutor runWorker ThreadPoolExecutor.java 1144]
[java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java 642]
[java.lang.Thread run Thread.java 1583]]}}
To Reproduce
- It is hard to reproduce this one. It looks like it is happening only when one chat has finished tool call and wants to advance while the second chat waits for approval. I hope the error will be helpful enough.
Expected behavior
One chat can't influence the second.
- 主要语言
- Clojure
- 星标
- 1k
- 派生
- 82
- 平均合并
- 2 天
- 30 天内合并 PR
- 19
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
editor-code-assistant/eca 的其他 Issue
-
Models doesn't work when fetchModels: false is used可能已有人在做 @zikajk 于 5 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
editor-code-assistant/eca#661 · 已指派 1 人 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 52/100
editor-code-assistant/eca#669 ·
维护者通常 2 天内回复
-
Anthropic API-key requests fail with "credit balance is too low"可能已有人在做 @stamdrovas 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
editor-code-assistant/eca#666 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
editor-code-assistant/eca#664 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 56/100
editor-code-assistant/eca#662 · 1 个 reaction ·
维护者通常 2 天内回复
查看 editor-code-assistant/eca 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
needs triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
.Frontend .Team/UXWest Priority:P3 Querying/Filters Type:Bug
难度 2/5 1-3 小时 新手友好度 76/100
metabase/metabase#85298 · 1 条评论 ·
维护者通常 1 天内回复
-
pgwire tokens-reqd
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
Evals take an extra 40ms each on Linux, since the server doesn't set TCP_NODELAY可能已有人在做 @bbatsov 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 3 天内回复