fix(runner): keep session pvc mount provider independent (#239)
This commit is contained in:
@@ -178,7 +178,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
|
||||
const pvcName = refreshed?.storagePvcName ?? ensured.pvcName;
|
||||
if (!pvcName) throw new AgentRunError("infra-failed", `session ${run.sessionRef.sessionId} PVC was not resolved for runner job`, { httpStatus: 502 });
|
||||
const subdir = refreshed?.codexRolloutSubdir ?? ensured.codexRolloutSubdir ?? "sessions";
|
||||
const mountPath = `/home/agentrun/.codex-${run.backendProfile}/${subdir}`;
|
||||
const mountPath = `/home/agentrun/.agentrun-sessions/${subdir}`;
|
||||
const workspacePath = `${mountPath}/agentrun-workspace`;
|
||||
sessionPvc = { pvcName, namespace: refreshed?.storageNamespace ?? ensured.namespace ?? namespace, mountPath, codexRolloutSubdir: subdir, workspacePath };
|
||||
sessionPvcSummary = {
|
||||
|
||||
Reference in New Issue
Block a user