Skip to main content

Module workspaces

Module workspaces 

Source
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_id was launched in, if srv started it as a host agent.
container_workspace
The host folder behind /workspace for the container agent on block_id.
record_container_workspace
Remember the host folder mounted at /workspace in the container of the agent on block_id, as srv started it: the mount’s source, not the block’s cmd: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_id was started in: the AGENTMUX_AGENT_WORKDIR srv just put in its spawn env (host agents only; a container agent has none). Called by every spawn path right after spawn_env::block_identity::carry_agent_workdir_env.