Skip to content

chore: correct stale docs and skill references to the trash drain and picker tabs - #4529

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-39381554959-docs
Oct 26, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-39381554959-docs

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

This PR fixes comments, user docs, and maintainer skills that no longer match the code. There are no behavior changes. #4516 replaced the trash sweep, and several references still describe the old one. A few other docs were wrong before that.

  • Troubleshooting, wt list timeout example: the warning prints TaskKind::display_name() labels (working-tree diff, working-tree conflict check), not the kebab-case names the example showed. The snapshot in format_drain_timeout_diag's tests uses the same labels.
  • Troubleshooting, config checklist: dropped "path must be relative, not absolute". No such validation exists, and worktree-path accepts absolute paths.
  • drain_trash doc (src/git/remove.rs): dropped "Every staged removal starts a drain". That describes the behavior fix(remove): drain the trash with one background process per repository #4516 replaced. Removals now skip spawning when a drain is already running.
  • State module doc: the default-branch override key is worktrunk.default-branch, not worktrunk.default_branch.*.
  • Summary tab number: PreviewMode::Summary = 6, so the [list] summary doc comment and a test comment now say tab 6 instead of 5.
  • release skill: the safety-scan note named "the trash sweep in src/commands/process.rs" as the densest destructive code outside src/git/. That sweep now only spawns a drain; the deletion walk is in src/remove_dir.rs, so the note points there. unlinkat, the walk's primitive, is added to the keyword regex, which would otherwise miss changes to it.
  • writing-user-outputs skill: sweep_stale_trash is now run_internal_sweep.

The plugin skills mirror was regenerated, and test_docs_are_in_sync and the switch_picker_dry_run tests pass. No regression test is needed because no behavior changed.

… picker tabs

- Troubleshooting: the list-timeout example now shows the task names the
  warning prints (`TaskKind::display_name`), and the config checklist no
  longer claims absolute paths are rejected.
- `drain_trash` doc: drop the sentence describing the pre-#4516 behavior
  where every staged removal started a drain.
- State module doc: the default-branch override key is
  `worktrunk.default-branch`.
- The summary preview is picker tab 6, not 5.
- release skill: point at `src/remove_dir.rs` as the densest destructive
  code outside `src/git/`, and add `unlinkat` to the keyword scan.
- writing-user-outputs skill: `sweep_stale_trash` is now
  `run_internal_sweep`.
@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Oct 20, 2026
@max-sixty
max-sixty merged commit 5acc8da into main Oct 26, 2026
37 of 47 checks passed
@max-sixty
max-sixty deleted the nightly/clean-39381554959-docs branch October 26, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants