Class PinnedSandboxFilesystem

All Implemented Interfaces:
AbstractFilesystem, AbstractSandboxFilesystem, SandboxAware

public final class PinnedSandboxFilesystem extends SandboxBackedFilesystem
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 Details

    • PinnedSandboxFilesystem

      public PinnedSandboxFilesystem(Sandbox sandbox)
  • Method Details