Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Clarify external editor env var message (#10030)

Josh McKinney3ae966edd8fd
diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs
index 4e41a2a0d6..87f232ed2b 100644
--- a/codex-rs/tui/src/app.rs
+++ b/codex-rs/tui/src/app.rs
@@ -2268,8 +2268,9 @@ impl App {
Err(external_editor::EditorError::MissingEditor) => {
self.chat_widget
.add_to_history(history_cell::new_error_event(
- "Cannot open external editor: set $VISUAL or $EDITOR".to_string(),
- ));
+ "Cannot open external editor: set $VISUAL or $EDITOR before starting Codex."
+ .to_string(),
+ ));
self.reset_external_editor_state(tui);
return;
}