littlebird69
littlebird69
+1, still reproducible on **2.0.4** (Windows 11 host, Docker Desktop, JDK 25). `DockerSandbox` builds `docker exec ... sh -c ` with `ProcessBuilder` ([DockerSandbox.java#L150-L160](https://github.com/agentscope-ai/agentscope-java/blob/v2.0.4/agentscope-harness/src/main/java/io/agentscope/harness/agent/sandbox/impl/docker/DockerSandbox.java#L150-L160)). On Windows, the JDK joins the argument...
感谢认领!方案方向没问题。有几个细节如果没处理好会**静默**出错,提一下: 1. **close 必须严格排在状态保存之后。** `saveAgentState` 是在 `doOnSuccess` 里读 `ra.getAgentState()` 的,而 `close()` 会调用 `clearStateCache()`。如果 close 先于它或与它并列执行,续接会话就会存进一份空状态,且不报任何错。把 close 挂在最外层的 `doFinally` 上就能保证顺序。 2. **取消时先 interrupt 再 close,放在同一个 `doFinally` 回调里**,这样先后顺序是确定的。 3. **`close()` 只存在于 `ReActAgent`(实现了...
感谢复现和认领! 我倾向于**按持久化的输入做匹配**,而且这和现有那条重试测试并不冲突:框架自己的重试重发的是同一批 `Msg` 对象,消息 id 与被中断那一轮的输入一致,去重照样生效;变的只是**内容不同的新消息**不再被吞掉——这正是交互式客户端遇到的实际问题。 具体建议: - `ActiveRequestContext.saveState()` 把会话标记为 shutdown-interrupted 时,顺带把这一轮输入消息的 id 持久化进状态; - `doCallInner` 里只有当传入输入的 id 与持久化的 id 一致时才丢弃,无论是否丢弃都清掉标记; - id 缺失时退回按内容比较可以作为补充,但仅靠 id 已经覆盖了重试场景。 `GracefulShutdownConfig` 里加一个关闭开关作为**附加项**没问题;但如果只加开关,默认行为仍然会吞掉 Web /...
感谢复现!方案我看没问题:`Msg.withContent` 会原样保留 id / metadata / timestamp / usage,而从截断后的 input 重新生成原始参数 JSON,正是我想要的一致性。欢迎跟进,PR 提了我可以帮忙 review。
I'll take this one. I already have a regression test for both parts locally: the missing `usage` field, and the tool-call scenario where the final `Msg` reports 15 instead of...
PR is up: #3713 (Option A, as no one objected). - Core: new `MessageMetadataKeys.INVOCATION_USAGE` / `Msg#getInvocationUsage()`, the sum of the agent's own `ModelCallEndEvent`s in one invocation. Subagent usage is not...
I'll take this one. I'll build it on top of #3713, since it needs the invocation total from there, and open a PR once that settles. If #3713's direction changes,...
One more requirement from downstream use, which I'll fold into #3725 before taking it out of draft. **Callers that drive the agent themselves have no non-deprecated path.** An OpenAI-compatible endpoint...
I'll take this one and open a PR shortly (cache invalidation on `registerFactory` + single-instance creation on concurrent first resolve), with regression tests for both.
I'll take this one. Plan, as proposed above: - `delete(String id)` deletes a single chunk by `Document.getId()` in all five stores. Milvus and PgVector switch from the `doc_id` filter to...