Commit Graph

925 Commits

Author SHA1 Message Date
Michael Bolin
bda6cf4db9 Merge f0498675b6 into sapling-pr-archive-bolinfest 2025-05-08 15:53:18 -07:00
Michael Bolin
f0498675b6 fix: enable clippy on tests 2025-05-08 15:53:13 -07:00
Michael Bolin
c977e80515 Merge b07e74a95e into sapling-pr-archive-bolinfest 2025-05-08 15:40:16 -07:00
Michael Bolin
b07e74a95e fix: enable clippy on tests 2025-05-08 15:40:08 -07:00
Michael Bolin
2b5e41db65 Merge a32d8f8e3b into sapling-pr-archive-bolinfest 2025-05-08 15:17:39 -07:00
Michael Bolin
a32d8f8e3b feat: support the chat completions API in the Rust CLI 2025-05-08 15:17:29 -07:00
Michael Bolin
699ec5a87f fix: remove wrapping in Rust TUI that was incompatible with scrolling math (#868)
I noticed that sometimes I would enter a new message, but it would not
show up in the conversation history. Even if I focused the conversation
history and tried to scroll it to the bottom, I could not bring it into
view. At first, I was concerned that messages were not making it to the
UI layer, but I added debug statements and verified that was not the
issue.

It turned out that, previous to this PR, lines that are wider than the
viewport take up multiple lines of vertical space because `wrap()` was
set on the `Paragraph` inside the scroll pane. Unfortunately, that broke
our "scrollbar math" that assumed each `Line` contributes one line of
height in the UI.

This PR removes the `wrap()`, but introduces a new issue, which is that
now you cannot see long lines without resizing your terminal window. For
now, I filed an issue here:

https://github.com/openai/codex/issues/869

I think the long-term fix is to fix our math so it calculates the height
of a `Line` after it is wrapped given the current width of the viewport.
2025-05-08 15:17:17 -07:00
Michael Bolin
cc48304d61 Merge 3d676c3032 into sapling-pr-archive-bolinfest 2025-05-08 15:09:40 -07:00
Michael Bolin
3d676c3032 fix: remove wrapping in Rust TUI that was incompatible with scrolling math 2025-05-08 15:09:33 -07:00
Michael Bolin
55807005da Merge e57d102e88 into sapling-pr-archive-bolinfest 2025-05-08 13:55:53 -07:00
Michael Bolin
e57d102e88 feat: support the chat completions API in the Rust CLI 2025-05-08 13:55:49 -07:00
Michael Bolin
5decf2267c merge commit for archive created by Sapling 2025-05-08 13:53:25 -07:00
Michael Bolin
f403b25c84 feat: support the chat completions API in the Rust CLI 2025-05-08 13:53:11 -07:00
Michael Bolin
9bfed3a8fd Merge f45974fcf6 into sapling-pr-archive-bolinfest 2025-05-08 13:47:11 -07:00
Michael Bolin
f45974fcf6 feat: support the chat completions API in the Rust CLI 2025-05-08 13:47:07 -07:00
Michael Bolin
fb6dab2afc merge commit for archive created by Sapling 2025-05-08 13:25:11 -07:00
Michael Bolin
6f37f2d828 feat: support the chat completions API in the Rust CLI 2025-05-08 13:25:05 -07:00
Michael Bolin
ca37891b68 merge commit for archive created by Sapling 2025-05-08 12:57:54 -07:00
Michael Bolin
294634377b feat: support the chat completions API in the Rust CLI 2025-05-08 12:57:49 -07:00
Michael Bolin
fbbc809820 merge commit for archive created by Sapling 2025-05-08 12:44:47 -07:00
Michael Bolin
81fc1307d5 feat: support the chat completions API in the Rust CLI 2025-05-08 12:44:41 -07:00
Michael Bolin
833a96d0b9 merge commit for archive created by Sapling 2025-05-08 12:41:49 -07:00
Michael Bolin
dd4f0453d5 feat: support the chat completions API in the Rust CLI 2025-05-08 12:41:43 -07:00
Michael Bolin
e02ffee98d merge commit for archive created by Sapling 2025-05-08 12:35:18 -07:00
Michael Bolin
1972da7d9f feat: support the chat completions API in the Rust CLI 2025-05-08 12:35:10 -07:00
Michael Bolin
3c94aa7db1 merge commit for archive created by Sapling 2025-05-08 12:33:42 -07:00
Michael Bolin
559982f1ec feat: support the chat completions API in the Rust CLI 2025-05-08 12:33:35 -07:00
Michael Bolin
3257deb32d merge commit for archive created by Sapling 2025-05-08 12:26:15 -07:00
Michael Bolin
899d48bcc3 feat: support the chat completions API in the Rust CLI 2025-05-08 12:26:09 -07:00
Michael Bolin
c372943890 Merge 5dd91e47fe into sapling-pr-archive-bolinfest 2025-05-08 12:20:47 -07:00
Michael Bolin
5dd91e47fe feat: support the chat completions API in the Rust CLI 2025-05-08 12:20:41 -07:00
Michael Bolin
3bea5e1fd3 merge commit for archive created by Sapling 2025-05-08 11:46:53 -07:00
Michael Bolin
13fb820612 feat: support the chat completions API in the Rust CLI 2025-05-08 11:46:46 -07:00
Michael Bolin
bb793643fd merge commit for archive created by Sapling 2025-05-08 11:29:23 -07:00
Michael Bolin
046d8ca49f feat: support the chat completions API in the Rust CLI 2025-05-08 11:29:17 -07:00
Michael Bolin
738c6f9884 Merge f4400df0f8 into sapling-pr-archive-bolinfest 2025-05-08 11:08:26 -07:00
Michael Bolin
f4400df0f8 feat: support the chat completions API in the Rust CLI 2025-05-08 11:08:22 -07:00
Michael Bolin
7d63895d93 merge commit for archive created by Sapling 2025-05-08 11:02:53 -07:00
Michael Bolin
b09190e842 feat: support the chat completions API in the Rust CLI 2025-05-08 11:02:48 -07:00
Michael Bolin
59c61b1a14 Merge ffda803fb7 into sapling-pr-archive-bolinfest 2025-05-08 10:49:41 -07:00
Michael Bolin
ffda803fb7 feat: support the chat completions API in the Rust CLI 2025-05-08 10:49:35 -07:00
Michael Bolin
24ecca3530 merge commit for archive created by Sapling 2025-05-08 10:49:10 -07:00
Michael Bolin
f27d589de6 feat: support the chat completions API in the Rust CLI 2025-05-08 10:49:01 -07:00
jcoens-openai
87cf120873 Workspace lints and disallow unwrap (#855)
Sets submodules to use workspace lints. Added denying unwrap as a
workspace level lint, which found a couple of cases where we could have
propagated errors. Also manually labeled ones that were fine by my eye.
2025-05-08 09:46:18 -07:00
Michael Bolin
6df57d9b86 Merge ab33ddb9a6 into sapling-pr-archive-bolinfest 2025-05-07 23:14:08 -07:00
Michael Bolin
ab33ddb9a6 feat: support the chat completions API in the Rust CLI 2025-05-07 23:13:52 -07:00
Michael Bolin
457feb4996 Merge 245e11f0f0 into sapling-pr-archive-bolinfest 2025-05-07 23:08:06 -07:00
Michael Bolin
245e11f0f0 feat: support the chat completions API in the Rust CLI 2025-05-07 23:07:57 -07:00
Michael Bolin
9fdf2fa066 fix: remove clap dependency from core crate (#860) 2025-05-07 19:33:09 -07:00
Michael Bolin
7b68d83e29 Merge b9d167899a into sapling-pr-archive-bolinfest 2025-05-07 17:41:07 -07:00