agentscope-ai / agentscope-ai/agentscope-java

Sandbox is created on every agent call even for pure chat turns

未关闭
#2,564 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area/core/memory area/extensions bug
主要语言
Java
星标
5.6k
派生
1.3k
平均合并
4 天 12 小时
30 天内合并 PR
77

描述

## Problem

In sandbox filesystem mode, a sandbox session is created/resumed on EVERY agent call, even when the turn is pure chat (no command execution, no file read/write).

This includes turns where the agent only replies to a casual conversation — spinning up (or resuming) a container per turn is expensive and wasteful.

## Expected behavior

- A plain chat turn (no command execution, no file read/write) must NOT create or resume a sandbox.
- The sandbox should be created/resumed only when the agent actually needs to execute a command or read/write the filesystem, right before the operation runs.
- A turn that touches only workspace metadata (e.g. MEMORY.md, AGENTS.md, knowledge, memory flush) should not trigger sandbox creation.
- Once created/resumed, the existing isolation-scope behavior (create vs resume per SESSION/USER/AGENT scope) must be preserved.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。