Skip to content

fix: render download progress during min add - #1213

Draft
gominimal-aw-bot[bot] wants to merge 1 commit into
mainfrom
inbox-patch/min-add-progress-17b8e8ebf0c7d101
Draft

fix: render download progress during min add#1213
gominimal-aw-bot[bot] wants to merge 1 commit into
mainfrom
inbox-patch/min-add-progress-17b8e8ebf0c7d101

Conversation

@gominimal-aw-bot

@gominimal-aw-bot gominimal-aw-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Routing-Key: inbox-route/I_kwDOSUhdos8AAAABLow0qA

min add downloaded packages with no visible progress — the first-time fetch of a package showed only a static line while bytes downloaded and the archive extracted. The instrumentation already existed: rcache::materialize reports FetchPkg/ExtractPkg operations through an ot::OpTracker, and mip renders that tree to stderr from run_cli. min never created a tracker or started a renderer, so config.ot was None and those operations drew nowhere. This attaches the same process-global tracker mip uses to the shared build_config, spawning the stderr renderer once per process, so min add shows a live progress tree while packages download and materialize. The renderer stays hidden on non-TTY output. (informed by #591)

Verification

cargo fmt --all --check — passed
cargo clippy --workspace --locked -- -D warnings — passed, 0 warnings
cargo build --workspace --locked — passed
cargo test --workspace --locked — passed, 84 suites ok, 0 failed

Note

Render download progress to stderr during min add

Attaches an ot::OpTracker to the config in build_config by calling with_operation_tracker(operation_tracker()), where operation_tracker() lazily initializes a process-global tracker via OnceLock and starts ot::render_to_stderr on first use. This causes progress output to appear in stderr when running min add.

Macroscope summarized 40cbca9.

min never created an ot operation tracker or started its stderr
renderer, so the FetchPkg/ExtractPkg operations that rcache already
reports while download_if_available fetches and extracts cached
packages had nowhere to draw — min add appeared to hang on a static
line. mip wires this in run_cli; min's build_config did not.

Attach a process-global OpTracker to every Config the package commands
build and spawn its renderer once per process, matching mip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6ba70519-1bc3-4227-8750-7dc9f36b4f41

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

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.

0 participants