feat: show the version when starting Codex (#1182)
The TypeScript version of the CLI shows the version when it starts up, which is helpful when users share screenshots (and nice to know, as a user).
This commit is contained in:
@@ -120,7 +120,12 @@ impl EventProcessor {
|
|||||||
/// for the session. This mirrors the information shown in the TUI welcome
|
/// for the session. This mirrors the information shown in the TUI welcome
|
||||||
/// screen.
|
/// screen.
|
||||||
pub(crate) fn print_config_summary(&mut self, config: &Config, prompt: &str) {
|
pub(crate) fn print_config_summary(&mut self, config: &Config, prompt: &str) {
|
||||||
ts_println!(self, "OpenAI Codex (research preview)\n--------");
|
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
ts_println!(
|
||||||
|
self,
|
||||||
|
"OpenAI Codex v{} (research preview)\n--------",
|
||||||
|
VERSION
|
||||||
|
);
|
||||||
|
|
||||||
let entries = vec![
|
let entries = vec![
|
||||||
("workdir", config.cwd.display().to_string()),
|
("workdir", config.cwd.display().to_string()),
|
||||||
|
|||||||
@@ -130,10 +130,13 @@ impl HistoryCell {
|
|||||||
history_entry_count: _,
|
history_entry_count: _,
|
||||||
} = event;
|
} = event;
|
||||||
if is_first_event {
|
if is_first_event {
|
||||||
|
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
let mut lines: Vec<Line<'static>> = vec![
|
let mut lines: Vec<Line<'static>> = vec![
|
||||||
Line::from(vec![
|
Line::from(vec![
|
||||||
"OpenAI ".into(),
|
"OpenAI ".into(),
|
||||||
"Codex".bold(),
|
"Codex".bold(),
|
||||||
|
format!(" v{}", VERSION).into(),
|
||||||
" (research preview)".dim(),
|
" (research preview)".dim(),
|
||||||
]),
|
]),
|
||||||
Line::from(""),
|
Line::from(""),
|
||||||
|
|||||||
Reference in New Issue
Block a user