Worktrunk Bot
Worktrunk Bot
Thanks for the suggestion. I searched the codebase and didn't find a per-execution confirm/prompt on hooks — `Command` in `src/config/commands.rs` carries only `name` and `template`, and the foreground hook executor...
Your intuition matches what I see in the executor. **Serial steps** (`HookStep::Single`) — small lift. The foreground executor already supports inheriting the parent's TTY; it's just gated on `pipe_stdin =...
Yes — the alias path already pulls exactly the lever you want, and the dispatch is centralized so a hook variant is a small change. Today both pipelines flow through...
No constraint — concurrency is purely a user-chosen TOML shape. The deserializer only emits `HookStep::Concurrent` when the user wrote a multi-key dict; every other shape becomes serial ([`config/commands.rs:14-18`](https://github.com/max-sixty/worktrunk/blob/3ed9ec9251dcfe3bce19bf4f1c93e6ee5190dac5/src/config/commands.rs#L14-L18)): | Shape...
Partly — pre-X and post-X hooks take different execution paths, so `interactive = true` would mean different things for each. **Pre-X hooks** (`pre-merge`, `pre-switch`, `pre-start`, `pre-commit`, `pre-remove`): run in the...
The 5-row table I posted above was for this thread, not from the docs — I was answering @endigma's "is there some constraint forcing some hooks to be concurrent?" by...
Filed as #3102.
On "if hooks could be maps rather than strings, what else could we put in there?" — grounding it in the current model, the honest answer is the near-term payload...
Yes — happy to take this on. The executor half is genuinely the alias lever: `sourced_steps_to_foreground` hard-codes `pipe_stdin = true` for `PipelineKind::Hook` and `false` for `PipelineKind::Alias` ([`hooks.rs:591-596`](https://github.com/max-sixty/worktrunk/blob/4ccbecf884320e507c28b6f104040ede76a4858c/src/commands/hooks.rs#L591-L596)), and the TTY...
Done — opened #3129. No schema change: foreground (`pre-*`) hooks now inherit the parent's stdin exactly as aliases already do, so a hook can be interactive (`gum confirm 'trust this...