Commit Graph
12400 Commits
Author SHA1 Message Date
Michael Bolin 05d2a66014 merge commit for archive created by Sapling 2026-04-21 23:22:59 -07:00
Michael Bolin c87677374c app-server: expose thread permission profiles 2026-04-21 23:22:33 -07:00
Michael Bolin 2305a53103 Merge cf92f0c00a into sapling-pr-archive-bolinfest 2026-04-21 23:02:57 -07:00
Michael Bolin cca4499a7c merge commit for archive created by Sapling 2026-04-21 23:01:01 -07:00
Michael Bolin cf92f0c00a tests: isolate approval fixtures from host rules 2026-04-21 23:00:44 -07:00
Michael Bolin e0369a052c app-server: expose thread permission profiles 2026-04-21 23:00:44 -07:00
Michael Bolin e42d384c51 shell-escalation: carry resolved permission profiles 2026-04-21 23:00:44 -07:00
Michael Bolin 0d902603a0 mcp: include permission profiles in sandbox state 2026-04-21 23:00:44 -07:00
Michael Bolin 60b4fdf496 tui: carry permission profiles on user turns 2026-04-21 23:00:44 -07:00
Michael Bolin f8c3ebfc9e tui: sync session permission profiles 2026-04-21 23:00:44 -07:00
Michael Bolin f16904c5a1 app-server: accept command permission profiles 2026-04-21 23:00:44 -07:00
Michael Bolin bbabb69883 protocol: report session permission profiles 2026-04-21 23:00:44 -07:00
Michael Bolin 0b01c37835 rollout: persist turn permission profiles 2026-04-21 23:00:44 -07:00
Michael Bolin 6e301e142f clients: send permission profiles to app-server 2026-04-21 23:00:44 -07:00
Michael Bolin 7a8de58955 app-server: accept permission profile overrides 2026-04-21 23:00:44 -07:00
Michael Bolin c616f50215 Merge 1065304e68 into sapling-pr-archive-bolinfest 2026-04-21 22:52:45 -07:00
Michael Bolin 1065304e68 app-server: expose thread permission profiles 2026-04-21 22:52:33 -07:00
Michael Bolin b514915a33 merge commit for archive created by Sapling 2026-04-21 22:44:55 -07:00
Michael Bolin 118628e4d3 fix(exec-server): retain output until streams close 2026-04-21 22:44:41 -07:00
Michael Bolin d78c3dd6cd Merge 5e894bf599 into sapling-pr-archive-bolinfest 2026-04-21 22:37:03 -07:00
Michael Bolin 5e894bf599 fix(exec-server): retain output until streams close 2026-04-21 22:36:57 -07:00
Michael Bolin 37faa8f734 merge commit for archive created by Sapling 2026-04-21 22:33:01 -07:00
Michael Bolin 08584abbd0 fix(exec-server): retain output until streams close 2026-04-21 22:32:47 -07:00
Michael Bolin d6cbb3cf37 Merge e4889afbd6 into sapling-pr-archive-bolinfest 2026-04-21 22:21:09 -07:00
Michael Bolin e4889afbd6 app-server: expose thread permission profiles 2026-04-21 22:20:58 -07:00
Michael Bolin 9026c3328e merge commit for archive created by Sapling 2026-04-21 22:19:56 -07:00
Michael Bolin a838006c97 fix(exec-server): retain output until streams close 2026-04-21 22:19:41 -07:00
Michael Bolin 42c075308a Merge a708aa4c07 into sapling-pr-archive-bolinfest 2026-04-21 22:15:47 -07:00
Michael Bolin a708aa4c07 tests: isolate approval fixtures from host rules 2026-04-21 22:15:15 -07:00
Michael Bolin d9e23552bf shell-escalation: carry resolved permission profiles 2026-04-21 22:15:15 -07:00
Michael Bolin b88c653165 mcp: include permission profiles in sandbox state 2026-04-21 22:15:15 -07:00
Michael Bolin 1038aae0b5 tui: carry permission profiles on user turns 2026-04-21 22:15:15 -07:00
Michael Bolin ccb6d70a77 tui: sync session permission profiles 2026-04-21 22:15:15 -07:00
Michael Bolin 134b83009c app-server: accept command permission profiles 2026-04-21 22:15:15 -07:00
Michael Bolin dbf88606a9 protocol: report session permission profiles 2026-04-21 22:15:15 -07:00
Michael Bolin b6c0d5807a rollout: persist turn permission profiles 2026-04-21 22:15:15 -07:00
Michael Bolin 16e687834b clients: send permission profiles to app-server 2026-04-21 22:15:15 -07:00
Michael Bolin 56c927ae5d app-server: accept permission profile overrides 2026-04-21 22:15:15 -07:00
Michael Bolin f76a892a55 app-server: expose thread permission profiles 2026-04-21 22:15:15 -07:00
Michael Bolin 0fef35dc3a core: derive active permission profiles (#18277)
## Why

`Permissions` should not store a separate `PermissionProfile` that can
drift from the constrained `SandboxPolicy` and network settings. The
active profile needs to be derived from the same constrained values that
already honor `requirements.toml`.

## What changed

This adds derivation of the active `PermissionProfile` from the
constrained runtime permission settings and exposes that derived value
through config snapshots and thread state. The app-server can then
report the active profile without introducing a second source of truth.

## Verification

- `cargo test -p codex-core --test all permissions_messages --
--nocapture`
- `cargo test -p codex-core --test all request_permissions --
--nocapture`



























---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/18277).
* #18288
* #18287
* #18286
* #18285
* #18284
* #18283
* #18282
* #18281
* #18280
* #18279
* #18278
* __->__ #18277
2026-04-21 22:11:40 -07:00
Michael Bolin e41b5de26e Merge 8e6431c80a into sapling-pr-archive-bolinfest 2026-04-21 22:05:28 -07:00
Michael Bolin 8e6431c80a fix(exec-server): retain output until streams close 2026-04-21 22:04:55 -07:00
Michael Bolin 313b049060 merge commit for archive created by Sapling 2026-04-21 22:04:36 -07:00
Michael Bolin a4a2863962 fix(exec-server): retain output until streams close 2026-04-21 22:04:23 -07:00
Celia Chen 51fdc35945 chore: remove unused Bedrock auth lazy loading (#18948)
## Summary

The Bedrock Mantle SigV4 auth provider currently looks like it can
lazily load `AwsAuthContext`, but the provider is only constructed after
`resolve_auth_method` has already loaded that context. Because
`with_context` always pre-populates the `OnceCell`, the
`get_or_try_init` fallback is unused in normal operation and makes the
provider lifecycle harder to reason about.

This change removes that dead lazy-loading path and makes the actual
behavior explicit:

- `BedrockAuthMethod::AwsSdkAuth` carries only the resolved
`AwsAuthContext`.
- `BedrockMantleSigV4AuthProvider` stores the resolved context directly.
- request signing uses the stored context without going through
`OnceCell`.

The existing eager AWS auth resolution behavior is unchanged; this is a
simplification of the provider state, not a behavior change.

## Testing

- `cargo shear`
- `cargo test -p codex-model-provider`
- `just bazel-lock-check`
2026-04-22 05:01:22 +00:00
Michael Bolin 5d2b2e0176 Merge 7f4668ae7c into sapling-pr-archive-bolinfest 2026-04-21 21:57:36 -07:00
Michael Bolin 7f4668ae7c fix(exec-server): retain output until streams close 2026-04-21 21:57:30 -07:00
Michael Bolin 16b731a31c Merge cd2f83c3c2 into sapling-pr-archive-bolinfest 2026-04-21 21:53:39 -07:00
Michael Bolin cd2f83c3c2 fix(exec-server): retain output until streams close 2026-04-21 21:53:25 -07:00
Dylan HurdandCodex 34800d717e [codex] Clean guardian instructions (#18934)
## Summary
- Keep the guardian policy installed as guardian base instructions.
- Clear inherited parent `developer_instructions` for guardian review
sessions.
- Update guardian config tests to assert developer instructions are
cleared and policy text is sourced from base instructions.

## Why
Guardian review sessions are intended to run under an isolated guardian
policy. Because the guardian config is cloned from the parent config,
inherited custom or managed developer instructions could otherwise
remain active and conflict with guardian review behavior.

## Validation
- `just fmt`
- `cargo test -p codex-core guardian_review_session_config`

Co-authored-by: Codex <noreply@openai.com>
2026-04-21 21:47:58 -07:00