Commit Graph

8634 Commits

Author SHA1 Message Date
Michael Bolin
298685f856 Merge e1a15b13a9 into sapling-pr-archive-bolinfest 2025-04-29 14:01:52 -07:00
Michael Bolin
e1a15b13a9 feat: flip the sense of the --sandbox option 2025-04-29 14:01:48 -07:00
Michael Bolin
8f88c54917 merge commit for archive created by Sapling 2025-04-29 13:57:59 -07:00
Michael Bolin
4c2abb2ed5 feat: flip the sense of the --sandbox option 2025-04-29 13:57:54 -07:00
Michael Bolin
ad5e9e6899 merge commit for archive created by Sapling 2025-04-29 13:55:09 -07:00
Michael Bolin
1d198677c8 feat: flip the sense of the --sandbox option 2025-04-29 13:55:04 -07:00
Michael Bolin
33d0a8cf47 merge commit for archive created by Sapling 2025-04-29 13:52:51 -07:00
Michael Bolin
f63e2bb776 feat: flip the sense of the --sandbox option 2025-04-29 13:52:44 -07:00
Michael Bolin
a0e99e0866 merge commit for archive created by Sapling 2025-04-29 13:31:37 -07:00
Michael Bolin
a1bac7afab feat: flip the sense of the --sandbox option 2025-04-29 13:31:31 -07:00
Michael Bolin
dd75f98f18 merge commit for archive created by Sapling 2025-04-29 13:24:25 -07:00
Michael Bolin
32eb5e14e1 feat: flip the sense of the --sandbox option 2025-04-29 13:24:20 -07:00
Michael Bolin
cd82749ec9 merge commit for archive created by Sapling 2025-04-29 13:21:17 -07:00
Michael Bolin
f4e037db0a feat: flip the sense of the --sandbox option 2025-04-29 13:21:10 -07:00
Michael Bolin
9383f1c6fc merge commit for archive created by Sapling 2025-04-29 13:13:28 -07:00
Michael Bolin
e92caeafac feat: flip the sense of the --sandbox option 2025-04-29 13:13:19 -07:00
Matan Yemini
237f8a11e1 feat: add common package registries domains to allowed-domains list (#414)
feat: add common package registries domains to allowed-domains list
2025-04-29 12:07:00 -07:00
Michael Bolin
b6d6031ff7 Merge 1db0aeb787 into sapling-pr-archive-bolinfest 2025-04-29 11:09:20 -07:00
Michael Bolin
1db0aeb787 feat: flip the sense of the --sandbox option 2025-04-29 11:09:15 -07:00
Michael Bolin
f0c0b77a9d merge commit for archive created by Sapling 2025-04-29 11:09:01 -07:00
Michael Bolin
566cd27a0e feat: flip the sense of the --sandbox option 2025-04-29 11:08:53 -07:00
Michael Bolin
99676c7506 Merge febc95ce1d into sapling-pr-archive-bolinfest 2025-04-29 11:01:02 -07:00
Michael Bolin
febc95ce1d feat: flip the sense of the --sandbox option 2025-04-29 11:00:43 -07:00
Kevin Alwell
a6ed7ff103 Fixes issue #726 by adding config to configToSave object (#728)
The saveConfig() function only includes a hardcoded subset of properties
when writing the config file. Any property not explicitly listed (like
disableResponseStorage) will be dropped.
I have added `disableResponseStorage` to the `configToSave` object as
the immediate fix.

[Linking Issue this fixes.](https://github.com/openai/codex/issues/726)
2025-04-29 13:10:16 -04:00
Michael Bolin
3b39964f81 feat: improve output of exec subcommand (#719) 2025-04-29 09:59:35 -07:00
Rashim
892242ef7c feat: add --reasoning CLI flag (#314)
This PR adds a new CLI flag: `--reasoning`, which allows users to
customize the reasoning effort level (`low`, `medium`, or `high`) used
by OpenAI's `o` models.
By introducing the `--reasoning` flag, users gain more flexibility when
working with the models. It enables optimization for either speed or
depth of reasoning, depending on specific use cases.
This PR resolves #107

- **Flag**: `--reasoning`
- **Accepted Values**: `low`, `medium`, `high`
- **Default Behavior**: If not specified, the model uses the default
reasoning level.

## Example Usage

```bash
codex --reasoning=low "Write a simple function to calculate factorial"

---------

Co-authored-by: Fouad Matin <169186268+fouad-openai@users.noreply.github.com>
Co-authored-by: yashrwealthy <yash.rastogi@wealthy.in>
Co-authored-by: Thibault Sottiaux <tibo@openai.com>
2025-04-29 07:30:49 -07:00
Michael Bolin
212784dc8b merge commit for archive created by Sapling 2025-04-28 23:57:20 -07:00
Michael Bolin
493e1b477c feat: improve output of exec subcommand 2025-04-28 23:57:14 -07:00
Michael Bolin
d362978afe merge commit for archive created by Sapling 2025-04-28 23:54:22 -07:00
Michael Bolin
65ec055195 feat: improve output of exec subcommand 2025-04-28 23:54:10 -07:00
Michael Bolin
7bb0f0045c merge commit for archive created by Sapling 2025-04-28 23:35:59 -07:00
Michael Bolin
9579f05363 feat: improve output of exec subcommand 2025-04-28 23:35:54 -07:00
Michael Bolin
e0b1860777 merge commit for archive created by Sapling 2025-04-28 23:12:14 -07:00
Michael Bolin
8ef2b38286 feat: improve output of exec subcommand 2025-04-28 23:12:08 -07:00
Fouad Matin
19928bc257 [codex-rs] fix: exit code 1 if no api key (#697) 2025-04-28 21:42:06 -07:00
Michael Bolin
b9bba09819 fix: eliminate runtime dependency on patch(1) for apply_patch (#718)
When processing an `apply_patch` tool call, we were already computing
the new file content in order to compute the unified diff. Before this
PR, we were shelling out to `patch(1)` to apply the unified diff once
the user accepted the change, but this updates the code to just retain
the new file content and use it to write the file when the user accepts.
This simplifies deployment because it no longer assumes `patch(1)` is on
the host.

Note this change is internal to the Codex agent and does not affect
`protocol.rs`.
2025-04-28 21:15:41 -07:00
Thibault Sottiaux
d09dbba7ec feat: lower default retry wait time and increase number of tries (#720)
In total we now guarantee that we will wait for at least 60s before
giving up.

---------

Signed-off-by: Thibault Sottiaux <tibo@openai.com>
2025-04-28 21:11:30 -07:00
Michael Bolin
c850a20fc9 merge commit for archive created by Sapling 2025-04-28 17:14:12 -07:00
Michael Bolin
2df38990ad feat: improve output of exec subcommand 2025-04-28 17:13:27 -07:00
Michael Bolin
02109fd81d Merge 3b4093de65 into sapling-pr-archive-bolinfest 2025-04-28 17:08:24 -07:00
Michael Bolin
3b4093de65 feat: improve output of exec subcommand 2025-04-28 17:06:05 -07:00
Michael Bolin
e79549f039 feat: add debug landlock subcommand comparable to debug seatbelt (#715)
This PR adds a `debug landlock` subcommand to the Codex CLI for testing
how Codex would execute a command using the specified sandbox policy.

Built and ran this code in the `rust:latest` Docker container. In the
container, hitting the network with vanilla `curl` succeeds:

```
$ curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
```

whereas this fails, as expected:

```
$ cargo run -- debug landlock -s network-restricted -- curl google.com
curl: (6) getaddrinfo() thread failed to start
```
2025-04-28 16:37:05 -07:00
Michael Bolin
26eef5c10b Merge 481f07a0db into sapling-pr-archive-bolinfest 2025-04-28 16:36:55 -07:00
Michael Bolin
481f07a0db fix: eliminate runtime dependency on patch(1) for apply_patch 2025-04-28 16:36:44 -07:00
Michael Bolin
edcb95e8f9 Merge d1abb9f6cd into sapling-pr-archive-bolinfest 2025-04-28 15:46:55 -07:00
Michael Bolin
d1abb9f6cd feat: add debug landlock subcommand comparable to debug seatbelt 2025-04-28 15:46:46 -07:00
Michael Bolin
1095fe8001 merge commit for archive created by Sapling 2025-04-28 15:42:39 -07:00
Michael Bolin
7b98df230c feat: add debug landlock subcommand comparable to debug seatbelt 2025-04-28 15:42:35 -07:00
Michael Bolin
e7ad9449ea feat: make it possible to set disable_response_storage = true in config.toml (#714)
https://github.com/openai/codex/pull/642 introduced support for the
`--disable-response-storage` flag, but if you are a ZDR customer, it is
tedious to set this every time, so this PR makes it possible to set this
once in `config.toml` and be done with it.

Incidentally, this tidies things up such that now `init_codex()` takes
only one parameter: `Config`.
2025-04-28 15:39:34 -07:00
Michael Bolin
333d2079a1 merge commit for archive created by Sapling 2025-04-28 15:38:57 -07:00