pub fn build_agent_for_reload(
world: &mut World,
tool_service: &CliToolService,
config: &Config,
shared_mcp: Arc<Mutex<ToolExecutor>>,
mcp_tool_defs: &[Tool],
hub: &InteractionHub,
args: &SpawnArgs,
now_secs: i64,
subagent_tx: UnboundedSender<SubAgentOp>,
) -> Result<Entity, String>Expand description
Like build_agent, but skips the required-at-spawn region gate - used by
restart recovery, which reloads a run that already passed the gate when first
spawned and whose context window is restored from a snapshot after this call.