Worktrunk Bot

Results comments of Worktrunk Bot

Thanks for reporting this! I was able to reproduce the issue and identified the root cause: the switch picker used branch names as worktree identifiers, but detached HEAD worktrees have...

Reproduced and fixed in #1665. **Root cause:** The picker's alt-r remove handler called `handle_remove(branch_name, ...)` where `branch_name` was `"(detached)"` for detached worktrees — which doesn't exist as a branch. **Fix:**...

Thanks for extracting this from #1571 — the proposal is well-structured. I searched the codebase and confirmed none of the proposed changes are implemented yet. Current state: - **`HookType` enum**...

Thanks for reporting this! I was able to reproduce the issue and identified the root cause: `ProjectConfig::load()` resolves the config path via `current_worktree().root()`, which for bare repos at the root...

Good catch on the `-C` flag scenario — that should be covered by the fix in #1692 as well, since `-C ` sets the working directory to the bare repo...

The code path is in [`ProjectConfig::load()`](https://github.com/max-sixty/worktrunk/blob/73a22011/src/config/project.rs#L133-L162): 1. `current_worktree()` returns a `WorkingTree` at `base_path()` (the cwd — `myproject/`) 2. `root()` runs `git rev-parse --show-toplevel`, which **fails** for bare repos 3. The...

Done — #1697 skips the current-location config check for bare repos entirely and goes straight to the primary worktree. A `.config/wt.toml` in the bare repo root will no longer be...

Fix in #1710. The picker's background thread now runs pre-remove hooks (silently, with suppressed output) before `execute_removal`, and spawns post-remove hooks via `spawn_background_hooks` after. Pre-remove hook failure aborts the removal....

Added integration tests for post-commit hook execution in #1711. Three tests covering `wt step commit`: 1. **`test_user_post_commit_hook_executes`** — configures a post-commit hook that writes a marker file, runs `wt step...

Thanks for the suggestion! I searched the codebase and found that `wt switch` already has partial support here: - It checks **cached remote-tracking refs** (not just local branches), so if...