Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: let isolated Codex claim reviews pass the repo trust check (#9248)
Adam Eivydaceccbb5159
diff --git a/server/lib/providerVendors.js b/server/lib/providerVendors.jsindex 5f61bec882..50fab1c813 100644--- a/server/lib/providerVendors.js+++ b/server/lib/providerVendors.js@@ -337,9 +337,12 @@ function codexPublicReviewActionsSpawnArgs(provider, { effectiveModel, effort, m// Code-review reader: Codex's OS-level read-only sandbox may inspect files but// never write or run a mutating command. It still exposes read tools, so it is-// the read-only code-review tier, not the no-tool posture.+// the read-only code-review tier, not the no-tool posture. Claim reviews run in+// an isolated non-repository scratch cwd with the diff inlined, which codex+// refuses ("Not inside a trusted directory") unless the repo check is skipped;+// the read-only sandbox, not the repo check, is the safety boundary here.function codexReadOnlyReviewSpawnArgs(provider, ctx) {- return codexPublicReviewArgs(provider, ctx, ['--sandbox', 'read-only']);+ return codexPublicReviewArgs(provider, ctx, ['--sandbox', 'read-only', '--skip-git-repo-check']);}function codexPublicReviewArgs(provider, { effectiveModel, effort, maxConcurrentThreads }, postureArgs) {diff --git a/server/lib/providerVendors.publicReview.test.js b/server/lib/providerVendors.publicReview.test.jsindex 273604c5a6..f958ac6713 100644--- a/server/lib/providerVendors.publicReview.test.js+++ b/server/lib/providerVendors.publicReview.test.js@@ -267,6 +267,8 @@ describe('public-review provider postures', () => {safetyProfile: PUBLIC_REVIEW_GATE_EXECUTION_PROFILE,});expect(codexReview.args).toEqual(expect.arrayContaining(['exec', '--sandbox', 'read-only']));+ // Scratch-cwd claim reviews must pass codex's trusted-directory check.+ expect(codexReview.args).toContain('--skip-git-repo-check');expect(codexReview.args).not.toContain('--dangerously-bypass-approvals-and-sandbox');// No enforced mode: the caller falls back to the vendor's ordinary argv.expect(buildCodeReviewSpawnConfig(antigravity, { safetyProfile: PUBLIC_REVIEW_GATE_EXECUTION_PROFILE })).toBeNull();