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
feat(updater): show download progress in the update command - #1212
The update command now shows download progress while the background Updater still handles install and restart. No actionable merge-blocking risk was identified in the supplied changes.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
标题“feat(updater): show download progress in the update command”概括了本 PR 的主要变更:codexhost update 命令现在在终端显示下载进度。变更摘要中的 CLI 进度显示、npm 缓存包计数、字节和百分比进度、共享状态契约扩展均与此标题相符。标题简短、具体,没有使用模糊词语。
Description check
描述说明了 codexhost update 在终端跟踪下载的行为:npm 显示已缓存包数,DMG、Windows 安装包和 Linux 压缩包显示字节进度及百分比,交互终端原位刷新,重定向时输出普通文本。描述还说明 CLI 使用现有更新状态文件,并给出了测试计划。该描述与变更集直接相关。
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Recent review details
Context from checks skipped due to timeout: 8
GitHub Check: CodeRabbit
GitHub Check: Vitest
GitHub Check: Web Host tests
GitHub Check: Check macos-26
GitHub Check: Check Linux ARM64
GitHub Check: Check ubuntu-22.04
GitHub Check: Check windows-latest
GitHub Check: Static checks
Additional context used
Code guidelines: 1
AGENTS.md — auto-discovered
Path-based instructions: 1
Source excerpt: Use package public exports for cross-package dependencies.
Learnt from: CR
Repo: BytePioneer-AI/codex-host PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-11-17T12:08:43.655Z
Learning: Source excerpt:
# Repository Guidelines
## Testing & Completion
- Writing tests. Every test is code to maintain and CI time to pay; add one only when it earns that.
- Small, low-risk changes need no new tests. Add focused tests for high-risk or cross-package changes, or when asked.
- A new test must catch a regression the existing tests would miss. Extend the nearest existing case or `test.each` instead of adding near-duplicates.
- Assert observable behavior (inputs, outputs, protocol messages, persisted state), not internal call order, private state, or mock call counts.
- Mock only external boundaries (network, clock, real CLIs, the OS), never the code under test. Avoid large snapshots and long literal expectations that can only be updated mechanically.
- A bug-fix test must fail before the fix. Never weaken assertions or delete tests just to make a change pass; report the conflict instead.
- When a change makes existing tests redundant or ties them to removed internals...
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
codexhost update会在终端跟踪下载,安装和重启仍由后台 Updater 完成。npm 显示实际已缓存的包数,DMG、Windows 安装包和 Linux 压缩包显示字节进度,有总大小时显示百分比。交互终端原位刷新,重定向时输出普通文本。CLI 使用现有更新状态文件获取进度,覆盖正在运行的 Host 和独立更新。准备阶段先进入下载状态,下载和校验完成后才发布可交接的状态。
Related issues
无 / N/A
UI Demo
终端输出示例,来自隔离 npm registry 实测。
Test plan
1/2,完成后显示后台交接消息。原生安装与服务重启用测试 Helper 模拟。tsc -b packages/harness-discovery packages/host-runtime packages/console-server。tests/vitest.config.js跑更新相关 6 个测试文件,64 项通过,1 项 Windows 专用用例跳过。终端轮询调整后重跑 CLI 测试,9 项通过。git diff --check通过。Windows 和 Linux 实机升级待验证。