Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.
TypeScript
Merge pull request #151 from WhichPaths: secure Codex keeps its trust_level override
yetonec2e48e536abc
diff --cc server/src/__tests__/agents-computer-engine.test.tsindex ed52c22,f6c835d..3cabdbb--- a/server/src/__tests__/agents-computer-engine.test.ts+++ b/server/src/__tests__/agents-computer-engine.test.ts@@@ -397,12 -397,15 +397,19 @@@ test('Codex one-shot paths send promptassert.equal(runCapture.argv?.some((arg) => arg.includes(`${join(root, 'private-ipc', 'responses')}"="write`)), false)assert.ok(runCapture.argv?.includes('web_search="disabled"'))assert.ok(runCapture.argv?.includes('features.hooks=false'))- // Never send `projects.<path>.trust_level`: codex has no such configuration- // field and rejects the whole invocation over it — 78,445 failed turns in six- // hours across 103 workspaces, on every codex version and both platforms.- // This assertion used to REQUIRE the flag; it pinned an override that had- // never been run against a real codex.- assert.equal(runCapture.argv?.some((arg) => arg.startsWith('projects.')), false)+ // Assert the INTENT — this home is marked untrusted — not one spelling of it.+ // The dotted `projects."<home>".trust_level=…` form used to be here and had+ // to change because Codex 0.150/0.151 refuses to start on it under+ // --strict-config (#144); pinning the exact string is what would make the+ // next necessary rewrite look like a regression.+ const trustArg = runCapture.argv?.find((arg) => arg.startsWith('projects='))+ assert.ok(trustArg, `no projects override in argv: ${JSON.stringify(runCapture.argv)}`)+ assert.ok(trustArg.includes(JSON.stringify(home)), 'the override must name this agent home')+ assert.ok(trustArg.includes('trust_level="untrusted"'), 'the agent home must be untrusted')++ assert.equal(++ runCapture.argv?.some((arg) => arg.startsWith('projects.')), false,++ 'the dotted form is rejected on POSIX by every codex version measured, 0.152.0 included',++ )assert.ok(runCapture.argv?.some((arg) =>arg.startsWith('mcp_servers.cumora={')&& arg.includes(`command=${JSON.stringify(process.execPath)}`)diff --cc server/src/agents/computer/engine.tsindex ba4774e,165b5ec..edb8cff--- a/server/src/agents/computer/engine.ts+++ b/server/src/agents/computer/engine.ts@@@ -1698,15 -1666,23 +1698,30 @@@ function codexSecureExecArgs(args: { ho'-c', 'features.remote_plugin=false','-c', 'features.multi_agent=false','-c', 'features.shell_snapshot=false',- // NOTE: a `projects.<path>.trust_level="untrusted"` override used to sit- // here. Codex has no such configuration field and rejected the entire- // invocation over it — `unknown configuration field \`projects."…"\`` — on- // every version seen in the field (0.139 through 0.151) and on both- // platforms: 78,445 failed turns in six hours across 103 workspaces, 84% of- // all codex failures. Because it aborted codex before startup it never- // restricted anything, so removing it gives up no protection that was ever- // in effect; `exec --ignore-user-config --ignore-rules` below already- // excludes project-local config, hooks and rules.+ // Untrusted projects skip project-local config, hooks, and rules. This is a+ // CLI override (highest precedence), so a model cannot plant a more+ // privileged .codex layer for the next one-shot wake.+ //+ // Written as an inline table rather than the dotted `projects."<home>".…`+ // form, because Codex 0.150/0.151 rejects a quoted dynamic map key in a+ // dotted override under --strict-config and refuses to start at all:+ // Error loading config.toml: unknown configuration field+ // `projects."<agent-home>"` in -c/--config override+ // Every wake then failed before the model ran, and the undelivered message+ // stayed durable, so the daemon retried the same failure forever (#144).+ //+ // The inline form parses on every version anyone has checked — 0.134.0 and+ // 0.152.0 here, 0.150.1 and 0.151.0-alpha on the report — whereas the+ // dotted form does not, so this is the strictly better-supported spelling+ // rather than a trade.++ //++ // Production since corrected one guess above: the dotted form was NOT fixed++ // after 0.151. In 30 hours it was rejected 252,589 times on POSIX across 121++ // computers, including 35,721 on 0.151.0 (18 machines) and 13,153 on 0.152.0++ // (12 machines). POSIX has no shell in this path and so no quote-stripping,++ // which is what rules out the Windows cmd.exe cause and leaves the spelling++ // itself. Do not restore the dotted form on the strength of a local check.+ '-c', `projects={${tomlString(args.home)}={trust_level="untrusted"}}`,...codexToolEnvironmentArgs(args),]if (!readOnly) {