Skip to content

feat(prune): bump default --min-age from 1h to 1d - #2886

Merged
max-sixty merged 1 commit into
mainfrom
prune-default
May 23, 2026
Merged

feat(prune): bump default --min-age from 1h to 1d#2886
max-sixty merged 1 commit into
mainfrom
prune-default

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Raise the default --min-age guard in wt step prune from 1h to 1d.
  • A worktree just created from the default branch looks "merged" because its branch still points at the same commit; a one-day floor keeps an unattended prune from sweeping it up before its owner has a chance to start work.
  • Explicit --min-age=0s or any other value is unchanged.

Test plan

  • cargo run -- hook pre-merge --yes (3821 tests + lints green)
  • cargo run -- step prune --help shows [default: 1d]
  • Docs synced: docs/content/step.md, skills/worktrunk/reference/step.md

Default to a more conservative threshold so worktrees recently
created from the default branch — looking "merged" because their
branch still points at the same commit — aren't pruned by an
unattended `wt step prune` for a full day.
@max-sixty
max-sixty merged commit 818aef5 into main May 23, 2026
36 checks passed
@max-sixty
max-sixty deleted the prune-default branch May 23, 2026 19:45
@max-sixty max-sixty mentioned this pull request May 26, 2026
max-sixty added a commit that referenced this pull request May 26, 2026
v0.54.0.

`cargo semver-checks` reports 3 breaking library API changes
(`shell_exec::set_output_log_available` removed,
`SUBPROCESS_TERMINAL_TARGET` removed, `Deprecations::{pre_start,
post_start}` removed) — none of them intentional API, but they force
minor pre-1.0.

Headline user-visible changes:
- New rate-limit pace segment in the Claude Code statusline (#2899,
#2911).
- `wt step prune` streams removals and skips unapproved hooks instead of
prompting mid-scan; default `--min-age` raised 1h → 1d (#2908, #2910,
#2886).
- `-vv` no longer floods stderr — debug routes to `trace.log`, Info
stays on stderr; raw subprocess sink renamed `output.log` →
`subprocess.log`; `RUST_LOG` honored at every verbosity level (#2892,
#2901, #2913).
- Data-safety fixes across merge / remove / prune lifecycle (#2870).
- Legacy shell-wrapper deprecation warning (#2880).

Full CHANGELOG entry in this PR.
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