HuJiShuang
HuJiShuang
### Description `GenerateOptions.thinkingBudget` field is accepted by the builder and stored in the options object, but **never mapped to the `OpenAIRequest`** during `OpenAIChatFormatter.applyOptions()`. This means the `thinking_budget` parameter is silently...
MemoryFlushManager.flushMemories() and MemoryConsolidator.consolidate() run synchronously after POST_CALL, blocking the response until all LLM-based memory operations complete. Both classes use the same model as the agent (passed via constructor). In production...
核心内容: - 问题:LLM 在一个批次中对同一 skillId 多次调用 load_skill_through_path,每次都返回完整 SKILL.md 内容,浪费 token 和迭代次数 - 根因:SkillToolFactory.loadSkillResourceImpl() 没有对已激活 skill 做短路返回 - 建议修复:在 loadSkillResourceImpl 开头加判断: if ("SKILL.md".equals(path) && skillRegistry.isSkillActive(skillId)) { return "Skill '" + skillId...
When using builder.abstractFilesystem(sandboxFs) combined with builder.middleware(new SandboxLifecycleMiddleware(sandboxManager, sandboxFs)), the sandbox lifecycle is never triggered. Root cause: HarnessAgent.wrappedCall() / wrappedStreamEvents() only invokes the private field sandboxLifecycleMw, which is exclusively populated through...
Description BaseSandboxFilesystem.edit() generates python3 -c "...code..." shell 命令,Python 语句之间用字面两字符 \n 分隔。但 shell 双引号不会把 \n 解释为换行,导致 Python 收到单行代码 → SyntaxError。 Steps to Reproduce 1. 使用 SandboxBackedFilesystem 配合远程沙箱(Aone / E2B 等) 2....
The glob_files tool in FilesystemTool.java declares its pattern parameter with the example **/*.java: @ToolParam(name = "pattern", description = "Glob pattern (e.g., **/*.java)") However, BaseSandboxFilesystem.glob() translates this directly into find -name:...
--- Bug 1:SandboxBackedFilesystem 并发多用户不安全 Title: SandboxBackedFilesystem is not safe for concurrent multi-user agents (single volatile field) ## Problem `SandboxBackedFilesystem` uses a single `volatile Sandbox sandbox` field injected per-call via `setSandbox()`....
## Title [Harness] Add framework-level guardrails for `wait_async_results` to prevent repeated long blocking waits ## Environment - AgentScope Java version: `2.0.0-RC4` - Module: Harness / Subagents / Background task coordination...
问题描述 在同一个 HarnessAgent 实例上并发执行不同 (userId, sessionId) 的请求时,WorkspaceSkillRepository 可能读取到其他请求的 RuntimeContext。 该问题会导致 workspace skill 扫描、文件系统访问和沙箱路由使用错误的 userId/sessionId。如果并发请求属于不同用户,还可能带来跨用户资源隔离风险。 call() 和 streamEvents() 均可能受影响。 环境 agentscope-core: 2.0.0 agentscope-harness: 2.0.0 单个 HarnessAgent 实例服务多个 session 启用 Harness workspace...
Describe the bug** `BaseSandboxFilesystem.edit(..., replaceAll=false)` fails before reading or modifying the target file. The generated `python3 -c` program contains literal `\\n` character sequences instead of actual newline characters. On a...