fix: allow AgentOS command execution
This commit is contained in:
@@ -9,10 +9,11 @@ describe("Codex agent-os config", () => {
|
|||||||
expect(config.software?.[0]).toBeTypeOf("object");
|
expect(config.software?.[0]).toBeTypeOf("object");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("allows outbound VM networking", () => {
|
it("allows repository execution capabilities", () => {
|
||||||
const config = makeCodexAgentOsConfig();
|
const config = makeCodexAgentOsConfig();
|
||||||
expect(config.permissions?.network).toBe("allow");
|
expect(config.permissions?.network).toBe("allow");
|
||||||
expect(config.permissions?.fs).toBe("allow");
|
expect(config.permissions?.fs).toBe("allow");
|
||||||
|
expect(config.permissions?.childProcess).toBe("allow");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("builds model-provider session env", () => {
|
it("builds model-provider session env", () => {
|
||||||
|
|||||||
@@ -114,14 +114,15 @@ export interface CodexAgentOsConfigInput {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* are always present; software the caller passes is appended, never replacing
|
* are always present; software the caller passes is appended, never replacing
|
||||||
* the harness or git. Filesystem and outbound networking are explicitly enabled
|
* the harness or git. Filesystem, child-process execution, and outbound network
|
||||||
* for repository work and model-provider access. Model-provider env is supplied
|
* access are explicitly enabled for repository work and model-provider access.
|
||||||
* per session via `codexSessionEnv`, not here — the actor config has no env field.
|
* Model-provider env is supplied per session via `codexSessionEnv`.
|
||||||
*/
|
*/
|
||||||
export const makeCodexAgentOsConfig = (
|
export const makeCodexAgentOsConfig = (
|
||||||
input: CodexAgentOsConfigInput = {}
|
input: CodexAgentOsConfigInput = {}
|
||||||
): AgentOSConfigInput<undefined> => ({
|
): AgentOSConfigInput<undefined> => ({
|
||||||
permissions: {
|
permissions: {
|
||||||
|
childProcess: "allow",
|
||||||
fs: "allow",
|
fs: "allow",
|
||||||
network: "allow",
|
network: "allow",
|
||||||
...input.permissions,
|
...input.permissions,
|
||||||
|
|||||||
Reference in New Issue
Block a user