You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(launcher): include Desktop exit status in early-exit error message - #1352
This change adds the Desktop exit status to the launcher error shown when Codex Desktop exits before the Host chain starts, which should make failures easier to diagnose. Behavior is otherwise unchanged and no merge-blocking risk is apparent.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Linked Issues check
关联 Issue #1223 是缺陷报告。Issue 只给出错误文案“Codex Desktop exited before starting the codexhost Host chain”和诊断文件路径,没有验收标准,也没有指定修复方式。PR 描述和 AI 摘要说明:在 Windows 下清理 Desktop 进程前调用 try_wait() 读取退出状态,并把它追加到该错误消息中;读取失败…
标题“fix(launcher): include Desktop exit status in early-exit error message”描述了主要变更:在 Desktop 提前退出的错误信息中加入退出状态。该标题与变更集相关,且与 raw_summary 及 PR 目标一致。标题简洁、具体,没有使用模糊词语。
Reviewing files that changed from the base of the PR and between 8e81377 and 9373911.
Files selected for processing: 1
crates/launcher/src/main.rs
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
Recent review details
Context from checks skipped due to timeout: 8
GitHub Check: CodeRabbit
GitHub Check: Check windows-latest
GitHub Check: Check ubuntu-22.04
GitHub Check: Static checks
GitHub Check: Vitest
GitHub Check: Check macos-26
GitHub Check: Web Host tests
GitHub Check: Check Linux ARM64
Additional context used
Code guidelines: 1
CLAUDE.md — auto-discovered
Path-based instructions: 1
Source excerpt: Rust owns native launch, process management, update installation, and platform integration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
launcher 在 "Codex Desktop exited before starting the codexhost Host chain" 场景下,等待 Host chain 期间检测到 Desktop 根进程退出时,当前错误信息不含退出状态,用户诊断文件(launcher-startup-v1)里也只有一个固定文案,无法区分崩溃类型/退出码。
本 PR 在清理 Desktop 进程前先
try_wait()捕获退出状态,并将其追加到错误消息中(例如(exit status: exit code: 1));捕获不到时保持原文案不变。纯诊断信息增强,不改变重试/清理逻辑。Related issues
fixes #1223
UI Demo
No visual changes: 仅 launcher 错误消息文本,无任何 UI 改动。
Test plan
cargo check -p codexhost-launcher通过cargo clippy -p codexhost-launcher --all-targets -- -D warnings通过