Class PinnedSandboxFilesystem
java.lang.Object
io.agentscope.harness.agent.filesystem.sandbox.BaseSandboxFilesystem
io.agentscope.harness.agent.filesystem.sandbox.SandboxBackedFilesystem
io.agentscope.harness.agent.filesystem.sandbox.PinnedSandboxFilesystem
- All Implemented Interfaces:
AbstractFilesystem,AbstractSandboxFilesystem,SandboxAware
SandboxBackedFilesystem that holds a fixed Sandbox reference for the lifetime of
the instance.
Used by asynchronous session mirrors so uploads can complete after the agent call releases
its per-call binding on the shared agent proxy. Unlike the agent-level SandboxBackedFilesystem, clearSandboxIfCurrent(io.agentscope.harness.agent.sandbox.Sandbox) is a no-op — clearing the call proxy
must not unpin this mirror filesystem.
Safe for DataAgent-style user-managed sandboxes that stay alive across acquire/release. Self-managed sandboxes that stop on release may still fail if the async upload races past shutdown.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearSandboxIfCurrent(Sandbox expected) Clears the fallbacksandboxfield only if it still points atexpected.Methods inherited from class io.agentscope.harness.agent.filesystem.sandbox.SandboxBackedFilesystem
downloadFiles, execute, getSandbox, id, setSandbox, uploadFiles
-
Constructor Details
-
PinnedSandboxFilesystem
-
-
Method Details
-
clearSandboxIfCurrent
Description copied from class:SandboxBackedFilesystemClears the fallbacksandboxfield only if it still points atexpected. Used bySandboxLifecycleMiddlewareon release so a finishing call never nulls a concurrent sibling call's fallback binding (issue #2490).- Overrides:
clearSandboxIfCurrentin classSandboxBackedFilesystem- Parameters:
expected- the sandbox this call bound at acquire time
-