Commit Graph

1420 Commits

Author SHA1 Message Date
Michael Bolin
2b5b341446 Merge 52bcd59147 into sapling-pr-archive-bolinfest 2025-05-21 22:42:32 -07:00
Michael Bolin
52bcd59147 feat: introduce support for shell_environment_policy in config.toml 2025-05-21 22:42:28 -07:00
Michael Bolin
516040b382 Merge 7a06b5d318 into sapling-pr-archive-bolinfest 2025-05-21 22:38:07 -07:00
Michael Bolin
7a06b5d318 feat: show Config overview at start of exec 2025-05-21 22:37:59 -07:00
Michael Bolin
b7d987118f merge commit for archive created by Sapling 2025-05-21 22:30:49 -07:00
Michael Bolin
c6069765bc feat: introduce support for shell_environment_policy in config.toml 2025-05-21 22:30:43 -07:00
Michael Bolin
e51c1717d9 merge commit for archive created by Sapling 2025-05-21 22:23:55 -07:00
Michael Bolin
44a22df89e feat: introduce support for shell_environment_policy in config.toml 2025-05-21 22:23:48 -07:00
Michael Bolin
de3c0b8f75 Merge 6c6fbc85c3 into sapling-pr-archive-bolinfest 2025-05-21 22:05:47 -07:00
Michael Bolin
6c6fbc85c3 feat: introduce support for shell_environment_policy in config.toml 2025-05-21 22:05:42 -07:00
Michael Bolin
4852bbf178 merge commit for archive created by Sapling 2025-05-21 21:57:01 -07:00
Michael Bolin
ddb8a60eb8 feat: introduce support for shell_environment_policy in config.toml 2025-05-21 21:56:57 -07:00
Michael Bolin
6a32b6f322 Merge f61a0e483f into sapling-pr-archive-bolinfest 2025-05-21 21:55:32 -07:00
Michael Bolin
f61a0e483f feat: introduce support for shell_environment_policy in config.toml 2025-05-21 21:55:28 -07:00
Michael Bolin
0ebc41f4d8 merge commit for archive created by Sapling 2025-05-21 21:48:48 -07:00
Michael Bolin
ace9888b84 feat: introduce support for shell_environment_policy in config.toml 2025-05-21 21:48:42 -07:00
Michael Bolin
151d66910e merge commit for archive created by Sapling 2025-05-21 21:26:14 -07:00
Michael Bolin
dd4ce3c9ce feat: introduce support for shell_environment_policy in config.toml 2025-05-21 21:26:03 -07:00
Michael Bolin
dec39f4dc0 merge commit for archive created by Sapling 2025-05-21 21:13:12 -07:00
Michael Bolin
7230d8aeeb feat: introduce support for shell_environment_policy in config.toml 2025-05-21 21:13:07 -07:00
Michael Bolin
0908b84a45 merge commit for archive created by Sapling 2025-05-20 16:35:58 -07:00
Michael Bolin
4bc7159c64 feat: introduce support for shell_environment_policy in config.toml 2025-05-20 16:35:48 -07:00
Michael Bolin
5746561428 chore: move types out of config.rs into config_types.rs (#1054)
`config.rs` is already quite long without these definitions. Since they
have no real dependencies of their own, let's move them to their own
file so `config.rs` can focus on the business logic of loading a config.
2025-05-20 11:55:25 -07:00
Michael Bolin
eb66b0324b Merge 55e5b5f87b into sapling-pr-archive-bolinfest 2025-05-20 11:32:48 -07:00
Michael Bolin
55e5b5f87b chore: move types out of config.rs into config_types.rs 2025-05-20 11:32:40 -07:00
Michael Bolin
d766e845b3 feat: experimental --output-last-message flag to exec subcommand (#1037)
This introduces an experimental `--output-last-message` flag that can be
used to identify a file where the final message from the agent will be
written. Two use cases:

- Ultimately, we will likely add a `--quiet` option to `exec`, but even
if the user does not want any output written to the terminal, they
probably want to know what the agent did. Writing the output to a file
makes it possible to get that information in a clean way.
- Relatedly, when using `exec` in CI, it is easier to review the
transcript written "normally," (i.e., not as JSON or something with
extra escapes), but getting programmatic access to the last message is
likely helpful, so writing the last message to a file gets the best of
both worlds.

I am calling this "experimental" because it is possible that we are
overfitting and will want a more general solution to this problem that
would justify removing this flag.
codex-rs-68e94c8c08943e1d4a53bd7987e319ba7dbffb74-1-rust-v0.0.2505191609
2025-05-19 16:08:18 -07:00
Michael Bolin
b27b9819d9 Merge 25e9684795 into sapling-pr-archive-bolinfest 2025-05-19 16:02:45 -07:00
Michael Bolin
25e9684795 feat: add --output-last-message flag to exec subcommand 2025-05-19 16:02:39 -07:00
Michael Bolin
ba700a2a17 merge commit for archive created by Sapling 2025-05-19 15:53:59 -07:00
Michael Bolin
89a37b1d35 feat: add --output-last-message flag to exec subcommand 2025-05-19 15:53:52 -07:00
Michael Bolin
937b29bfe8 Merge 921beff71a into sapling-pr-archive-bolinfest 2025-05-19 15:50:39 -07:00
Michael Bolin
921beff71a feat: add --output-last-message flag to exec subcommand 2025-05-19 15:50:32 -07:00
Michael Bolin
a4bfdf6779 chore: produce .tar.gz versions of artifacts in addition to .zst (#1036)
For sparse containers/environments that do not have `zstd`, provide
`.tar.gz` as alternative archive format.
codex-rs-c74d7e13e7d8daf3a2493f6216918d5e59a38bed-1-rust-v0.0.2505191518
2025-05-19 15:17:45 -07:00
Michael Bolin
5cf749a655 Merge ec1b36e9e7 into sapling-pr-archive-bolinfest 2025-05-19 15:13:39 -07:00
Michael Bolin
ec1b36e9e7 chore: produce .tar.gz versions of artifacts in addition to .zst 2025-05-19 15:13:23 -07:00
Fouad Matin
44022db8d0 bump(version): 0.1.2505172129 (#1008)
## `0.1.2505172129`

### 🪲 Bug Fixes

- Add node version check (#1007)
- Persist token after refresh (#1006)
2025-05-17 21:35:54 -07:00
Fouad Matin
a86270f581 fix: add node version check (#1007) 2025-05-17 21:27:41 -07:00
Fouad Matin
835eb77a7d fix: persist token after refresh (#1006)
After a token refresh/exchange, persist the new refresh and id token
2025-05-17 21:27:02 -07:00
Fouad Matin
dbc0ad348e bump(version): 0.1.2505171619 (#1001)
## `0.1.2505171619`

- `codex --login` + `codex --free` (#998)
2025-05-17 16:25:21 -07:00
Fouad Matin
9b4c2984d4 add: codex --login + codex --free (#998)
## Summary
- add `--login` and `--free` flags to cli help
- handle `--login` and `--free` logic in cli
- factor out redeem flow into `maybeRedeemCredits`
- call new helper from login callback
2025-05-17 16:13:12 -07:00
Michael Bolin
abbc0655cf merge commit for archive created by Sapling 2025-05-17 12:28:48 -07:00
Michael Bolin
4053788f5d fix: provide tolerance for apply_patch tool 2025-05-17 12:28:20 -07:00
Michael Bolin
f3bde21759 chore: update install_native_deps.sh to use rust-v0.0.2505171051 (#995)
Use a more recent built of the Rust binaries to include with the Node
module.
2025-05-17 11:25:24 -07:00
Michael Bolin
c2924cabce Merge f6df45a9e1 into sapling-pr-archive-bolinfest 2025-05-17 11:23:52 -07:00
Michael Bolin
f6df45a9e1 chore: update install_native_deps.sh to use rust-v0.0.2505171051 2025-05-17 11:23:44 -07:00
Michael Bolin
2ae00568a0 Merge d690965316 into sapling-pr-archive-bolinfest 2025-05-17 11:05:09 -07:00
Michael Bolin
d690965316 fix: provide tolerance for apply_patch tool 2025-05-17 11:05:06 -07:00
Michael Bolin
ff72f0e8da Merge 2388a941f5 into sapling-pr-archive-bolinfest 2025-05-17 11:03:56 -07:00
Michael Bolin
2388a941f5 fix: provide tolerance for apply_patch tool 2025-05-17 11:03:30 -07:00
Michael Bolin
1c6a3f1097 fix: artifacts from previous frames were bleeding through in TUI (#989)
Prior to this PR, I would frequently see glyphs from previous frames
"bleed" through like this:


![image](https://github.com/user-attachments/assets/8784b3d7-f691-4df6-8666-34e2f134ee85)

I think this was due to two issues (now addressed in this PR):

* We were not making use of `ratatui::widgets::Clear` to clear out the
buffer before drawing into it.
* To calculate the `width` used with `wrapped_line_count_for_cell()`, we
were not accounting for the scrollbar.
* Now we calculate `effective_width` using
`inner.width.saturating_sub(1)` where the `1` is for the scrollbar.
* We compute `text_area` using `effective_with` and pass the `text_area`
to `paragraph.render()`.
* We eliminate the conditional `needs_scrollbar` check and always call
`render(Scrollbar)`

I suspect this bug was introduced in
https://github.com/openai/codex/pull/937, though I did not try to
verify: I'm just happy that it appears to be fixed!
codex-rs-5ee08335ac690a69035720a798df9865bc5a4278-1-rust-v0.0.2505171051
2025-05-17 10:51:11 -07:00