Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: fix grammar mistakes (#6326)

Ahmed Ibrahimdbad5eeec6c0
diff --git a/codex-rs/common/src/model_presets.rs b/codex-rs/common/src/model_presets.rs
index b011fe9b60..5f0cdf8fb8 100644
--- a/codex-rs/common/src/model_presets.rs
+++ b/codex-rs/common/src/model_presets.rs
@@ -56,7 +56,7 @@ const PRESETS: &[ModelPreset] = &[
id: "gpt-5-codex-mini",
model: "gpt-5-codex-mini",
display_name: "gpt-5-codex-mini",
- description: "Optimized for codex. Cheaper, faster, and less capable.",
+ description: "Optimized for codex. Cheaper, faster, but less capable.",
default_reasoning_effort: ReasoningEffort::Medium,
supported_reasoning_efforts: &[
ReasoningEffortPreset {
diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs
index 304adc7548..72b64faca1 100644
--- a/codex-rs/tui/src/chatwidget.rs
+++ b/codex-rs/tui/src/chatwidget.rs
@@ -1773,9 +1773,7 @@ impl ChatWidget {
self.bottom_pane.show_selection_view(SelectionViewParams {
title: Some("Approaching rate limits".to_string()),
- subtitle: Some(format!(
- "You've used over 90% of your limit. Switch to {display_name} for lower credit usage?"
- )),
+ subtitle: Some(format!("Switch to {display_name} for lower credit usage?")),
footer_hint: Some(standard_popup_hint_line()),
items,
..Default::default()
diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__rate_limit_switch_prompt_popup.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__rate_limit_switch_prompt_popup.snap
index c4495fe9df..f21400e1bd 100644
--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__rate_limit_switch_prompt_popup.snap
+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__rate_limit_switch_prompt_popup.snap
@@ -1,12 +1,11 @@
---
source: tui/src/chatwidget/tests.rs
-assertion_line: 480
expression: popup
---
Approaching rate limits
- You've used over 90% of your limit. Switch to gpt-5-codex-mini for lower cre
+ Switch to gpt-5-codex-mini for lower credit usage?
-› 1. Switch to gpt-5-codex-mini Optimized for codex. Cheaper, faster, and
+› 1. Switch to gpt-5-codex-mini Optimized for codex. Cheaper, faster, but
less capable.
2. Keep current model