Expand description
Which folder each agent on a block was started in, so a browser upload can be
checked against it (server/browser_uploads.rs) and the spawn paths can record
it without reaching up into the server.
Functions§
- agent_
workspace - The workspace the agent on
block_idwas launched in, if srv started it as a host agent. - container_
workspace - The host folder behind
/workspacefor the container agent onblock_id. - record_
container_ workspace - Remember the host folder mounted at
/workspacein the container of the agent onblock_id, as srv started it: the mount’s source, not the block’scmd:cwd, which any client can rewrite after the launch. Called where the container’s mounts are decided. - record_
launch_ workspace - Remember the workspace the agent on
block_idwas started in: theAGENTMUX_AGENT_WORKDIRsrv just put in its spawn env (host agents only; a container agent has none). Called by every spawn path right afterspawn_env::block_identity::carry_agent_workdir_env.