You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error when using [pre-start] - Unknown key pre-start will be ignored #1719
wt config show
USER CONFIG @ ~/.config/worktrunk/config.toml
[post-start]
deps = "wt step copy-ignored"
↳ Optional system config not found @ '/Library/Application Support/worktrunk/config.toml'
PROJECT CONFIG @ ~/{PATH_TO_PROJECT}/.config/wt.toml
▲ Unknown key pre-start will be ignored
[pre-start]
install = "npm ci"
SHELL INTEGRATION
○ Shell integration active
○ bash: Already configured shell extension & completions @ ~/.bashrc:118
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init bash)"; fi
○ zsh: Already configured shell extension & completions @ ~/.zshrc:89
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi
○ fish: Skipped; ~/.config/fish/functions not found
○ nu: Skipped; ~/.config/nushell/vendor/autoload not found
CLAUDE CODE
↳ Plugin not installed. To install, run:
claude plugin marketplace add max-sixty/worktrunk
claude plugin install worktrunk@worktrunk
↳ Statusline not configured. See https://worktrunk.dev/claude-code/#statusline
OTHER
○ wt: 0.31.0
○ git: 2.53.0
○ Hyperlinks: active
Steps to reproduce:
add the following config to PROJECT CONFIG or USER CONFIG:
[pre-start]
install = "npm ci"
run wt switch --create feature/test-wt
Expected behaviour
pre-start runs npm ci
Actual behaviour:
pre-start is ignored
wt switch --create feature/test-wt
▲ Project config has unknown field pre-start (will be ignored)
✓ Created branch feature/test-wt from develop and worktree @ ~/Repositories/bitbucket/repeat-system-tests-wt.feature-test-wt
◎ Running post-start: user:deps
Thanks for reporting this! I looked into this and pre-start is a new hook name that was introduced in #1679 (the hooks rationalization), which landed on main after the v0.31.0 release. The docs site at worktrunk.dev is built from main, so it shows pre-start as available even though the latest published release (v0.31.0) doesn't recognize it yet.
On v0.31.0, the equivalent hook is called post-create:
[post-create]
install = "npm ci"
This will run as a blocking step before post-start, which is the same behavior that pre-start provides in the next release. When the next version is released, both names will be accepted (with post-create showing a deprecation notice pointing to pre-start).
A maintainer will confirm and can decide whether to expedite a release.
Activity
max-sixty commentedon Mar 25, 2026
yes, sorry, the docs are from
mainand the most recently released version doesn't have that yet.I'll release now; I was hoping to do another change on hooks, but no reason to wait
timjstacey commentedon Mar 25, 2026
I was about to reply to say
[post-create]is still working but you beat me to it.All good, merge when you're ready.
worktrunk-bot commentedon Mar 25, 2026
Thanks for reporting this! I looked into this and
pre-startis a new hook name that was introduced in #1679 (the hooks rationalization), which landed onmainafter the v0.31.0 release. The docs site at worktrunk.dev is built frommain, so it showspre-startas available even though the latest published release (v0.31.0) doesn't recognize it yet.On v0.31.0, the equivalent hook is called
post-create:This will run as a blocking step before
post-start, which is the same behavior thatpre-startprovides in the next release. When the next version is released, both names will be accepted (withpost-createshowing a deprecation notice pointing topre-start).A maintainer will confirm and can decide whether to expedite a release.
max-sixty commentedon Mar 25, 2026
release done! sorry for the out-of-sync-ness @timjstacey !