From 4dceb9e67835f67c49bcde6699066855c44a6a99 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Sat, 4 Apr 2026 22:02:55 +0900 Subject: [PATCH] Fix readonly runtime build check --- runners/agent-runner/src/index.ts | 4 +--- runners/codex-runner/src/index.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/runners/agent-runner/src/index.ts b/runners/agent-runner/src/index.ts index 17e4efe..85c5394 100644 --- a/runners/agent-runner/src/index.ts +++ b/runners/agent-runner/src/index.ts @@ -950,9 +950,7 @@ async function main(): Promise { process.env.EJCLAW_REVIEWER_RUNTIME === '1' || isReviewerRuntime(containerInput.roomRoleContext); const readonlyRuntime = - reviewerRuntime || - process.env.EJCLAW_ARBITER_RUNTIME === '1' || - containerInput.roomRoleContext?.role === 'arbiter'; + reviewerRuntime || process.env.EJCLAW_ARBITER_RUNTIME === '1'; const guardedSdkEnv = buildReviewerGitGuardEnv(sdkEnv, reviewerRuntime); assertReadonlyWorkspaceRepoConnectivity(guardedSdkEnv, readonlyRuntime); diff --git a/runners/codex-runner/src/index.ts b/runners/codex-runner/src/index.ts index 037a2d8..7bb37ec 100644 --- a/runners/codex-runner/src/index.ts +++ b/runners/codex-runner/src/index.ts @@ -407,9 +407,7 @@ async function runAppServerSession( process.env.EJCLAW_REVIEWER_RUNTIME === '1' || isReviewerRuntime(containerInput.roomRoleContext); const readonlyRuntime = - reviewerRuntime || - process.env.EJCLAW_ARBITER_RUNTIME === '1' || - containerInput.roomRoleContext?.role === 'arbiter'; + reviewerRuntime || process.env.EJCLAW_ARBITER_RUNTIME === '1'; const clientEnv = buildReviewerGitGuardEnv(process.env, reviewerRuntime); assertReadonlyWorkspaceRepoConnectivity(clientEnv, readonlyRuntime); const client = new CodexAppServerClient({