Commit Graph

2678 Commits

Author SHA1 Message Date
Michael Bolin
e122947cda merge commit for archive created by Sapling 2025-08-08 15:41:21 -07:00
Michael Bolin
a2daa58d10 chore: remove the TypeScript code from the repository 2025-08-08 15:41:15 -07:00
Michael Bolin
4888c859c5 merge commit for archive created by Sapling 2025-08-08 15:39:52 -07:00
Michael Bolin
f4418113f0 chore: remove the TypeScript code from the repository 2025-08-08 15:39:45 -07:00
Michael Bolin
39a4d4ed8e fix: try building the npm package in CI (#2043)
Historically, the release process for the npm module has been:

- I run `codex-rs/scripts/create_github_release.sh` to kick off a
release for the native artifacts.
- I wait until it is done.
- I run `codex-cli/scripts/stage_rust_release.py` to build the npm
release locally
- I run `npm publish` from my laptop

It has been a longstanding issue to move the npm build to CI. I may
still have to do the `npm publish` manually because it requires 2fac
with `npm`, though I assume we can work that out later.

Note I asked Codex to make these updates, and while they look pretty
good to me, I'm not 100% certain, but let's just merge this and I'll
kick off another alpha build and we'll see what happens?
2025-08-08 15:17:54 -07:00
pakrym-oai
33f266dab3 Use certifi certificate when available (#2042)
certifi has a more consistent set of Mozilla maintained root
certificates
2025-08-08 22:15:35 +00:00
Michael Bolin
5eef765622 merge commit for archive created by Sapling 2025-08-08 15:09:54 -07:00
Michael Bolin
b1a070e6bf fix: try building the npm package in CI 2025-08-08 15:09:47 -07:00
Michael Bolin
d0cf036799 feat: include Windows binary of the CLI in the npm release (#2040)
To date, the build scripts in `codex-cli` still supported building the
old TypeScript version of the Codex CLI to give Windows users something
they can run, but we are just going to have them use the Rust version
like everyone else, so:

- updates `codex-cli/bin/codex.js` so that we run the native binary or
throw if the target platform/arch is not supported (no more conditional
usage based on `CODEX_RUST`, `use-native` file, etc.)
- drops the `--native` flag from `codex-cli/scripts/stage_release.sh`
and updates all the code paths to behave as if `--native` were passed
(i.e., it is the only way to run it now)

Tested this by running:

```
./codex-cli/scripts/stage_rust_release.py --release-version 0.20.0-alpha.2
```
2025-08-08 14:44:35 -07:00
Michael Bolin
a8460bf5bf merge commit for archive created by Sapling 2025-08-08 14:34:59 -07:00
Michael Bolin
9173290298 feat: include Windows binary of the CLI in the npm release 2025-08-08 14:34:53 -07:00
Michael Bolin
2245f22ecd Merge c5cf8625d8 into sapling-pr-archive-bolinfest 2025-08-08 14:27:37 -07:00
Michael Bolin
c5cf8625d8 feat: include Windows binary of the CLI in the npm release 2025-08-08 14:27:25 -07:00
Michael Bolin
6f971fd8c5 merge commit for archive created by Sapling 2025-08-08 14:22:57 -07:00
Michael Bolin
c977d48d84 feat: include Windows binary of the CLI in the npm release 2025-08-08 14:22:49 -07:00
Michael Bolin
8e332eb0e5 Merge 0a83828bb9 into sapling-pr-archive-bolinfest 2025-08-08 14:16:11 -07:00
Michael Bolin
0a83828bb9 feat: include Windows binary of the CLI in the npm release 2025-08-08 14:16:04 -07:00
Michael Bolin
8a26ea0fe0 fix: stop building codex-exec and codex-linux-sandbox binaries (#2036)
Release builds are taking awhile and part of the reason that we are
building binaries that we are not really using. Adding Windows binaries
into releases (https://github.com/openai/codex/pull/2035) slows things
down, so we need to get some time back.

- `codex-exec` is basically a standalone `codex exec` that we were
offering because it's a bit smaller as it does not include all the bits
to power the TUI. We were using it in our experimental GitHub Action, so
this PR updates the Action to use `codex exec` instead.
- `codex-linux-sandbox` was a helper binary for the TypeScript version
of the CLI, but I am about to axe that, so we don't need this either.

If we decide to bring `codex-exec` back at some point, we should use a
separate instances so we can build it in parallel with `codex`. (I think
if we had beefier build machines, this wouldn't be so bad, but that's
not the case with the default runners from GitHub.)
2025-08-08 13:42:33 -07:00
Michael Bolin
3fde0d70be merge commit for archive created by Sapling 2025-08-08 13:31:07 -07:00
Michael Bolin
f6fbc61ccd fix: stop building codex-exec and codex-linux-sandbox binaries 2025-08-08 13:31:01 -07:00
Michael Bolin
8cf5134216 Merge 594a89d779 into sapling-pr-archive-bolinfest 2025-08-08 13:30:43 -07:00
Michael Bolin
594a89d779 fix: stop building codex-exec and codex-linux-sandbox binaries 2025-08-08 13:30:39 -07:00
Michael Bolin
25033b38fe merge commit for archive created by Sapling 2025-08-08 13:29:52 -07:00
Michael Bolin
830151f308 fix: stop building codex-exec and codex-linux-sandbox binaries 2025-08-08 13:29:45 -07:00
Michael Bolin
18eb157000 feat: include windows binaries in GitHub releases (#2035)
We should stop shipping the old TypeScript CLI to Windows users. I did
some light testing of the Rust CLI on Windows in `cmd.exe` and it works
better than I expected!
2025-08-08 13:03:11 -07:00
aibrahim-oai
6cfee15612 Moving the compact prompt near where it's used (#2031)
- Moved the prompt for compact to core
- Renamed it to be more clear
2025-08-08 12:43:43 -07:00
Josh LeBlanc
216e9e2ed0 Fix rust build on windows (#2019)
This pull request implements a fix from #2000, as well as fixed an
additional problem with path lengths on windows that prevents the login
from displaying.

---------

Co-authored-by: Michael Bolin <bolinfest@gmail.com>
Co-authored-by: Michael Bolin <mbolin@openai.com>
2025-08-08 10:57:16 -07:00
Gabriel Peal
c3a8ab8511 Fix multiline exec command rendering (#2023)
With Ratatui, if a single line contains newlines, it increments y but
not x so each subsequent line continued from the same x position as the
previous line ended on.

Before
<img width="2010" height="376" alt="CleanShot 2025-08-08 at 09 13 13"
src="https://github.com/user-attachments/assets/09feefbd-c5ee-4631-8967-93ab108c352a"
/>
After
<img width="1002" height="364" alt="CleanShot 2025-08-08 at 09 11 54"
src="https://github.com/user-attachments/assets/a58b47cf-777f-436a-93d9-ab277046a577"
/>
2025-08-08 13:52:24 -04:00
pakrym-oai
307d9957fa Fix usage limit banner grammar (#2018)
## Summary
- fix typo in usage limit banner text
- update error message tests

## Testing
- `just fmt`
- `RUSTC_BOOTSTRAP=1 just fix` *(fails: `let` expressions in this
position are unstable)*
- `RUSTC_BOOTSTRAP=1 cargo test --all-features` *(fails: `let`
expressions in this position are unstable)*

------
https://chatgpt.com/codex/tasks/task_i_689610fc1fe4832081bdd1118779b60b
2025-08-08 08:50:44 -07:00
pakrym-oai
431c9299d4 Remove part of the error message (#1983) 2025-08-08 02:01:53 +00:00
easong-openai
52e12f2b6c Revert "Streaming markdown (#1920)" (#1981)
This reverts commit 2b7139859e.
2025-08-08 01:38:39 +00:00
easong-openai
2b7139859e Streaming markdown (#1920)
We wait until we have an entire newline, then format it with markdown and stream in to the UI. This reduces time to first token but is the right thing to do with our current rendering model IMO. Also lets us add word wrapping!
2025-08-07 18:26:47 -07:00
pakrym-oai
fa0051190b Adjust error messages (#1969)
<img width="1378" height="285" alt="image"
src="https://github.com/user-attachments/assets/f0283378-f839-4a1f-8331-909694a04b1f"
/>
2025-08-07 18:24:34 -07:00
Michael Bolin
cd06b28d84 fix: default to credits from ChatGPT auth, when possible (#1971)
Uses this rough strategy for authentication:

```
if auth.json
	if auth.json.API_KEY is NULL # new auth
		CHAT
	else # old auth
		if plus or pro or team
			CHAT
		else 
			API_KEY
		
else OPENAI_API_KEY
```

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/1970).
* __->__ #1971
* #1970
* #1966
* #1965
* #1962
2025-08-07 18:00:31 -07:00
Michael Bolin
d4c00fe8b7 merge commit for archive created by Sapling 2025-08-07 17:35:20 -07:00
Michael Bolin
6a39ceb12a fix: default to credits from ChatGPT auth, when possible 2025-08-07 17:33:07 -07:00
Michael Bolin
a24bee0aa3 merge commit for archive created by Sapling 2025-08-07 17:24:12 -07:00
Michael Bolin
978036cc28 fix: default to credits from ChatGPT auth, when possible 2025-08-07 17:24:07 -07:00
Michael Bolin
af6c322774 merge commit for archive created by Sapling 2025-08-07 17:22:50 -07:00
Michael Bolin
f83232d444 fix: default to credits from ChatGPT auth, when possible 2025-08-07 17:22:46 -07:00
Michael Bolin
7f999fa955 merge commit for archive created by Sapling 2025-08-07 17:21:33 -07:00
Michael Bolin
a473f7a75f fix: default to credits from ChatGPT auth, when possible 2025-08-07 17:21:28 -07:00
Michael Bolin
0265ea0486 merge commit for archive created by Sapling 2025-08-07 17:18:13 -07:00
Michael Bolin
08bfb12600 fix: default to credits from ChatGPT auth, when possible 2025-08-07 17:18:06 -07:00
Michael Bolin
9992db09f4 merge commit for archive created by Sapling 2025-08-07 17:17:08 -07:00
Michael Bolin
5fc9ecc601 fix: default to credits from ChatGPT auth, when possible 2025-08-07 17:17:02 -07:00
Michael Bolin
295abf3e51 chore: change CodexAuth::from_api_key() to take &str instead of String (#1970)
Good practice and simplifies some of the call sites.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/1970).
* #1971
* __->__ #1970
* #1966
* #1965
* #1962
2025-08-07 16:55:33 -07:00
Michael Bolin
52926cd1b2 merge commit for archive created by Sapling 2025-08-07 16:50:09 -07:00
Michael Bolin
3b12816016 chore: change CodexAuth::from_api_key() to take &str instead of String 2025-08-07 16:50:02 -07:00
Michael Bolin
8d2411c001 fix: default to credits from ChatGPT auth, when possible 2025-08-07 16:50:02 -07:00