mirror of
https://github.com/openai/codex.git
synced 2026-11-24 07:20:27 +00:00
Add desktop app diagnostics to codex doctor (#39060)
## What changed - Detect installed Codex desktop apps on macOS and Windows and report their version, running state, and redacted log location. - Inspect bounded log data for the active desktop session and report the latest local app-server handshake outcome without exposing other log fields. - Add a dedicated Desktop App section to human-readable doctor reports. ## Testing - Cover local versus remote handshakes, failed handshakes with sensitive fields, bounded log reads, and stopped desktop sessions. GitOrigin-RevId: ecfb4bd7af3589263624771ec9413b51953280eb
This commit is contained in:
1 parent
14973840e0
commit
80e925c28b
7 files changed
+711
-1
No files matched your search
@@ -72,6 +72,7 @@ use serde::Serialize;
|
||||
use supports_color::Stream;
|
||||
|
||||
mod background;
|
||||
mod desktop;
|
||||
mod disk;
|
||||
mod git;
|
||||
mod network;
|
||||
@@ -86,6 +87,10 @@ mod updates;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod windows_dev_drive;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "doctor/desktop_tests.rs"]
|
||||
mod desktop_tests;
|
||||
|
||||
use background::background_server_check;
|
||||
use git::git_check;
|
||||
use output::HumanOutputOptions;
|
||||
@@ -536,6 +541,12 @@ async fn build_report(
|
||||
}
|
||||
}
|
||||
|
||||
progress.begin("desktop");
|
||||
if let Some(desktop) = desktop::collect().await {
|
||||
progress.finish("desktop", overall_status(&desktop.checks));
|
||||
checks.extend(desktop.checks);
|
||||
}
|
||||
|
||||
progress.settle();
|
||||
|
||||
let overall_status = overall_status(&checks);
|
||||
|
||||
Reference in new issue
Block a user