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 摘要。