From 9dbe9311d16f9a7200755ce15d0e70aefb9249fb Mon Sep 17 00:00:00 2001 From: Daniel Kim Date: Tue, 6 Oct 2026 12:05:38 -0700 Subject: [PATCH] Report the orx up backend version in orx feedback --- src/commands/feedback.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commands/feedback.rs b/src/commands/feedback.rs index f7a0e962..513d4a8e 100644 --- a/src/commands/feedback.rs +++ b/src/commands/feedback.rs @@ -24,6 +24,9 @@ struct Context { #[serde(skip_serializing_if = "Option::is_none")] chat_session_id: Option, cli_version: &'static str, + /// The `orx up` that spawned this agent, which may differ from `cli_version`. + #[serde(skip_serializing_if = "Option::is_none")] + backend_version: Option, os: &'static str, arch: &'static str, build_channel: &'static str, @@ -45,6 +48,9 @@ pub async fn run(args: crate::FeedbackArgs) -> Result<()> { harness: crate::local::chat::launching_chat_harness(), chat_session_id: crate::local::chat::launching_chat_session(), cli_version: env!("CARGO_PKG_VERSION"), + backend_version: std::env::var(crate::local::chat::UP_VERSION_ENV) + .ok() + .filter(|version| !version.is_empty()), os: std::env::consts::OS, arch: std::env::consts::ARCH, build_channel: crate::telemetry::build_channel(), @@ -70,6 +76,7 @@ mod tests { harness: Some("codex".into()), chat_session_id: None, cli_version: "0.2.8", + backend_version: Some("0.2.6".into()), os: "macos", arch: "aarch64", build_channel: "source", @@ -85,6 +92,7 @@ mod tests { "context": { "harness": "codex", "cliVersion": "0.2.8", + "backendVersion": "0.2.6", "os": "macos", "arch": "aarch64", "buildChannel": "source",