Skip to content

bundle pull UX: warn on filter globs that match nothing, surface leftover partials, clarify the summary counts #2190

Closed

Description

@yigitdot

Three small UX gaps from one testnet run (2026-09-28, bundle ea8ae18f…, 17 entries under openai-gpt-oss-20b/).

1. A filter glob that matches no entry is silent

--exclude 'metal/*' matched nothing. The manifest path is openai-gpt-oss-20b/metal/model.bin, and gitignore semantics anchor a pattern with an inner / at the bundle root. The pull went ahead at 22.90 GiB total instead of 13.82 GiB; only the progress bar listing metal/model.bin gave it away.

EntryFilter (crates/cli/src/commands/bundle_pull.rs:745) is a GlobSet with no per-pattern match tracking. The only notice today is when the filter empties the whole bundle (bundle_pull.rs:4830).

Suggestion: after filtering, warn once per pattern that matched zero entries, e.g. --exclude 'metal/*' matched no entries (a pattern with a / is anchored at the bundle root; did you mean '**/metal/*'?). Same for --include, and in --dry-run.

2. A leftover partial of an excluded entry is invisible

An earlier interrupted pull of metal/model.bin left .decdn-partial/baa10b83….partial (1.46 GB) and .partial.obao4 (53 MB). A later pull that excludes the entry keeps them (reasonable: it is a resume prefix) but says nothing, so 1.5 GB sits in the output dir unseen.

Suggestion: at run end, one line listing retained partials of entries this run did not select, with their size and how to remove them.

3. The summary counts read as contradictory and hide excluded entries

pulled into /Users/…/openai-chunked (4 fetched, 0 linked, 12 skipped, 0 deduped, 0 failed)
downloaded 14.8 GB → reconstructed 27.5 GB
range-dedup: spliced 12.7 GB from disk, 0 hint(s) ignored
  • deduped counts whole-file dedup only (PullReport::deduped, bundle_pull.rs:1106). Read cold, line 1 says nothing was deduped and line 3 says 12.7 GB was. Rename it (e.g. reused) or fold range dedup into the counts line.
  • 4 fetched + 12 skipped = 16 of 17 entries: the filter-excluded metal/model.bin appears in no count. An N excluded count would have made gap 1 visible in the summary as well.

🤖 Generated with Claude Code

Activity

  1. added
    kind:feature
    area:cli
    rust
    prio:low
    on Sep 28, 2026
  2. self-assigned this
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:featureprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions