Skip to content

fix(watcher): add ChatGPT-Desktop to APP_PACKAGE_SPECS#1450

Open
lennney wants to merge 1 commit into
BigPizzaV3:mainfrom
lennney:fix/watcher-chatgpt-desktop-package
Open

fix(watcher): add ChatGPT-Desktop to APP_PACKAGE_SPECS#1450
lennney wants to merge 1 commit into
BigPizzaV3:mainfrom
lennney:fix/watcher-chatgpt-desktop-package

Conversation

@lennney

@lennney lennney commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Problem

Two watcher tests fail on Windows since v1.2.33:

FAIL: codex_process_filter_keeps_chatgpt_desktop_package_processes
FAIL: find_codex_processes_combines_store_and_local_installs

Root cause: Commit ffac508 added tests expecting OpenAI.ChatGPT-Desktop to be recognized as a Windows Codex app package. The tests look up the process in APP_PACKAGE_SPECS, but the spec entry was never added — app_paths.rs only knew about OpenAI.Codex and OpenAI.CodexBeta.

This affects all PRs on upstream/main including upstream's own CI.

Fix

Add OpenAI.ChatGPT-Desktop to APP_PACKAGE_SPECS with the same app structure as its siblings.

"OpenAI.ChatGPT-Desktop" => (AppId::KnownPackage("OpenAI"), [
    "OpenAI.ChatGPT-Desktop*.exe",
    "OpenAI.ChatGPT-Desktop*/Codex/Codex.exe",
    "OpenAI.ChatGPT-Desktop*/lib/preload.js",
]),

Impact: +6 lines, no behavioral change to production code. Fixes 2 tests and unblocks Windows CI for the main branch and all open PRs.

@BigPizzaV3

Copy link
Copy Markdown
Owner

当前 PR 的 Windows artifacts 检查失败。另外,OpenAI.ChatGPT-Desktop_* watcher 识别逻辑已经随 #1455 合并进入最新 main。请先同步最新 main 并确认本 PR 是否还存在有效差异;如果已经被覆盖,建议直接关闭该 PR,避免重复合并。若仍有独立改动,请重新跑 CI 并确保全部检查通过。

The watcher tests added in ffac508 expect OpenAI.ChatGPT-Desktop
to be recognized as a valid Codex Windows package, but
APP_PACKAGE_SPECS only listed OpenAI.Codex and OpenAI.CodexBeta.

This caused two watcher tests to fail on Windows:
- codex_process_filter_keeps_chatgpt_desktop_package_processes
- find_codex_processes_combines_store_and_local_installs

Add OpenAI.ChatGPT-Desktop with the same app structure as the
existing entries.
@lennney lennney force-pushed the fix/watcher-chatgpt-desktop-package branch from ae998a8 to 38bcfe5 Compare July 13, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants