agentscope-ai / agentscope-ai/agentscope-java

[Bug]: filesystem重写snapshotSpec不生效

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

描述

**Describe the bug**
filesystem重写snapshotSpec不生效
SandboxFilesystemSpec子类实现
public SandboxFilesystemSpec snapshotSpec(SandboxSnapshotSpec snapshotSpec) {
this.snapshotSpecOverride = snapshotSpec;
return this;
}
方法时,没有重写snapshotSpecOverride,
agent又使用原distributedStore覆盖snapshotSpec
sandboxFilesystemSpec.snapshotSpec(distributedStore.sandboxSnapshotSpec());

我使用redisDistributedStore+LocalSnapshotSpec,快照被存在了redis上
filesystem.image("alpine:3.20")
.workspaceRoot(SANDBOX_WORKSPACE_ROOT)
.memorySizeBytes(SANDBOX_MEMORY_LIMIT_BYTES)
.cpuCount(SANDBOX_CPU_COUNT)
.network("bridge")
.isolationScope(IsolationScope.USER)
.snapshotSpec(new LocalSnapshotSpec(required(
"agentscope.sandbox.snapshot-path", sandboxSnapshotPath)));

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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