Fix readonly runtime build check

This commit is contained in:
Eyejoker
2026-04-04 22:02:55 +09:00
parent 04802166a6
commit 4dceb9e678
2 changed files with 2 additions and 6 deletions

View File

@@ -950,9 +950,7 @@ async function main(): Promise<void> {
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);

View File

@@ -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({