Michael Bolin
517a131d88
Merge 92986ffdb4 into sapling-pr-archive-bolinfest
2025-06-30 11:27:17 -07:00
Michael Bolin
92986ffdb4
feat: add query_params option to ModelProviderInfo to support Azure
2025-06-30 11:27:07 -07:00
Michael Bolin
cd2d84d496
fix: need to check out the branch, not the tag ( #1430 )
...
This should have been done in https://github.com/openai/codex/pull/1423 .
codex-rs-2925136536b06a324551627468d17e959afa18d4-1-rust-v0.2.0-alpha.2
2025-06-29 10:18:50 -07:00
Michael Bolin
6c73649443
merge commit for archive created by Sapling
2025-06-29 10:16:00 -07:00
Michael Bolin
18dcca9388
fix: need to check out the branch, not the tag
2025-06-29 10:15:48 -07:00
Michael Bolin
688100f7f4
chore: fix Rust release process so generated .tar.gz source works with Homebrew ( #1423 )
...
Looking at existing releases such as
https://github.com/openai/codex/releases/tag/codex-rs-b289c9207090b2e27494545d7b5404e063bd86f3-1-rust-v0.1.0-alpha.4 ,
the `.tar.gz` for the source code still seems to have `0.0.0` as the
`version` in `codex-rs/Cargo.toml` instead of what the tag seems to say
it should have:
https://github.com/openai/codex/blob/b289c9207090b2e27494545d7b5404e063bd86f3/codex-rs/Cargo.toml#L21
ChatGPT claims:
> When GitHub generates the Source code (tar.gz) archive for a tag:
• It uses the commit the tag points to.
• But in some cases (e.g., shallow clones, GitHub CI, or local tools
that only clone the default branch), that commit may not be included,
and you might get an outdated view or nothing at all depending on how
it’s fetched.
Trying this recommended fix.
2025-06-28 19:46:44 -07:00
Michael Bolin
d277b0a3ce
merge commit for archive created by Sapling
2025-06-28 19:42:28 -07:00
Michael Bolin
5d621b9df3
chore: fix Rust release process so generated .tar.gz source works with Homebrew
2025-06-28 19:42:22 -07:00
Michael Bolin
1558ef7d66
Merge 093ffb4ccf into sapling-pr-archive-bolinfest
2025-06-28 19:39:20 -07:00
Michael Bolin
093ffb4ccf
chore: fix Rust release process so generated .tar.gz source works with Homebrew
2025-06-28 19:39:12 -07:00
Michael Bolin
f30bf4bbcf
fix: support pre-release identifiers in tags ( #1422 )
...
Had to update the regex in the GitHub workflow to allow suffixes like
`-alpha.4`.
Successfully ran:
```
./scripts/create_github_release.sh 0.1.0-alpha.4
```
to create
https://github.com/openai/codex/releases/tag/codex-rs-b289c9207090b2e27494545d7b5404e063bd86f3-1-rust-v0.1.0-alpha.4
and verified that when I run `codex --version`, it prints `codex-cli
0.1.0-alpha.4`.
2025-06-28 16:05:53 -07:00
Michael Bolin
2fd41fabaa
Merge fa678c17d7 into sapling-pr-archive-bolinfest
2025-06-28 15:42:50 -07:00
Michael Bolin
fa678c17d7
fix: support pre-release identifiers in tags
2025-06-28 15:42:32 -07:00
Michael Bolin
1b7c8d2569
fix: build with codegen-units = 1 for profile.release ( #1421 )
...
Great suggestion from @zamazan4ik on
https://github.com/openai/codex/issues/1411 .
codex-rs-b289c9207090b2e27494545d7b5404e063bd86f3-1-rust-v0.1.0-alpha.4
2025-06-28 15:24:48 -07:00
Michael Bolin
4eb9ebf3f8
Merge 3f9093ad09 into sapling-pr-archive-bolinfest
2025-06-28 15:21:38 -07:00
Michael Bolin
3f9093ad09
fix: build with codegen-units = 1 for profile.release
2025-06-28 15:21:28 -07:00
Michael Bolin
4a341efe92
feat: highlight matching characters in fuzzy file search ( #1420 )
...
Using the new file-search API introduced in
https://github.com/openai/codex/pull/1419 , matching characters are now
shown in bold in the TUI:
https://github.com/user-attachments/assets/8bbcc6c6-75a3-493f-8ea4-b2a063e09b3a
Fixes https://github.com/openai/codex/issues/1261
2025-06-28 15:04:23 -07:00
Michael Bolin
b36dac4059
merge commit for archive created by Sapling
2025-06-28 14:55:06 -07:00
Michael Bolin
154236d57b
feat: highlight matching characters in fuzzy file search
2025-06-28 14:54:59 -07:00
Michael Bolin
e2efe8da9c
feat: introduce --compute-indices flag to codex-file-search ( #1419 )
...
This is a small quality-of-life feature, the addition of
`--compute-indices` to the CLI, which, if enabled, will compute and set
the `indices` field for each `FileMatch` returned by `run()`. Note we
only bother to compute `indices` once we have the top N results because
there could be a lot of intermediate "top N" results during the search
that are ultimately discarded.
When set, the indices are included in the JSON output when `--json` is
specified and the matching indices are displayed in bold when `--json`
is not specified.
2025-06-28 14:39:29 -07:00
Michael Bolin
660c6ab032
merge commit for archive created by Sapling
2025-06-28 14:30:09 -07:00
Michael Bolin
ea4f6a9688
feat: introduce --compute-indices flag to codex-file-search
2025-06-28 14:30:03 -07:00
Michael Bolin
47303cad03
Merge 8f67d88267 into sapling-pr-archive-bolinfest
2025-06-28 14:25:41 -07:00
Michael Bolin
8f67d88267
feat: introduce --compute-indices flag to codex-file-search
2025-06-28 14:25:36 -07:00
Michael Bolin
51280ceda0
Merge 7550324633 into sapling-pr-archive-bolinfest
2025-06-28 14:25:29 -07:00
Michael Bolin
7550324633
feat: introduce --compute-indices flag to codex-file-search
2025-06-28 14:25:19 -07:00
Michael Bolin
5a0f236ca4
feat: add support for @ to do file search ( #1401 )
...
Introduces support for `@` to trigger a fuzzy-filename search in the
composer. Under the hood, this leverages
https://crates.io/crates/nucleo-matcher to do the fuzzy matching and
https://crates.io/crates/ignore to build up the list of file candidates
(so that it respects `.gitignore`).
For simplicity (at least for now), we do not do any caching between
searches like VS Code does for its file search:
https://github.com/microsoft/vscode/blob/1d89ed699b2e924d418c856318a3e12bca67ff3a/src/vs/workbench/services/search/node/rawSearchService.ts#L212-L218
Because we do not do any caching, I saw queries take up to three seconds
on large repositories with hundreds of thousands of files. To that end,
we do not perform searches synchronously on each keystroke, but instead
dispatch an event to do the search on a background thread that
asynchronously reports back to the UI when the results are available.
This is largely handled by the `FileSearchManager` introduced in this
PR, which also has logic for debouncing requests so there is at most one
search in flight at a time.
While we could potentially polish and tune this feature further, it may
already be overengineered for how it will be used, in practice, so we
can improve things going forward if it turns out that this is not "good
enough" in the wild.
Note this feature does not work like `@` in the TypeScript CLI, which
was more like directory-based tab completion. In the Rust CLI, `@`
triggers a full-repo fuzzy-filename search.
Fixes https://github.com/openai/codex/issues/1261 .
2025-06-28 13:47:42 -07:00
Michael Bolin
65b67ef7fc
merge commit for archive created by Sapling
2025-06-28 13:31:31 -07:00
Michael Bolin
b42eba161b
feat: add support for @ to do file search
2025-06-28 13:31:21 -07:00
Michael Bolin
6c0234d9ad
merge commit for archive created by Sapling
2025-06-28 13:24:11 -07:00
Michael Bolin
de0409587a
feat: add support for @ to do file search
2025-06-28 13:24:05 -07:00
Michael Bolin
f0db073285
merge commit for archive created by Sapling
2025-06-28 09:37:42 -07:00
Michael Bolin
e93781c9e9
feat: add support for @ to do file search
2025-06-28 09:37:37 -07:00
Michael Bolin
6d1d3d5c8d
merge commit for archive created by Sapling
2025-06-28 09:34:00 -07:00
Michael Bolin
1c1fe12637
feat: add support for @ to do file search
2025-06-28 09:33:56 -07:00
Michael Bolin
2237811243
merge commit for archive created by Sapling
2025-06-27 23:34:05 -07:00
Michael Bolin
dd425f458e
feat: add support for @ to do file search
2025-06-27 23:33:59 -07:00
Michael Bolin
e9ba96854b
merge commit for archive created by Sapling
2025-06-27 23:03:05 -07:00
Michael Bolin
5e02ef5e15
feat: add support for @ to do file search
2025-06-27 23:03:00 -07:00
Michael Bolin
fd55590b1f
merge commit for archive created by Sapling
2025-06-27 20:38:45 -07:00
Michael Bolin
2d76c77e31
feat: add support for @ to do file search
2025-06-27 20:38:38 -07:00
Michael Bolin
0f4cf49fe5
merge commit for archive created by Sapling
2025-06-27 20:34:21 -07:00
Michael Bolin
580a1022eb
feat: add support for @ to do file search
2025-06-27 20:33:32 -07:00
Michael Bolin
ff8ae1ffa1
feat: make file search cancellable ( #1414 )
...
Update `run()` to take `cancel_flag: Arc<AtomicBool>` that the worker
threads will periodically check to see if it is `true`, exiting early
(and returning empty results) if so.
2025-06-27 20:01:45 -07:00
Michael Bolin
7d87ea64b7
merge commit for archive created by Sapling
2025-06-27 19:53:32 -07:00
Michael Bolin
a5d84caf0c
feat: add support for @ to do file search
2025-06-27 19:53:14 -07:00
Michael Bolin
e4867d0cc4
feat: make file search cancellable
2025-06-27 19:53:13 -07:00
Michael Bolin
4005804898
merge commit for archive created by Sapling
2025-06-27 19:14:20 -07:00
Michael Bolin
d8c08fe212
feat: add support for @ to do file search
2025-06-27 19:14:12 -07:00
Michael Bolin
2d2ba31c50
merge commit for archive created by Sapling
2025-06-27 19:00:08 -07:00