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
@@ -1542,7 +1542,7 @@ async function renderRunnerJob(args: ParsedArgs): Promise<JsonRecord> {
const session = await client(args).get(`/api/v1/sessions/${encodeURIComponent(run.sessionRef.sessionId)}`) as { storageKind?: string; storagePvcName?: string; storageNamespace?: string; codexRolloutSubdir?: string };
if (session?.storageKind === "pvc" && session.storagePvcName) {
const subdir = session.codexRolloutSubdir ?? "sessions";
sessionPvc = { pvcName: session.storagePvcName, namespace: session.storageNamespace ?? "agentrun-v01", mountPath: `/home/agentrun/.codex-${run.backendProfile}/${subdir}`, codexRolloutSubdir: subdir };
sessionPvc = { pvcName: session.storagePvcName, namespace: session.storageNamespace ?? "agentrun-v01", mountPath: `/home/agentrun/.agentrun-sessions/${subdir}`, codexRolloutSubdir: subdir };
}
} catch { /* session not found, skip */ }
}