mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
## Why Clients need the executor's release version to make version-based compatibility decisions. ## What changed - Add `executorVersion` to `EnvironmentInfo` and return it from both `initialize` and `environment/info`. - Resolve the package release version at process startup so the advertised value remains stable for the server's lifetime. - Use `0.0.0` when the version is unknown or omitted by a legacy executor. ## Testing - Cover packaged and source-build initialization, startup caching, protocol serialization, and client-side metadata caching. GitOrigin-RevId: a0c7f0b701a8e7e50345cd5fb1b5c5d2d38ff3b1
13 lines
342 B
Rust
13 lines
342 B
Rust
//! Include the startup-cached package release version in executor metadata.
|
|
|
|
use codex_build_info::BuildInfo;
|
|
|
|
use crate::protocol::EnvironmentInfo;
|
|
|
|
pub(super) fn local_environment_info() -> EnvironmentInfo {
|
|
EnvironmentInfo {
|
|
executor_version: BuildInfo::get().version().to_string(),
|
|
..EnvironmentInfo::local()
|
|
}
|
|
}
|