Commit Graph
530 Commits
Author SHA1 Message Date
Charles Cunningham db4f7577e3 tui: avoid expect in pending steer pop 2026-03-03 07:54:02 -08:00
Charles Cunningham 4276ff1bea tui: preserve pending steer metadata on commit 2026-03-02 23:03:44 -08:00
Charles Cunningham 3e778b4a50 tui: clear pending steers on replaced turns 2026-03-02 22:12:27 -08:00
Charles Cunningham d25b311afb tui: format chatwidget imports 2026-03-02 20:49:52 -08:00
Charles Cunningham 1ef120689c tui: use lightweight pending steer compare keys 2026-03-02 20:15:54 -08:00
Charles Cunningham 2fc7bb32d8 tui: replay review agent messages in thread snapshots 2026-03-02 19:30:08 -08:00
Charles Cunningham 119ca71e8f tui: scope pending steers away from review mode 2026-03-02 19:08:30 -08:00
Charles Cunningham 8fac38214c tui: normalize pending steer matching 2026-03-02 16:50:28 -08:00
Charles Cunningham 4ea67e5578 tui: reduce mode submit diff 2026-03-02 16:40:35 -08:00
Charles Cunningham 5fc2f46545 tui: group raw response item with ignored events 2026-03-02 16:39:10 -08:00
Charles Cunningham 6ead619cae tui: clarify plan popup latch semantics 2026-03-02 16:37:37 -08:00
Charles Cunningham 8023f9c8b7 tui: remove dead local history flag 2026-03-02 16:36:25 -08:00
Charles Cunningham c9d15add61 tui: preserve pending steer mention bindings 2026-03-02 16:34:40 -08:00
Charles Cunningham 238d2fa00f tui: move interrupt restore comment 2026-03-02 16:29:56 -08:00
Charles Cunningham 4a03589330 core: emit leftover user-message lifecycle 2026-03-02 16:15:27 -08:00
Charles Cunningham 625ed448f3 tui: remove stale steer comment 2026-03-02 16:14:52 -08:00
Charles Cunningham 2117d1c365 tui: avoid duplicate replayed assistant messages 2026-03-02 16:14:52 -08:00
Charles Cunningham 4a377df0ec tui: reset plan popup state after steer 2026-03-02 16:14:52 -08:00
Charles Cunningham 5f141c3485 tui: restore pending steers on interrupt 2026-03-02 16:14:52 -08:00
Charles Cunningham 0409dfeea4 tui: share text element rebasing helper 2026-03-02 16:14:52 -08:00
Charles Cunningham d7e52bc3b2 tui: clear pending steers on interrupt 2026-03-02 16:14:52 -08:00
Charles Cunningham 90b671fbea tui: normalize pending steer keys directly 2026-03-02 16:14:52 -08:00
Charles Cunningham 76c2da4f96 tui: rename queued messages in pending preview 2026-03-02 16:14:52 -08:00
Charles Cunningham a8a4b7cc17 tui: render committed pending steers 2026-03-02 16:14:52 -08:00
Charles Cunningham 8d59837ccd tui: reconcile pending steers on item completion 2026-03-02 16:14:51 -08:00
Charles Cunningham 85321ce850 rename nudge to steer 2026-03-02 16:14:31 -08:00
Charles Cunningham 5a548d14b1 tui: refactor assistant message finalization 2026-03-02 16:14:31 -08:00
Charles Cunningham 5b0322599e tui: ignore mirrored live agent messages 2026-03-02 16:14:31 -08:00
Charles Cunningham 0f5a58be65 tui: avoid duplicate user prompt rendering 2026-03-02 16:14:31 -08:00
Charles Cunningham 659768831d tui: simplify pending nudge submit gating 2026-03-02 16:14:31 -08:00
Charles Cunningham a4025aa62e tui: inline pending nudge submit helper 2026-03-02 16:14:31 -08:00
Charles Cunningham f3bfc7a07e tui: match pending nudges in queue order 2026-03-02 16:14:31 -08:00
Charles Cunningham 507ea2c601 tui: canonicalize pending nudge matching 2026-03-02 16:14:31 -08:00
Charles Cunningham 4fe09d4434 tui: ignore live legacy agent messages while streaming 2026-03-02 16:14:30 -08:00
Charles Cunningham d566192a01 tui: align pending nudges with core acceptance 2026-03-02 16:14:30 -08:00
Charles Cunningham cca2112626 tui: flush pending nudges after manual interrupt 2026-03-02 16:13:52 -08:00
Charles Cunningham 1d5cad006f tui: rename pending input preview 2026-03-02 16:13:51 -08:00
Charles Cunningham dbb69dd163 tui: submit pending nudges after message boundaries 2026-03-02 16:13:51 -08:00
jif-oai f8838fd6f3 feat: enable ma through /agent (#13246)
<img width="639" height="139" alt="Screenshot 2026-03-02 at 16 06 41"
src="https://github.com/user-attachments/assets/c006fcec-c1e7-41ce-bb84-c121d5ffb501"
/>

Then
<img width="372" height="37" alt="Screenshot 2026-03-02 at 16 06 49"
src="https://github.com/user-attachments/assets/aa4ad703-e7e7-4620-9032-f5cd4f48ff79"
/>
2026-03-02 18:37:29 +00:00
jif-oai 9a42a56d8f chore: /multiagent alias for /agent (#13249)
Add a `/mutli-agents` alias for `/agent` and update the wording
2026-03-02 16:51:54 +00:00
jif-oai b08bdd91e3 fix: /status when sub-agent (#13130)
Fix https://github.com/openai/codex/issues/13066
2026-03-02 11:57:15 +00:00
xl-openai 752402c4fe feat: load from plugins (#12864)
Support loading plugins.

Plugins can now be enabled via [plugins.<name>] in config.toml. They are
loaded as first-class entities through PluginsManager, and their default
skills/ and .mcp.json contributions are integrated into the existing
skills and MCP flows.
2026-03-01 10:50:56 -08:00
jif-oai 2b38b4e03b feat: approval for sub-agent in the TUI (#12995)
<img width="766" height="290" alt="Screenshot 2026-02-27 at 10 50 48"
src="https://github.com/user-attachments/assets/3bc96cd9-ed2c-4d67-a317-8f7b60abbbb1"
/>
2026-02-28 14:07:07 +01:00
Ahmed Ibrahim ec6f6aacbf Add model availability NUX tooltips (#13021)
- override startup tooltips with model availability NUX and persist
per-model show counts in config
- stop showing each model after four exposures and fall back to normal
tooltips
2026-02-27 17:14:06 -08:00
Ahmed Ibrahim f90e97e414 Add realtime audio device picker (#12850)
## Summary
- add a dedicated /audio picker for realtime microphone and speaker
selection
- persist realtime audio choices and prompt to restart only local audio
when voice is live
- add snapshot coverage for the new picker surfaces

## Validation
- cargo test -p codex-tui
- cargo insta accept
- just fix -p codex-tui
- just fmt
2026-02-26 17:27:44 -08:00
pakrym-oai 951a389654 Allow clients not to send summary as an option (#12950)
Summary is a required parameter on UserTurn. Ideally we'd like the core
to decide the appropriate summary level.

Make the summary optional and don't send it when not needed.
2026-02-26 14:37:38 -08:00
pakrym-oaiandCodex ba41e84a50 Use model catalog default for reasoning summary fallback (#12873)
## Summary
- make `Config.model_reasoning_summary` optional so unset means use
model default
- resolve the optional config value to a concrete summary when building
`TurnContext`
- add protocol support for `default_reasoning_summary` in model metadata

## Validation
- `cargo test -p codex-core --lib client::tests -- --nocapture`

---------

Co-authored-by: Codex <noreply@openai.com>
2026-02-26 09:31:13 -08:00
Michael Bolin 14116ade8d feat: include available decisions in command approval requests (#12758)
Command-approval clients currently infer which choices to show from
side-channel fields like `networkApprovalContext`,
`proposedExecpolicyAmendment`, and `additionalPermissions`. That makes
the request shape harder to evolve, and it forces each client to
replicate the server's heuristics instead of receiving the exact
decision list for the prompt.

This PR introduces a mapping between `CommandExecutionApprovalDecision`
and `codex_protocol::protocol::ReviewDecision`:

```rust
impl From<CoreReviewDecision> for CommandExecutionApprovalDecision {
    fn from(value: CoreReviewDecision) -> Self {
        match value {
            CoreReviewDecision::Approved => Self::Accept,
            CoreReviewDecision::ApprovedExecpolicyAmendment {
                proposed_execpolicy_amendment,
            } => Self::AcceptWithExecpolicyAmendment {
                execpolicy_amendment: proposed_execpolicy_amendment.into(),
            },
            CoreReviewDecision::ApprovedForSession => Self::AcceptForSession,
            CoreReviewDecision::NetworkPolicyAmendment {
                network_policy_amendment,
            } => Self::ApplyNetworkPolicyAmendment {
                network_policy_amendment: network_policy_amendment.into(),
            },
            CoreReviewDecision::Abort => Self::Cancel,
            CoreReviewDecision::Denied => Self::Decline,
        }
    }
}
```

And updates `CommandExecutionRequestApprovalParams` to have a new field:

```rust
available_decisions: Option<Vec<CommandExecutionApprovalDecision>>
```

when, if specified, should make it easier for clients to display an
appropriate list of options in the UI.

This makes it possible for `CoreShellActionProvider::prompt()` in
`unix_escalation.rs` to specify the `Vec<ReviewDecision>` directly,
adding support for `ApprovedForSession` when approving a skill script,
which was previously missing in the TUI.

Note this results in a significant change to `exec_options()` in
`approval_overlay.rs`, as the displayed options are now derived from
`available_decisions: &[ReviewDecision]`.

## What Changed

- Add `available_decisions` to
[`ExecApprovalRequestEvent`](https://github.com/openai/codex/blob/de00e932dd9801de0a4faac0519162099753f331/codex-rs/protocol/src/approvals.rs#L111-L175),
including helpers to derive the legacy default choices when older
senders omit the field.
- Map `codex_protocol::protocol::ReviewDecision` to app-server
`CommandExecutionApprovalDecision` and expose the ordered list as
experimental `availableDecisions` in
[`CommandExecutionRequestApprovalParams`](https://github.com/openai/codex/blob/de00e932dd9801de0a4faac0519162099753f331/codex-rs/app-server-protocol/src/protocol/v2.rs#L3798-L3807).
- Thread optional `available_decisions` through the core approval path
so Unix shell escalation can explicitly request `ApprovedForSession` for
session-scoped approvals instead of relying on client heuristics.
[`unix_escalation.rs`](https://github.com/openai/codex/blob/de00e932dd9801de0a4faac0519162099753f331/codex-rs/core/src/tools/runtimes/shell/unix_escalation.rs#L194-L214)
- Update the TUI approval overlay to build its buttons from the ordered
decision list, while preserving the legacy fallback when
`available_decisions` is missing.
- Update the app-server README, test client output, and generated schema
artifacts to document and surface the new field.

## Testing

- Add `approval_overlay.rs` coverage for explicit decision lists,
including the generic `ApprovedForSession` path and network approval
options.
- Update `chatwidget/tests.rs` and app-server protocol tests to populate
the new optional field and keep older event shapes working.

## Developers Docs

- If we document `item/commandExecution/requestApproval` on
[developers.openai.com/codex](https://developers.openai.com/codex), add
experimental `availableDecisions` as the preferred source of approval
choices and note that older servers may omit it.
2026-02-26 01:10:46 +00:00
Celia Chen 4f45668106 Revert "Add skill approval event/response (#12633)" (#12811)
This reverts commit https://github.com/openai/codex/pull/12633. We no
longer need this PR, because we favor sending normal exec command
approval server request with `additional_permissions` of skill
permissions instead
2026-02-26 01:02:42 +00:00
Ahmed IbrahimandCodex e76b1a2853 Remove steer feature flag (#12026)
All code should go in the direction that steer is enabled

---------

Co-authored-by: Codex <noreply@openai.com>
2026-02-25 15:41:42 -08:00