Commit Graph

2520 Commits

Author SHA1 Message Date
Michael Bolin
a2c42e0809 merge commit for archive created by Sapling 2025-08-06 22:18:43 -07:00
Michael Bolin
c2630f8731 feat: add /tmp by default 2025-08-06 22:18:37 -07:00
Michael Bolin
e3d4b5db08 merge commit for archive created by Sapling 2025-08-06 22:03:31 -07:00
Michael Bolin
fb005bacef feat: add /tmp by default 2025-08-06 22:03:25 -07:00
Michael Bolin
ae0b6705ea Merge f783157c27 into sapling-pr-archive-bolinfest 2025-08-06 21:21:41 -07:00
Michael Bolin
f783157c27 feat: add /tmp by default 2025-08-06 21:15:10 -07:00
Michael Bolin
8a1aa77494 Merge af22387374 into sapling-pr-archive-bolinfest 2025-08-06 18:03:43 -07:00
Michael Bolin
af22387374 feat: update UI for showing a diff 2025-08-06 18:03:14 -07:00
Michael Bolin
4e35af63c8 Merge 497b41d1a1 into sapling-pr-archive-bolinfest 2025-08-06 18:02:00 -07:00
Michael Bolin
497b41d1a1 feat: show diff for apply_patch in a nicer way 2025-08-06 17:59:24 -07:00
Michael Bolin
ef0cc7938f merge commit for archive created by Sapling 2025-08-06 17:45:33 -07:00
Michael Bolin
17b92960e4 feat: change shell_environment_policy to default to inherit="all" 2025-08-06 17:45:27 -07:00
Michael Bolin
b3c4ca244c Merge ab74210de6 into sapling-pr-archive-bolinfest 2025-08-06 17:40:39 -07:00
Michael Bolin
ab74210de6 feat: change shell_environment_policy to default to inherit="all" 2025-08-06 17:40:31 -07:00
Michael Bolin
96c597f4f5 Merge 3136b5a616 into sapling-pr-archive-bolinfest 2025-08-06 17:34:31 -07:00
Michael Bolin
3136b5a616 feat: add syntax highlighting when displaying bash commands 2025-08-06 17:34:24 -07:00
Michael Bolin
61da5e00e2 merge commit for archive created by Sapling 2025-08-06 17:33:09 -07:00
Michael Bolin
80de5bab74 feat: add syntax highlighting when displaying bash commands 2025-08-06 17:33:03 -07:00
Michael Bolin
a1105a0087 feat: update UI for showing a diff 2025-08-06 17:11:58 -07:00
aibrahim-oai
a5e17cda6b Run command UI (#1897)
Edit how commands show:

<img width="243" height="119" alt="image"
src="https://github.com/user-attachments/assets/13d5608e-3b66-4b8d-8fe7-ce464310d85d"
/>
2025-08-07 00:10:59 +00:00
Michael Bolin
106582b704 Merge 0a49bae47f into sapling-pr-archive-bolinfest 2025-08-06 17:10:47 -07:00
Michael Bolin
0a49bae47f feat: add syntax highlighting when displaying bash commands 2025-08-06 17:10:35 -07:00
pap-openai
8a980399c5 fix cursor file name insert (#1896)
Cursor wasn't moving when inserting a file, resulting in being not at
the end of the filename when inserting the file.
This fixes it by moving the cursor to the end of the file + one trailing
space.


Example screenshot after selecting a file when typing `@`
<img width="823" height="268" alt="image"
src="https://github.com/user-attachments/assets/ec6e3741-e1ba-4752-89d2-11f14a2bd69f"
/>
2025-08-06 16:58:06 -07:00
Michael Bolin
b437fdcaa0 Merge 713eb0dbf0 into sapling-pr-archive-bolinfest 2025-08-06 16:20:37 -07:00
Michael Bolin
713eb0dbf0 chore: introduce ModelFamily.requires_chatgpt_auth 2025-08-06 16:20:32 -07:00
Michael Bolin
cd069e87d8 Merge fe76b496b7 into sapling-pr-archive-bolinfest 2025-08-06 16:19:24 -07:00
Michael Bolin
fe76b496b7 chore: introduce ModelFamily.requires_chatgpt_auth 2025-08-06 16:19:18 -07:00
pap-openai
af8c1cdf12 fix meta+b meta+f (option+left/right) (#1895)
Option+Left or Option+Right should move cursor to beginning/end of the
word.

We weren't listening to what terminals are sending (on MacOS) and were
therefore printing b or f instead of moving cursor. We were actually in
the first match clause and returning char insertion
(https://github.com/openai/codex/pull/1895/files#diff-6bf130cd00438cc27a38c5a4d9937a27cf9a324c191de4b74fc96019d362be6dL209)

Tested on Apple Terminal, iTerm, Ghostty
2025-08-06 16:16:47 -07:00
pakrym-oai
57c973b571 Add 2025-08-06 model family (#1899) 2025-08-06 23:14:02 +00:00
Gabriel Peal
2d5de795aa First pass at a TUI onboarding (#1876)
This sets up the scaffolding and basic flow for a TUI onboarding
experience. It covers sign in with ChatGPT, env auth, as well as some
safety guidance.

Next up:
1. Replace the git warning screen
2. Use this to configure default approval/sandbox modes


Note the shimmer flashes are from me slicing the video, not jank.

https://github.com/user-attachments/assets/0fbe3479-fdde-41f3-87fb-a7a83ab895b8
2025-08-06 18:22:14 -04:00
Michael Bolin
c9f006d6dd merge commit for archive created by Sapling 2025-08-06 14:59:32 -07:00
Michael Bolin
fde2b273d1 feat: include path to rollout file in /status output 2025-08-06 14:59:25 -07:00
Dylan
f25b2e8e2c Propagate apply_patch filesystem errors (#1892)
## Summary
We have been returning `exit code 0` from the apply patch command when
writes fail, which causes our `exec` harness to pass back confusing
messages to the model. Instead, we should loudly fail so that the
harness and the model can handle these errors appropriately.

Also adds a test to confirm this behavior.

## Testing
- `cargo test -p codex-apply-patch`
2025-08-06 14:58:53 -07:00
ae
a575effbb0 feat: interrupt running task on ctrl-z (#1880)
- Arguably a bugfix as previously CTRL-Z didn't do anything.
- Only in TUI mode for now. This may make sense in other modes... to be
researched.
- The TUI runs the terminal in raw mode and the signals arrive as key
events, so we handle CTRL-Z as a key event just like CTRL-C.
- Not adding UI for it as a composer redesign is coming, and we can just
add it then.
- We should follow with CTRL-Z a second time doing the native terminal
action.
2025-08-06 21:56:34 +00:00
ae
6cef86f05b feat: update launch screen (#1881)
- Updates the launch screen to:
  ```
  >_ You are using OpenAI Codex in ~/code/codex/codex-rs
  
   Try one of the following commands to get started:
  
   1. /init - Create an AGENTS.md file with instructions for Codex
   2. /status - Show current session configuration and token usage
   3. /compact - Compact the chat history
   4. /new - Start a new chat
   ```
- These aren't the perfect commands, but as more land soon we can
update.
- We should also add logic later to make /init only show when there's no
existing AGENTS.md.
- Majorly need to iterate on copy.

<img width="905" height="769" alt="image"
src="https://github.com/user-attachments/assets/5912939e-fb0e-4e76-94ff-785261e2d6ee"
/>
2025-08-06 14:36:48 -07:00
pakrym-oai
8262ba58b2 Prefer env var auth over default codex auth (#1861)
## Summary
- Prioritize provider-specific API keys over default Codex auth when
building requests
- Add test to ensure provider env var auth overrides default auth

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

------
https://chatgpt.com/codex/tasks/task_i_68926a104f7483208f2c8fd36763e0e3
2025-08-06 13:02:00 -07:00
Jeremy Rose
081caa5a6b show a transient history cell for commands (#1824)
Adds a new "active history cell" for history bits that need to render
more than once before they're inserted into the history. Only used for
commands right now.


https://github.com/user-attachments/assets/925f01a0-e56d-4613-bc25-fdaa85d8aea5

---------

Co-authored-by: easong-openai <easong@openai.com>
2025-08-06 12:03:45 -07:00
Michael Bolin
4344537742 chore: rename INIT.md to prompt_for_init_command.md and move closer to usage (#1886)
Addressing my post-commit review feedback on
https://github.com/openai/codex/pull/1822.
2025-08-06 11:58:57 -07:00
Michael Bolin
64f2f2eca2 fix: support $CODEX_HOME/AGENTS.md instead of $CODEX_HOME/instructions.md (#1891)
The docs and code do not match. It turns out the docs are "right" in
they are what we have been meaning to support, so this PR updates the
code:


ae88b69b09/README.md (L298-L302)

Support for `instructions.md` is a holdover from the TypeScript CLI, so
we are just going to drop support for it altogether rather than maintain
it in perpetuity.
2025-08-06 11:48:03 -07:00
Michael Bolin
9e2060cd0d Merge 1ad3e49919 into sapling-pr-archive-bolinfest 2025-08-06 11:38:19 -07:00
Michael Bolin
1ad3e49919 fix: support $CODEX_HOME/AGENTS.md instead of $CODEX_HOME/instructions.md 2025-08-06 11:32:07 -07:00
Michael Bolin
54c4f12a62 Merge ba025cbbb0 into sapling-pr-archive-bolinfest 2025-08-06 11:11:49 -07:00
Michael Bolin
ba025cbbb0 fix: support $CODEX_HOME/AGENTS.md instead of $CODEX_HOME/instructions.md 2025-08-06 11:11:31 -07:00
Michael Bolin
2b1937dca1 Merge 7230d22ad4 into sapling-pr-archive-bolinfest 2025-08-06 10:52:06 -07:00
Michael Bolin
7230d22ad4 feat: include path to rollout file in /status output 2025-08-06 10:51:48 -07:00
Michael Bolin
ae88b69b09 fix: add more instructions to ensure GitHub Action reviews only the necessary code (#1887)
Empirically, we have seen the GitHub Action comment on code outside of
the PR, so try to provide additional instructions in the prompt to avoid
this.
2025-08-06 10:39:58 -07:00
Michael Bolin
ca62560651 Merge 494526d2d1 into sapling-pr-archive-bolinfest 2025-08-06 09:53:40 -07:00
Michael Bolin
494526d2d1 fix: add more instructions to ensure GitHub Action reviews only the necessary code 2025-08-06 09:52:28 -07:00
Michael Bolin
2c145ee45d Merge bf506c2ee2 into sapling-pr-archive-bolinfest 2025-08-06 09:30:36 -07:00
Michael Bolin
bf506c2ee2 chore: rename INIT.md to prompt_for_init_command.md and move closer to usage 2025-08-06 09:30:19 -07:00