Skip to content

[Bug]: filesystem重写snapshotSpec不生效 #2254

Open

Description

@lazyboy20150303

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)));

Activity

  1. added
    bug
    on Jul 16, 2026
  2. added
    area/core
    on Jul 17, 2026
  3. moved this from Backlog to In progress in AgentScope Javaon Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/corebug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions