fix(runner): keep session pvc mount provider independent (#239)

This commit is contained in:
Lyon
2026-06-24 10:02:10 +08:00
committed by GitHub
parent 3e72b6bf84
commit 0f9e742ed1
5 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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 = {