Repository navigation
[Feature]: Allow Codex sessions to inherit configured permission profiles #6976
Replies: 7 comments
|
This would be a very helpful addition. |
|
I created a branch that resolves this issue by detecting what model provider is selected and, if it's Codex, offers a passthrough permission policy. It covers certain situations like switching from Codex to Claude, transforming the permission profile to one that's compatible with Claude. I haven't opened a PR yet since this is more of a "feature" than a show-stopper, it might be worth discussing other options. I think passthrough is probably the easiest way to handle it but anybody else have any ideas? I'm not familiar with all the providers so I made a special "if codex then passthrough unlocked" mode. Maybe it could be simplified to all providers? Or another solution exists? :) |
|
This would be a very helpful addition as well! One use case I don’t think the existing T3 Code permission modes express well is the middle ground between Auto and Full access. For example, my preferred Codex configuration is: The goal is to let Codex work autonomously without stopping for approvals, while still keeping it contained to the workspace. never removes the escalation/approval path, but it does not remove the sandbox boundary. I think passthrough becomes even more useful as Codex permission profiles get more granular. Named profiles, filesystem rules, network permissions, managed policies, and other Codex-side configuration can all affect the effective runtime permissions. T3 Code trying to map those into a small set of generic modes can potentially override or conflict with the user's intended policy. Ideally, T3 Code would retain its existing modes while also providing a Codex config / inherit permissions option that lets Codex determine the effective sandbox and approval policy. |
|
Adding a concrete least-privilege local-development use case to this existing request instead of opening a duplicate. We need local test servers while retaining workspace isolation and explicit network restrictions; Full access is not an acceptable substitute. Our installation audit concerned T3 0.1.2 / Codex 0.164.0 on Linux. Independent source inspection of v0.1.3 ( Useful acceptance criteria for supported profile inheritance/selection:
We read #13987 and the reports of a locally patched v0.1.2. Those are useful evidence, but not proof that stock T3 supports this or that a loopback-only boundary has been verified in our environment. We have not applied those patches, changed configuration, or reproduced a successful supported profile route. The configured-default precedence and spawnSync EPERM cause remain unproven in our setup. |
Codex - Retain Auto-review when sandboxing is configured independentlyAdding another concrete use case to this existing request for Codex configuration inheritance. I want Codex to run without its OS sandbox while retaining Auto-review for actions that require approval. T3's current permission presets cannot express that combination. Requested behaviorPlease support an explicit way to select or inherit the Codex sandbox independently of the approval policy and reviewer. The combination I want is: {
"approvalPolicy": "on-request",
"approvalsReviewer": "auto_review",
"sandboxPolicy": { "type": "dangerFullAccess" }
}Equivalently, in Codex configuration: sandbox_mode = "danger-full-access"
approval_policy = "on-request"
approvals_reviewer = "auto_review"The goal is to let development tools use the host filesystem and network without OS sandbox restrictions, while retaining the reviewer for explicitly gated actions. Full access changes the approval policy to Still present as of November 1, 2026I checked upstream The relevant current source is:
This explains why VerificationThe original October 19 observation was a real T3 Auto session on T3 I also repeated the isolated app-server configuration check on November 1 with Codex CLI After the initialize handshake, three ephemeral Codex therefore still accepts the requested settings at thread creation. This check did not start an inference turn, execute model tools, or demonstrate a reviewer invocation with the sandbox disabled. It establishes configuration acceptance and override precedence, not the complete execution behavior. Approval semantics need to remain explicitDisabling the sandbox removes the filesystem and network boundary that generates many approval requests. Auto-review only assesses eligible approval requests; keeping its setting enabled does not make every command pass through a reviewer. Codex documents explicit command rules with Before claiming complete support, an implementation should demonstrate a harmless explicitly gated action reaching the reviewer with the sandbox disabled, and a denied action being prevented from executing. If Codex itself does not support that execution behavior, that limitation should be established upstream rather than hidden behind a T3 setting. Relationship to existing workIssue #13987 remains open. PR #18344 is also open and now has a maintainer takeover. It preserves configured fields within workspace-write mode; its described scope does not make the sandbox type independently selectable. That would help networking within a sandbox, but would not provide the combination requested here. Discussion #14380 and closed, unmerged PR #14369 cover the earlier override problem. The maintainer's triage of #13987 asks fixes to retain runtime-mode enforcement. This request should account for that requirement rather than assume that deleting all per-turn overrides is acceptable. Discussion #20124 separately proposes configuring the Codex reviewer and documenting provider mappings. Together, these reports suggest that sandbox choice and approval behavior need an explicit precedence contract. Suggested scopeA Codex-only configuration or inheritance option would be enough. It should retain the chosen approval behavior, survive subsequent turns and resume, and apply runtime-mode changes predictably. Managed Codex restrictions must remain authoritative, and the client should identify the effective sandbox and reviewer. A second T3 rule language or changes to other providers are unnecessary for this request. I am asking for maintainer direction on this configuration behavior. No T3 implementation or live provider changes were made during verification. 🤖 Written by @dtcristo's agent (GPT-6.1 Sol) |
|
Following up on #21138 with a read-only use case for Codex permission-profile inheritance. We’ve qualified one-shot Linear dispatch to T3 on two macOS accounts. Before we can use it unattended, we need T3 to enforce the approved permissions before sending the first prompt. I checked stock T3
A minimal acceptance test would start one Sol run with this profile, verify the effective policy on the first turn, and demonstrate that a harmless file-write probe and a fixture write-capable tool call are both denied without an escalation prompt or fallback. Is profile inheritance the right place to cover these three guarantees, or should tool restrictions and policy readback be tracked separately? |
|
Another use case for this, on Windows, with session logs showing what T3 sends in each access mode. Goal: keep Codex sessions started from T3 inside one folder, both for writes and for reads, so the agent cannot read other projects on the same disk. Environment: Windows 11 build 26300, T3 Code desktop 0.1.10, Codex CLI 0.167.2 during the tests, Codex Windows sandbox backend Project config ( approval_policy = "on-request"
default_permissions = "lab"
[permissions.lab.filesystem]
":minimal" = "read"
[permissions.lab.filesystem.":workspace_roots"]
"." = "write"
[windows]
sandbox = "mxc"From the Codex CLI this works as intended: From T3, the project profile is replaced in every access mode. What the session rollouts (
So in Auto and Supervised the sandbox protects writes, but the whole disk stays readable. In Auto a command reading a file outside the project runs without any approval prompt. With Full access, the first turn briefly logs the project's own profile ( Request: an option (per project or per provider) to start Codex threads with the Related: #16458 (custom For comparison, Claude threads started by T3 keep the project's Claude Code permission rules ( |
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/web
Problem or use case
T3 Code's native Codex integration appears to translate its runtime-mode choice into hard-coded Codex sandbox_mode and approval_policy values. This prevents users from using a named/default permission profile already configured in Codex.
For example, my Codex configuration defines a local-dev permission profile and sets it as the default:
When Codex is launched directly, this profile provides the intended development permissions. When T3 Code starts the Codex app-server session, it appears to select its own runtime mode instead, so the configured Codex default is not authoritative.
This is especially problematic for users with managed Codex policies: T3 can send combinations such as approval_policy = "never" and sandbox_mode = "danger-full-access" that are rejected by Codex policy, as seen in #4292.
Proposed solution
Add a Codex-specific runtime option such as Use Codex configured default (or Inherit Codex configuration).
When selected, T3 Code should omit its sandbox_mode and approval_policy overrides from thread/session startup and let Codex resolve default_permissions, named permission profiles in ~/.codex/config.toml, managed-policy restrictions, and project/workspace-specific permission configuration.
This should be an explicit Codex-provider option, not a new T3-specific permission schema. Existing T3 modes such as Full access, Auto-accept edits, and Supervised can remain unchanged.
If the Codex app-server protocol requires an explicit profile name, support an optional named profile selector; otherwise omission/inheritance is the smallest useful implementation.
Why this matters
Users who have invested in Codex permission profiles currently have to choose between T3 Code and their configured Codex safety/development policy. T3's generic modes cannot express useful least-privilege setups such as allowing normal development commands and workspace edits while retaining approval prompts for everything else.
It also avoids T3 accidentally fighting organization-managed Codex policies or producing misleading startup errors when its hard-coded mode is disallowed.
Smallest useful scope
Codex config).Alternatives considered
~/.codex/config.tomlto make one of T3's generic modes approximate the desired behavior: fragile and can affect Codex Desktop/CLI globally.Risks or tradeoffs
Examples or references
Related: #4292 (Codex startup failure when T3's hard-coded approval/sandbox combination conflicts with managed policy); #4916 (global default runtime mode). Codex configuration reference: https://developers.openai.com/codex/config-reference/
Contribution
All reactions