Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(config): reject post-create hook instead of silently migrating (#2361)

Worktrunk Bot04db9ab8012c
diff --git a/src/commands/config/show.rs b/src/commands/config/show.rs
index ee0458d3d..888a82591 100644
--- a/src/commands/config/show.rs
+++ b/src/commands/config/show.rs
@@ -505,7 +505,7 @@ fn render_user_config(out: &mut String, has_system_config: bool) -> anyhow::Resu
// Check for deprecations with emit_inline_warnings=false (silent mode)
// User config is global, not tied to any repository
- let has_deprecations = if let Ok(result) = worktrunk::config::check_and_migrate(
+ let has_deprecations = match worktrunk::config::check_and_migrate(
&config_path,
&contents,
true,
@@ -513,16 +513,20 @@ fn render_user_config(out: &mut String, has_system_config: bool) -> anyhow::Resu
None,
false, // silent mode - we'll format the output ourselves
) {
- if let Some(info) = result.info {
- out.push_str(&worktrunk::config::format_deprecation_details(
- &info, &contents,
- ));
- true
- } else {
+ Ok(result) => {
+ if let Some(info) = result.info {
+ out.push_str(&worktrunk::config::format_deprecation_details(
+ &info, &contents,
+ ));
+ true
+ } else {
+ false
+ }
+ }
+ Err(err) => {
+ writeln!(out, "{}", error_message(err.to_string()))?;
false
}
- } else {
- false
};
// Validate config (syntax + schema) and warn if invalid
@@ -655,7 +659,7 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {
// Check for deprecations with emit_inline_warnings=false (silent mode)
// Only write migration file in main worktree, not linked worktrees
let is_main_worktree = !repo.current_worktree().is_linked().unwrap_or(true);
- let has_deprecations = if let Ok(result) = worktrunk::config::check_and_migrate(
+ let has_deprecations = match worktrunk::config::check_and_migrate(
&config_path,
&contents,
is_main_worktree,
@@ -663,16 +667,20 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {
Some(&repo),
false, // silent mode - we'll format the output ourselves
) {
- if let Some(info) = result.info {
- out.push_str(&worktrunk::config::format_deprecation_details(
- &info, &contents,
- ));
- true
- } else {
+ Ok(result) => {
+ if let Some(info) = result.info {
+ out.push_str(&worktrunk::config::format_deprecation_details(
+ &info, &contents,
+ ));
+ true
+ } else {
+ false
+ }
+ }
+ Err(err) => {
+ writeln!(out, "{}", error_message(err.to_string()))?;
false
}
- } else {
- false
};
// Validate config (syntax + schema) and warn if invalid
diff --git a/src/config/deprecation.rs b/src/config/deprecation.rs
index a390cad4f..d8814be31 100644
--- a/src/config/deprecation.rs
+++ b/src/config/deprecation.rs
@@ -608,35 +608,10 @@ fn is_non_empty_item(item: &toml_edit::Item) -> bool {
}
}
-/// Migrate `post-create` hooks to `pre-start`.
-///
-/// Renames `post-create` to `pre-start` in hooks sections. Skips if `pre-start` already exists.
-fn migrate_post_create_doc(doc: &mut toml_edit::DocumentMut) -> bool {
- let mut modified = false;
-
- // Top-level (user config or project config)
- if doc.get("pre-start").is_none()
- && let Some(value) = doc.remove("post-create")
- {
- doc.insert("pre-start", value);
- modified = true;
- }
-
- // Per-project overrides (user config)
- if let Some(projects) = doc.get_mut("projects").and_then(|p| p.as_table_mut()) {
- for (_key, project_value) in projects.iter_mut() {
- if let Some(project_table) = project_value.as_table_mut()
- && project_table.get("pre-start").is_none()
- && let Some(value) = project_table.remove("post-create")
- {
- project_table.insert("pre-start", value);
- modified = true;
- }
- }
- }
-
- modified
-}
+/// Error message emitted when a config contains the removed `post-create`
+/// hook key. Matches the wording used by `check_and_migrate` when the load
+/// path converts detection into a fatal error.
+const POST_CREATE_REMOVED_MSG: &str = "`post-create` hook was renamed to `pre-start` in v0.32.0 and the silent rewrite has been removed. Rename `post-create` to `pre-start` in your config.";
/// Migrate `[select]` sections to `[switch.picker]`.
///
@@ -962,7 +937,6 @@ fn migrate_content_doc(doc: &mut toml_edit::DocumentMut) -> bool {
let mut modified = false;
modified |= migrate_commit_generation_doc(doc);
modified |= migrate_select_doc(doc);
- modified |= migrate_post_create_doc(doc);
modified |= migrate_pre_hook_table_form_doc(doc);
modified |= migrate_ci_doc(doc);
modified |= migrate_negated_bool_doc(doc, "merge", "no-ff", "ff");
@@ -1220,6 +1194,10 @@ pub fn check_and_migrate(
Err(_) => (Deprecations::default(), content.to_string()),
};
+ if deprecations.post_create {
+ return Err(anyhow::anyhow!("{label}: {POST_CREATE_REMOVED_MSG}"));
+ }
+
if deprecations.is_empty() {
return Ok(CheckAndMigrateResult {
info: None,
@@ -1427,17 +1405,6 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
);
}
- if info.deprecations.post_create {
- let _ = writeln!(
- out,
- "{}",
- warning_message(cformat!(
- "{}: <bold>post-create</> hook is deprecated in favor of <bold>pre-start</>",
- info.label
- ))
- );
- }
-
if info.deprecations.ci_section {
let _ = writeln!(
out,
@@ -1746,17 +1713,6 @@ mod tests {
}
}
- fn migrate_post_create_to_pre_start(content: &str) -> String {
- let Ok(mut doc) = content.parse::<toml_edit::DocumentMut>() else {
- return content.to_string();
- };
- if migrate_post_create_doc(&mut doc) {
- doc.to_string()
- } else {
- content.to_string()
- }
- }
-
#[test]
fn test_find_deprecated_vars_empty() {
let content = r#"
@@ -2047,7 +2003,7 @@ approved-commands = [
#[test]
fn test_check_and_migrate_write_failure() {
// Test the write error path by using a non-existent directory
- let content = r#"post-create = "{{ repo_root }}/script.sh""#;
+ let content = "[merge]\nno-ff = true\n";
let non_existent_path = std::path::Path::new("/nonexistent/dir/config.toml");
// Should return Ok(Some(_)) even if write fails - the function logs error but doesn't fail
@@ -2060,7 +2016,7 @@ approved-commands = [
#[test]
fn test_check_and_migrate_deduplicates_warnings() {
// Test that calling twice with same path skips the second warning
- let content = r#"post-create = "{{ repo_root }}/script.sh""#;
+ let content = "[merge]\nno-ff = true\n";
// Use a unique path that won't collide with other tests
let unique_path = std::path::Path::new("/nonexistent/dedup_test_12345/config.toml");
@@ -3096,97 +3052,6 @@ pre-start = "new"
assert!(!find_post_create_deprecation(content));
}
- #[test]
- fn test_migrate_post_create_top_level() {
- let content = r#"
-post-create = "npm install"
-
-[post-start]
-server = "npm run dev"
-"#;
- let result = migrate_post_create_to_pre_start(content);
- assert!(
- result.contains("pre-start"),
- "Should have pre-start: {result}"
- );
- assert!(
- !result.contains("post-create"),
- "Should not have post-create: {result}"
- );
- assert!(
- result.contains("[post-start]"),
- "Should preserve other sections: {result}"
- );
- }
-
- #[test]
- fn test_migrate_post_create_project_level() {
- let content = r#"
-[projects."my-project"]
-post-create = "npm install"
-"#;
- let result = migrate_post_create_to_pre_start(content);
- assert!(
- result.contains("pre-start"),
- "Should have pre-start: {result}"
- );
- assert!(
- !result.contains("post-create"),
- "Should not have post-create: {result}"
- );
- }
-
- #[test]
- fn test_migrate_post_create_named_commands() {
- let content = r#"
-[post-create]
-lint = "npm run lint"
-build = "npm run build"
-"#;
- let result = migrate_post_create_to_pre_start(content);
- assert!(
- result.contains("[pre-start]"),
- "Should rename section header: {result}"
- );
- assert!(
- !result.contains("[post-create]"),
- "Should not have old section header: {result}"
- );
- assert!(
- result.contains("lint = \"npm run lint\""),
- "Should preserve named commands: {result}"
- );
- }
-
- #[test]
- fn test_migrate_post_create_skips_when_pre_start_exists() {
- let content = r#"
-post-create = "old"
-pre-start = "new"
-"#;
- let result = migrate_post_create_to_pre_start(content);
- assert_eq!(
- result, content,
- "Should not migrate when pre-start already exists"
- );
- }
-
- #[test]
- fn test_migrate_post_create_invalid_toml() {
- let content = "this is { not valid toml";
- let result = migrate_post_create_to_pre_start(content);
- assert_eq!(result, content, "Invalid TOML should be returned unchanged");
- }
-
- #[test]
- fn test_migrate_post_create_no_post_create() {
- let content = r#"
-pre-start = "npm install"
-"#;
- let result = migrate_post_create_to_pre_start(content);
- assert_eq!(result, content, "No post-create means no migration");
- }
-
fn migrate_switch_picker_timeout(content: &str) -> String {
let Ok(mut doc) = content.parse::<toml_edit::DocumentMut>() else {
return content.to_string();
@@ -3330,67 +3195,6 @@ post-create = "npm install"
assert!(!deprecations.is_empty());
}
- #[test]
- fn snapshot_migrate_post_create_to_pre_start() {
- let content = r#"post-create = "npm install"
-
-[post-start]
-server = "npm run dev"
-"#;
- let result = migrate_post_create_to_pre_start(content);
- insta::assert_snapshot!(migration_diff(content, &result));
- }
-
- #[test]
- fn test_format_deprecation_details_post_create() {
- let content = r#"post-create = "npm install"
-"#;
- let info = DeprecationInfo {
- config_path: std::path::PathBuf::from("/tmp/test-config.toml"),
- deprecations: Deprecations {
- vars: vec![],
- commit_gen: CommitGenerationDeprecations::default(),
- approved_commands: false,
- select: false,
- post_create: true,
- ci_section: false,
- no_ff: false,
- no_cd: false,
- pre_hook_table_form: vec![],
- switch_picker_timeout_ms: false,
- },
- label: "Project config".to_string(),
- main_worktree_path: None,
- };
- let output = format_deprecation_details(&info, content);
- assert!(
- output.contains("post-create"),
- "Should mention post-create: {output}"
- );
- assert!(
- output.contains("pre-start"),
- "Should mention pre-start: {output}"
- );
- }
-
- #[test]
- fn test_compute_migrated_content_renames_post_create() {
- let content = r#"post-create = "npm install"
-
-[post-start]
-server = "npm run dev"
-"#;
- let migrated = compute_migrated_content(content);
- assert!(
- migrated.contains("pre-start"),
- "Migrated content should have pre-start: {migrated}"
- );
- assert!(
- !migrated.contains("post-create"),
- "Migrated content should not have post-create: {migrated}"
- );
- }
-
// ==================== negated bool format + migration tests ====================
#[test]
@@ -3738,27 +3542,6 @@ build = "npm run build"
assert_eq!(arr.len(), 2);
}
- #[test]
- fn test_migrate_pre_hook_table_form_after_post_create_rename() {
- // post-create → pre-start rename should happen first, then table form migration
- let content = r#"
-[post-create]
-install = "npm ci"
-build = "npm run build"
-"#;
- let result = migrate_content(content);
- // post-create should be renamed to pre-start AND converted to pipeline
- assert!(
- !result.contains("post-create"),
- "post-create should be renamed: {result}"
- );
- let doc: toml_edit::DocumentMut = result.parse().unwrap();
- let arr = doc["pre-start"]
- .as_array_of_tables()
- .expect("should be pipeline array of tables");
- assert_eq!(arr.len(), 2);
- }
-
#[test]
fn test_migrate_content_includes_pre_hook_table_form() {
let content = r#"
diff --git a/src/config/project.rs b/src/config/project.rs
index 4270215fd..ae5917d9b 100644
--- a/src/config/project.rs
+++ b/src/config/project.rs
@@ -213,14 +213,15 @@ impl ProjectConfig {
// emit_inline_warnings=true: print per-kind warnings inline during config load
let is_main_worktree = !repo.current_worktree().is_linked().unwrap_or(true);
let repo_for_hints = if write_hints { Some(repo) } else { None };
- let _ = super::deprecation::check_and_migrate(
+ super::deprecation::check_and_migrate(
&config_path,
&contents,
is_main_worktree,
"Project config",
repo_for_hints,
true, // emit_inline_warnings
- );
+ )
+ .map_err(|e| ConfigError(e.to_string()))?;
// Warn about unknown fields (only in main worktree where it's actionable).
if is_main_worktree {
diff --git a/src/config/snapshots/worktrunk__config__deprecation__tests__snapshot_migrate_post_create_to_pre_start.snap b/src/config/snapshots/worktrunk__config__deprecation__tests__snapshot_migrate_post_create_to_pre_start.snap
deleted file mode 100644
index 60e2f8a4a..000000000
--- a/src/config/snapshots/worktrunk__config__deprecation__tests__snapshot_migrate_post_create_to_pre_start.snap
+++ /dev/null
@@ -1,9 +0,0 @@
----
-source: src/config/deprecation.rs
-expression: "migration_diff(content, &result)"
----
--post-create = "npm install"
-+pre-start = "npm install"
-
- [post-start]
- server = "npm run dev"
diff --git a/src/config/user/mod.rs b/src/config/user/mod.rs
index 0903591ba..7c07a65f9 100644
--- a/src/config/user/mod.rs
+++ b/src/config/user/mod.rs
@@ -402,26 +402,30 @@ impl UserConfig {
&& config_path.exists()
{
if let Ok(content) = std::fs::read_to_string(config_path) {
- let migrated = super::deprecation::check_and_migrate(
+ match super::deprecation::check_and_migrate(
config_path,
&content,
true,
"User config",
None,
true,
- )
- .map(|result| result.migrated_content)
- .unwrap_or_else(|_| super::deprecation::migrate_content(&content));
-
- super::deprecation::warn_unknown_fields::<UserConfig>(
- &content,
- config_path,
- "User config",
- );
-
- match load_config_file(config_path, &migrated, "User config") {
- Ok(table) => deep_merge_table(&mut merged_table, table),
- Err(e) => warnings.push(e),
+ ) {
+ Ok(result) => {
+ super::deprecation::warn_unknown_fields::<UserConfig>(
+ &content,
+ config_path,
+ "User config",
+ );
+
+ match load_config_file(config_path, &result.migrated_content, "User config")
+ {
+ Ok(table) => deep_merge_table(&mut merged_table, table),
+ Err(e) => warnings.push(e),
+ }
+ }
+ Err(err) => {
+ warnings.push(LoadError::Validation(err.to_string()));
+ }
}
}
} else if let Some(config_path) = config_path.as_ref()
diff --git a/tests/integration_tests/approval_ui.rs b/tests/integration_tests/approval_ui.rs
index 2be63cb75..2c494aef7 100644
--- a/tests/integration_tests/approval_ui.rs
+++ b/tests/integration_tests/approval_ui.rs
@@ -40,7 +40,7 @@ fn snapshot_approval(test_name: &str, repo: &TestRepo, args: &[&str], approve: b
#[rstest]
fn test_approval_single_command(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'Worktree path: {{ worktree_path }}'""#);
+ repo.write_project_config(r#"pre-start = "echo 'Worktree path: {{ worktree_path }}'""#);
repo.commit("Add config");
@@ -55,7 +55,7 @@ fn test_approval_single_command(repo: TestRepo) {
#[rstest]
fn test_approval_multiple_commands(repo: TestRepo) {
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
branch = "echo 'Branch: {{ branch }}'"
worktree = "echo 'Worktree: {{ worktree_path }}'"
repo = "echo 'Repo: {{ repo }}'"
@@ -79,7 +79,7 @@ fn test_approval_mixed_approved_unapproved(repo: TestRepo) {
repo.run_git(&["remote", "remove", "origin"]);
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
first = "echo 'First command'"
second = "echo 'Second command'"
third = "echo 'Third command'"
@@ -106,7 +106,7 @@ approved-commands = ["echo 'Second command'"]
#[rstest]
fn test_yes_flag_does_not_save_approvals(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'test command' > output.txt""#);
+ repo.write_project_config(r#"pre-start = "echo 'test command' > output.txt""#);
repo.commit("Add config");
@@ -136,7 +136,7 @@ fn test_already_approved_commands_skip_prompt(repo: TestRepo) {
// Remove origin so worktrunk uses directory name as project identifier
repo.run_git(&["remote", "remove", "origin"]);
- repo.write_project_config(r#"post-create = "echo 'approved' > output.txt""#);
+ repo.write_project_config(r#"pre-start = "echo 'approved' > output.txt""#);
repo.commit("Add config");
@@ -161,7 +161,7 @@ fn test_decline_approval_skips_only_unapproved(repo: TestRepo) {
repo.run_git(&["remote", "remove", "origin"]);
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
first = "echo 'First command'"
second = "echo 'Second command'"
third = "echo 'Third command'"
@@ -193,7 +193,7 @@ approved-commands = ["echo 'Second command'"]
#[rstest]
fn test_approval_named_commands(repo: TestRepo) {
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
install = "echo 'Installing dependencies...'"
build = "echo 'Building project...'"
test = "echo 'Running tests...'"
@@ -282,7 +282,7 @@ fn test_run_hook_post_merge_requires_approval(repo: TestRepo) {
/// The command should fail with a clear error telling users to use --yes.
#[rstest]
fn test_approval_fails_in_non_tty(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'test command'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test command'""#);
repo.commit("Add config");
// Run WITHOUT piping stdin - this simulates non-TTY environment
@@ -297,7 +297,7 @@ fn test_approval_fails_in_non_tty(repo: TestRepo) {
/// Even in non-TTY environments, --yes should allow commands to execute.
#[rstest]
fn test_yes_bypasses_tty_check(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'test command'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test command'""#);
repo.commit("Add config");
// Run with --yes to bypass approval entirely
@@ -590,7 +590,7 @@ fn test_step_hook_run_all_commands(repo: TestRepo) {
/// approval prompt, so a clean exit confirms `-y` was honored.
#[rstest]
fn test_global_yes_before_subcommand(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'test command'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test command'""#);
repo.commit("Add config");
// Place `-y` before the subcommand name.
diff --git a/tests/integration_tests/approvals.rs b/tests/integration_tests/approvals.rs
index 2fd791416..72576e50d 100644
--- a/tests/integration_tests/approvals.rs
+++ b/tests/integration_tests/approvals.rs
@@ -42,7 +42,7 @@ fn test_add_approvals_no_config(repo: TestRepo) {
#[rstest]
fn test_add_approvals_all_with_none_approved(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'test'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test'""#);
repo.commit("Add config");
snapshot_add_approvals("add_approvals_all_none_approved", &repo, &["--all"]);
@@ -105,7 +105,7 @@ fn test_clear_approvals_with_approvals(repo: TestRepo) {
// matches what `Repository::project_identifier` computes at runtime.
repo.run_git(&["remote", "remove", "origin"]);
repo.commit("Initial commit");
- repo.write_project_config(r#"post-create = "echo 'test'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test'""#);
repo.commit("Add config");
// Manually approve the command using the same project id wt will compute.
@@ -133,7 +133,7 @@ fn test_clear_approvals_global_with_approvals(repo: TestRepo) {
// matches what `Repository::project_identifier` computes at runtime.
repo.run_git(&["remote", "remove", "origin"]);
repo.commit("Initial commit");
- repo.write_project_config(r#"post-create = "echo 'test'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test'""#);
repo.commit("Add config");
// Manually approve the command using the same project id wt will compute.
@@ -160,7 +160,7 @@ fn test_clear_approvals_after_clear(repo: TestRepo) {
// matches what `Repository::project_identifier` computes at runtime.
repo.run_git(&["remote", "remove", "origin"]);
repo.commit("Initial commit");
- repo.write_project_config(r#"post-create = "echo 'test'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test'""#);
repo.commit("Add config");
// Manually approve the command using the same project id wt will compute.
@@ -228,7 +228,7 @@ fn test_clear_approvals_multiple_approvals(repo: TestRepo) {
repo.run_git(&["remote", "remove", "origin"]);
repo.write_project_config(
r#"
-post-create = "echo 'first'"
+pre-start = "echo 'first'"
post-start = "echo 'second'"
[pre-commit]
lint = "echo 'third'"
@@ -275,7 +275,7 @@ fn test_add_approvals_all_already_approved(repo: TestRepo) {
// matches what `Repository::project_identifier` computes at runtime.
repo.run_git(&["remote", "remove", "origin"]);
repo.commit("Initial commit");
- repo.write_project_config(r#"post-create = "echo 'test'""#);
+ repo.write_project_config(r#"pre-start = "echo 'test'""#);
repo.commit("Add config");
// Manually approve the command using the same project id wt will compute.
@@ -326,7 +326,7 @@ fn test_add_approvals_bare_repo_config_in_primary_worktree() {
std::fs::create_dir_all(&config_dir).unwrap();
std::fs::write(
config_dir.join("wt.toml"),
- r#"post-create = "echo 'hello'"
+ r#"pre-start = "echo 'hello'"
"#,
)
.unwrap();
diff --git a/tests/integration_tests/config_init.rs b/tests/integration_tests/config_init.rs
index 8248fe7e5..412f42628 100644
--- a/tests/integration_tests/config_init.rs
+++ b/tests/integration_tests/config_init.rs
@@ -99,7 +99,7 @@ fn test_config_create_project_already_exists(repo: TestRepo) {
fs::create_dir_all(&config_dir).unwrap();
fs::write(
config_dir.join("wt.toml"),
- r#"[[project.post-create]]
+ r#"[[project.pre-start]]
run = "echo hello"
"#,
)
diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rs
index 9df4ac8b8..afb07c02f 100644
--- a/tests/integration_tests/config_show.rs
+++ b/tests/integration_tests/config_show.rs
@@ -34,7 +34,7 @@ approved-commands = ["npm install"]
fs::create_dir_all(&config_dir).unwrap();
fs::write(
config_dir.join("wt.toml"),
- r#"post-create = "npm install"
+ r#"pre-start = "npm install"
[post-start]
server = "npm run dev"
@@ -1565,7 +1565,7 @@ fn test_deprecated_template_variables_show_warning(repo: TestRepo, temp_home: Te
// Use all deprecated variables: repo_root, worktree, main_worktree
// Note: hooks are at top-level in user config, not in a [hooks] section
r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"
-post-create = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
+pre-start = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
"#,
)
.unwrap();
@@ -1611,7 +1611,7 @@ fn test_deprecated_template_variables_verbose_shows_content(repo: TestRepo, temp
fs::write(
config_path,
r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"
-post-create = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
+pre-start = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
"#,
)
.unwrap();
@@ -1683,7 +1683,7 @@ fn test_fixing_deprecated_config_then_reintroducing_still_warns(
fs::write(
&project_config_path,
- r#"post-create = "ln -sf {{ main_worktree }}/node_modules"
+ r#"pre-start = "ln -sf {{ main_worktree }}/node_modules"
"#,
)
.unwrap();
@@ -1715,7 +1715,7 @@ fn test_fixing_deprecated_config_then_reintroducing_still_warns(
fs::write(
&project_config_path,
- r#"post-create = "cd {{ worktree }} && npm install"
+ r#"pre-start = "cd {{ worktree }} && npm install"
"#,
)
.unwrap();
@@ -2462,7 +2462,7 @@ fn test_config_show_displays_deprecation_details(mut repo: TestRepo, temp_home:
fs::write(
&config_path,
r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"
-post-create = "ln -sf {{ repo_root }}/node_modules"
+pre-start = "ln -sf {{ repo_root }}/node_modules"
"#,
)
.unwrap();
@@ -2503,7 +2503,7 @@ fn test_config_show_from_linked_worktree_shows_main_worktree_hint(
fs::create_dir_all(&project_config_dir).unwrap();
fs::write(
project_config_dir.join("wt.toml"),
- r#"post-create = "ln -sf {{ main_worktree }}/node_modules"
+ r#"pre-start = "ln -sf {{ main_worktree }}/node_modules"
"#,
)
.unwrap();
@@ -2648,7 +2648,7 @@ approved-commands = ["npm install", "npm test"]
#[rstest]
fn test_config_update_applies_project_config_migration(repo: TestRepo) {
repo.write_project_config(
- r#"post-create = "ln -sf {{ main_worktree }}/node_modules"
+ r#"pre-start = "ln -sf {{ main_worktree }}/node_modules"
"#,
);
repo.commit("Add deprecated project config");
@@ -2668,7 +2668,7 @@ fn test_config_update_applies_project_config_migration(repo: TestRepo) {
let updated = fs::read_to_string(&project_config_path).unwrap();
assert!(updated.contains("pre-start"));
assert!(updated.contains("{{ repo }}"));
- assert!(!updated.contains("post-create"));
+ assert!(!updated.contains("main_worktree"));
}
/// `wt config update` with a clean project config (no deprecations) treats
@@ -2701,7 +2701,7 @@ fn test_config_update_clean_project_config_is_noop(repo: TestRepo) {
#[rstest]
fn test_config_update_project_config_from_linked_worktree_shows_hint(repo: TestRepo) {
repo.write_project_config(
- r#"post-create = "ln -sf {{ main_worktree }}/node_modules"
+ r#"pre-start = "ln -sf {{ main_worktree }}/node_modules"
"#,
);
repo.commit("Add deprecated project config");
@@ -2748,7 +2748,7 @@ fn test_config_update_print_emits_both_configs(repo: TestRepo) {
)
.unwrap();
repo.write_project_config(
- r#"post-create = "ln -sf {{ main_worktree }}/node_modules"
+ r#"pre-start = "ln -sf {{ main_worktree }}/node_modules"
"#,
);
repo.commit("Add deprecated project config");
@@ -2852,7 +2852,7 @@ fn test_config_update_applies_template_var_migration(repo: TestRepo) {
fs::write(
config_path,
r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"
-post-create = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
+pre-start = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
"#,
)
.unwrap();
@@ -3772,12 +3772,12 @@ fn test_project_config_path_env_var_override(repo: TestRepo, temp_home: TempDir)
// override points elsewhere.
let in_repo_config = repo.root_path().join(".config").join("wt.toml");
fs::create_dir_all(in_repo_config.parent().unwrap()).unwrap();
- fs::write(&in_repo_config, "post-create = \"in-repo-hook\"\n").unwrap();
+ fs::write(&in_repo_config, "pre-start = \"in-repo-hook\"\n").unwrap();
// Write the override project config at an arbitrary path.
let override_dir = tempfile::tempdir().unwrap();
let override_path = override_dir.path().join("override.toml");
- fs::write(&override_path, "post-create = \"override-hook\"\n").unwrap();
+ fs::write(&override_path, "pre-start = \"override-hook\"\n").unwrap();
let mut cmd = wt_command();
repo.configure_wt_cmd(&mut cmd);
@@ -3796,7 +3796,7 @@ fn test_project_config_path_env_var_override(repo: TestRepo, temp_home: TempDir)
let json: serde_json::Value =
serde_json::from_str(&String::from_utf8_lossy(&output.stdout)).unwrap();
assert_eq!(
- json["project"]["config"]["post-create"], "override-hook",
+ json["project"]["config"]["pre-start"], "override-hook",
"expected override config to be loaded, got: {}",
json["project"]
);
@@ -3829,3 +3829,124 @@ fn test_project_config_path_env_var_override(repo: TestRepo, temp_home: TempDir)
json["project"]["config"]
);
}
+
+/// `post-create` was renamed to `pre-start` in v0.32.0. Project configs that
+/// still carry the removed key fail to load with a fatal error naming the
+/// replacement. Verify via `wt switch --create`, which propagates project
+/// config load failures as a non-zero exit.
+#[rstest]
+fn test_post_create_in_project_config_is_fatal(repo: TestRepo, temp_home: TempDir) {
+ let project_config_dir = repo.root_path().join(".config");
+ fs::create_dir_all(&project_config_dir).unwrap();
+ fs::write(
+ project_config_dir.join("wt.toml"),
+ "post-create = \"npm install\"\n",
+ )
+ .unwrap();
+
+ let mut cmd = repo.wt_command();
+ cmd.args(["switch", "--create", "new-branch"])
+ .current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+
+ let output = cmd.output().unwrap();
+ assert!(
+ !output.status.success(),
+ "project config with post-create must fail to load, stdout: {}, stderr: {}",
+ String::from_utf8_lossy(&output.stdout),
+ String::from_utf8_lossy(&output.stderr),
+ );
+ let stderr = String::from_utf8_lossy(&output.stderr);
+ assert!(
+ stderr.contains("post-create"),
+ "error should name the offending key, got: {stderr}"
+ );
+ assert!(
+ stderr.contains("pre-start"),
+ "error should point at the replacement key, got: {stderr}"
+ );
+}
+
+/// User config is loaded on a best-effort basis: a fatal deprecation surfaces
+/// as a `LoadError::Validation` warning, wt continues without it, and the user
+/// still gets the fatal message telling them to rename the key.
+#[rstest]
+fn test_post_create_in_user_config_warns_and_skips(repo: TestRepo, temp_home: TempDir) {
+ let config_path = repo.test_config_path();
+ fs::write(config_path, "post-create = \"npm install\"\n").unwrap();
+
+ let mut cmd = repo.wt_command();
+ cmd.arg("list").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+ cmd.env("WORKTRUNK_CONFIG_PATH", config_path);
+
+ let output = cmd.output().unwrap();
+ assert!(
+ output.status.success(),
+ "wt list should still succeed when user config fails validation, stderr: {}",
+ String::from_utf8_lossy(&output.stderr),
+ );
+ let stderr = String::from_utf8_lossy(&output.stderr);
+ assert!(
+ stderr.contains("post-create") && stderr.contains("pre-start"),
+ "warning should describe the rename, got: {stderr}"
+ );
+}
+
+/// `wt config show` renders the fatal post-create error inline for both user
+/// and project configs, continuing the show flow so the user can still see
+/// their file and other sections.
+#[rstest]
+fn test_config_show_renders_post_create_error(mut repo: TestRepo, temp_home: TempDir) {
+ repo.setup_mock_ci_tools_unauthenticated();
+
+ // User config at XDG path.
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ fs::write(
+ global_config_dir.join("config.toml"),
+ "post-create = \"npm install\"\n",
+ )
+ .unwrap();
+
+ // Project config in the repo.
+ let project_config_dir = repo.root_path().join(".config");
+ fs::create_dir_all(&project_config_dir).unwrap();
+ fs::write(
+ project_config_dir.join("wt.toml"),
+ "post-create = \"bundle install\"\n",
+ )
+ .unwrap();
+
+ let mut cmd = wt_command();
+ repo.configure_wt_cmd(&mut cmd);
+ repo.configure_mock_commands(&mut cmd);
+ cmd.args(["config", "show"]).current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+ set_xdg_config_path(&mut cmd, temp_home.path());
+
+ let output = cmd.output().unwrap();
+ assert!(
+ output.status.success(),
+ "wt config show should succeed, stderr: {}",
+ String::from_utf8_lossy(&output.stderr)
+ );
+ let combined = format!(
+ "{}{}",
+ String::from_utf8_lossy(&output.stdout),
+ String::from_utf8_lossy(&output.stderr)
+ );
+ // Both sections should render the rename guidance.
+ assert!(
+ combined.matches("post-create").count() >= 2,
+ "expected post-create message in both user and project sections, got: {combined}"
+ );
+ assert!(
+ combined.contains("User config: `post-create`"),
+ "user section should name the removed key, got: {combined}"
+ );
+ assert!(
+ combined.contains("Project config: `post-create`"),
+ "project section should name the removed key, got: {combined}"
+ );
+}
diff --git a/tests/integration_tests/config_update_pty.rs b/tests/integration_tests/config_update_pty.rs
index 40b298ab8..26a0680fb 100644
--- a/tests/integration_tests/config_update_pty.rs
+++ b/tests/integration_tests/config_update_pty.rs
@@ -37,7 +37,7 @@ fn test_config_update_prompt_accept(repo: TestRepo) {
fs::write(
config_path,
r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"
-post-create = "ln -sf {{ repo_root }}/node_modules"
+pre-start = "ln -sf {{ repo_root }}/node_modules"
"#,
)
.unwrap();
@@ -60,7 +60,7 @@ post-create = "ln -sf {{ repo_root }}/node_modules"
fn test_config_update_prompt_decline(repo: TestRepo) {
let config_path = repo.test_config_path();
let original_content = r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"
-post-create = "ln -sf {{ repo_root }}/node_modules"
+pre-start = "ln -sf {{ repo_root }}/node_modules"
"#;
fs::write(config_path, original_content).unwrap();
diff --git a/tests/integration_tests/e2e_shell_post_start.rs b/tests/integration_tests/e2e_shell_post_start.rs
index 4aaa624a9..cd30f2050 100644
--- a/tests/integration_tests/e2e_shell_post_start.rs
+++ b/tests/integration_tests/e2e_shell_post_start.rs
@@ -163,11 +163,11 @@ fn test_bash_shell_integration_post_create_blocks(repo: TestRepo) {
fs::create_dir_all(&config_dir).unwrap();
fs::write(
config_dir.join("wt.toml"),
- r#"post-create = "echo 'Setup done' > setup.txt""#,
+ r#"pre-start = "echo 'Setup done' > setup.txt""#,
)
.unwrap();
- repo.commit("Add post-create command");
+ repo.commit("Add pre-start command");
// Pre-approve command
repo.write_test_approvals(
@@ -203,12 +203,12 @@ approved-commands = ["echo 'Setup done' > setup.txt"]
output
);
- // Verify that post-create command completed before wt returned (blocking behavior)
+ // Verify that pre-start command completed before wt returned (blocking behavior)
// The file should exist immediately after wt exits
let setup_file = worktree_path.join("setup.txt");
assert!(
setup_file.exists(),
- "Setup file should exist immediately after wt returns (post-create is blocking)"
+ "Setup file should exist immediately after wt returns (pre-start is blocking)"
);
let content = fs::read_to_string(&setup_file).unwrap();
diff --git a/tests/integration_tests/hook_show.rs b/tests/integration_tests/hook_show.rs
index ef110d258..aaec64c0d 100644
--- a/tests/integration_tests/hook_show.rs
+++ b/tests/integration_tests/hook_show.rs
@@ -350,7 +350,7 @@ broken = "echo {{ branch"
}
/// Test that undefined variable errors show both template and error with --expanded.
-/// The `base` variable is only defined for post-create hooks, so using it in pre-commit
+/// The `base` variable is only defined for pre-start hooks, so using it in pre-commit
/// will trigger an undefined variable error that shows both the error and raw template.
#[rstest]
fn test_hook_show_expanded_undefined_var(repo: TestRepo, temp_home: TempDir) {
@@ -364,7 +364,7 @@ fn test_hook_show_expanded_undefined_var(repo: TestRepo, temp_home: TempDir) {
)
.unwrap();
- // Create project config with `base` variable (only defined for post-create hooks)
+ // Create project config with `base` variable (only defined for pre-start hooks)
// In pre-commit context, this will be undefined and should show error + template
repo.write_project_config(
r#"[pre-commit]
diff --git a/tests/integration_tests/post_start_commands.rs b/tests/integration_tests/post_start_commands.rs
index 870535992..3519c9d16 100644
--- a/tests/integration_tests/post_start_commands.rs
+++ b/tests/integration_tests/post_start_commands.rs
@@ -45,7 +45,7 @@ fn test_post_create_no_config(repo: TestRepo) {
#[rstest]
fn test_post_create_single_command(repo: TestRepo) {
// Create project config with a single command (string format)
- repo.write_project_config(r#"post-create = "echo 'Setup complete'""#);
+ repo.write_project_config(r#"pre-start = "echo 'Setup complete'""#);
repo.commit("Add config");
@@ -68,7 +68,7 @@ approved-commands = ["echo 'Setup complete'"]
fn test_post_create_named_commands(repo: TestRepo) {
// Create project config with named commands (table format)
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
install = "echo 'Installing deps'"
setup = "echo 'Running setup'"
"#,
@@ -97,7 +97,7 @@ approved-commands = [
#[rstest]
fn test_post_create_failing_command(repo: TestRepo) {
// Create project config with a command that will fail
- repo.write_project_config(r#"post-create = "exit 1""#);
+ repo.write_project_config(r#"pre-start = "exit 1""#);
repo.commit("Add config with failing command");
@@ -108,7 +108,7 @@ approved-commands = ["exit 1"]
"#,
);
- // Failing pre-start hook (via deprecated post-create name) aborts with FailFast
+ // Failing pre-start hook (via deprecated pre-start name) aborts with FailFast
snapshot_switch(
"post_create_failing_command",
&repo,
@@ -120,7 +120,7 @@ approved-commands = ["exit 1"]
fn test_post_create_template_expansion(repo: TestRepo) {
// Create project config with template variables
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
repo = "echo 'Repo: {{ repo }}' > info.txt"
branch = "echo 'Branch: {{ branch }}' >> info.txt"
hash_port = "echo 'Port: {{ branch | hash_port }}' >> info.txt"
@@ -199,9 +199,9 @@ approved-commands = [
#[rstest]
fn test_post_create_verbose_template_expansion(repo: TestRepo) {
- // Test that -v shows template expansion for post-create hooks
+ // Test that -v shows template expansion for pre-start hooks
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
setup = "echo 'Setting up {{ branch | sanitize }} in {{ worktree_path }}'"
"#,
);
@@ -239,7 +239,7 @@ approved-commands = [
fn test_post_create_default_branch_template(repo: TestRepo) {
// Create project config with default_branch template variable
repo.write_project_config(
- r#"post-create = "echo 'Default: {{ default_branch }}' > default.txt""#,
+ r#"pre-start = "echo 'Default: {{ default_branch }}' > default.txt""#,
);
repo.commit("Add config with default_branch template");
@@ -285,7 +285,7 @@ fn test_post_create_git_variables_template(#[from(repo_with_remote)] repo: TestR
// Create project config with git-related template variables
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
commit = "echo 'Commit: {{ commit }}' > git_vars.txt"
short = "echo 'Short: {{ short_commit }}' >> git_vars.txt"
remote = "echo 'Remote: {{ remote }}' >> git_vars.txt"
@@ -360,7 +360,7 @@ fn test_post_create_upstream_template(#[from(repo_with_remote)] repo: TestRepo)
// Note: {{ upstream }} errors when the new branch has no upstream tracking.
// The new feature branch won't have an upstream until it's pushed with -u.
// This test verifies the error case - see test_post_create_upstream_conditional for the fix.
- repo.write_project_config(r#"post-create = "echo 'Upstream: {{ upstream }}' > upstream.txt""#);
+ repo.write_project_config(r#"pre-start = "echo 'Upstream: {{ upstream }}' > upstream.txt""#);
repo.commit("Add config with upstream template");
@@ -393,7 +393,7 @@ fn test_post_create_upstream_conditional(#[from(repo_with_remote)] repo: TestRep
// Create project config with conditional upstream check
// Using {% if not upstream %} allows safe handling of undefined variables
repo.write_project_config(
- r#"post-create = "{% if not upstream %}echo 'no-upstream' > upstream.txt{% else %}echo '{{ upstream }}' > upstream.txt{% endif %}""#,
+ r#"pre-start = "{% if not upstream %}echo 'no-upstream' > upstream.txt{% else %}echo '{{ upstream }}' > upstream.txt{% endif %}""#,
);
repo.commit("Add config with conditional upstream");
@@ -433,7 +433,7 @@ approved-commands = ["{% if not upstream %}echo 'no-upstream' > upstream.txt{% e
fn test_post_create_base_variables(repo: TestRepo) {
// Create project config with base template variables
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
base = "echo 'Base: {{ base }}' > base_info.txt"
base_path = "echo 'Base Path: {{ base_worktree_path }}' >> base_info.txt"
"#,
@@ -505,7 +505,7 @@ fn test_post_create_json_stdin(repo: TestRepo) {
// Create project config with a command that reads JSON from stdin
// Use cat to capture stdin to a file
- repo.write_project_config(r#"post-create = "cat > context.json""#);
+ repo.write_project_config(r#"pre-start = "cat > context.json""#);
repo.commit("Add config");
@@ -602,7 +602,7 @@ with open('hook_output.txt', 'w') as f:
// Create project config that runs the script
repo.write_project_config(
- r#"[post-create]
+ r#"[pre-start]
setup = "./scripts/setup.py"
"#,
);
@@ -825,7 +825,7 @@ approved-commands = [
fn test_both_post_create_and_post_start(repo: TestRepo) {
// Create project config with both command types
repo.write_project_config(
- r#"post-create = "echo 'Setup done' > setup.txt"
+ r#"pre-start = "echo 'Setup done' > setup.txt"
[post-start]
server = "sleep 0.05 && echo 'Server running' > server.txt"
@@ -847,7 +847,7 @@ approved-commands = [
// Post-create should run first (blocking), then post-start (background)
snapshot_switch("both_create_and_start", &repo, &["--create", "feature"]);
- // Setup file should exist immediately (post-create is blocking)
+ // Setup file should exist immediately (pre-start is blocking)
let worktree_path = repo.root_path().parent().unwrap().join("repo.feature");
assert!(
worktree_path.join("setup.txt").exists(),
@@ -861,7 +861,7 @@ approved-commands = [
#[rstest]
fn test_invalid_toml(repo: TestRepo) {
// Create invalid TOML
- repo.write_project_config("post-create = [invalid syntax\n");
+ repo.write_project_config("pre-start = [invalid syntax\n");
repo.commit("Add invalid config");
@@ -1135,7 +1135,7 @@ approved-commands = ["""
fn test_post_create_multiline_with_control_structures(repo: TestRepo) {
// Test multiline command with if-else control structure
repo.write_project_config(
- r#"post-create = """
+ r#"pre-start = """
if [ ! -f test.txt ]; then
echo 'File does not exist' > result.txt
else
diff --git a/tests/integration_tests/readme_sync.rs b/tests/integration_tests/readme_sync.rs
index fae0ba441..637a06672 100644
--- a/tests/integration_tests/readme_sync.rs
+++ b/tests/integration_tests/readme_sync.rs
@@ -1209,7 +1209,7 @@ fn test_config_docs_include_all_sections() {
let all_keys = valid_user_config_keys();
- // Hook keys from HookType enum + deprecated post-create (not in enum)
+ // Hook keys from HookType enum + removed post-create (kept in schema but rejected at load)
let hook_keys: HashSet<String> = HookType::iter()
.map(|h| h.to_string())
.chain(std::iter::once("post-create".to_string()))
@@ -1273,7 +1273,7 @@ fn test_project_config_docs_include_all_sections() {
let all_keys = valid_project_config_keys();
- // Hook keys from HookType enum + deprecated post-create (not in enum)
+ // Hook keys from HookType enum + removed post-create (kept in schema but rejected at load)
let hook_keys: HashSet<String> = HookType::iter()
.map(|h| h.to_string())
.chain(std::iter::once("post-create".to_string()))
diff --git a/tests/integration_tests/user_hooks.rs b/tests/integration_tests/user_hooks.rs
index 684355851..c685f9f89 100644
--- a/tests/integration_tests/user_hooks.rs
+++ b/tests/integration_tests/user_hooks.rs
@@ -36,9 +36,9 @@ fn snapshot_switch(test_name: &str, repo: &TestRepo, args: &[&str]) {
#[rstest]
fn test_user_post_create_hook_executes(repo: TestRepo) {
- // Write user config with post-create hook (no project config)
+ // Write user config with pre-start hook (no project config)
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
log = "echo 'USER_POST_CREATE_RAN' > user_hook_marker.txt"
"#,
);
@@ -50,7 +50,7 @@ log = "echo 'USER_POST_CREATE_RAN' > user_hook_marker.txt"
let marker_file = worktree_path.join("user_hook_marker.txt");
assert!(
marker_file.exists(),
- "User post-create hook should have created marker file"
+ "User pre-start hook should have created marker file"
);
let contents = fs::read_to_string(&marker_file).unwrap();
@@ -62,13 +62,13 @@ log = "echo 'USER_POST_CREATE_RAN' > user_hook_marker.txt"
#[rstest]
fn test_user_hooks_run_before_project_hooks(repo: TestRepo) {
- // Create project config with post-create hook
- repo.write_project_config(r#"post-create = "echo 'PROJECT_HOOK' >> hook_order.txt""#);
+ // Create project config with pre-start hook
+ repo.write_project_config(r#"pre-start = "echo 'PROJECT_HOOK' >> hook_order.txt""#);
repo.commit("Add project config");
// Write user config with user hook AND pre-approve project command
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
log = "echo 'USER_HOOK' >> hook_order.txt"
"#,
);
@@ -98,7 +98,7 @@ fn test_user_hooks_no_approval_required(repo: TestRepo) {
// Write user config with hook but NO pre-approved commands
// (unlike project hooks, user hooks don't require approval)
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
setup = "echo 'NO_APPROVAL_NEEDED' > no_approval.txt"
"#,
);
@@ -116,13 +116,13 @@ setup = "echo 'NO_APPROVAL_NEEDED' > no_approval.txt"
#[rstest]
fn test_no_hooks_flag_skips_all_hooks(repo: TestRepo) {
- // Create project config with post-create hook
- repo.write_project_config(r#"post-create = "echo 'PROJECT_HOOK' > project_marker.txt""#);
+ // Create project config with pre-start hook
+ repo.write_project_config(r#"pre-start = "echo 'PROJECT_HOOK' > project_marker.txt""#);
repo.commit("Add project config");
// Write user config with both user hook and pre-approved project command
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
log = "echo 'USER_HOOK' > user_marker.txt"
"#,
);
@@ -160,14 +160,14 @@ approved-commands = ["echo 'PROJECT_HOOK' > project_marker.txt"]
fn test_user_post_create_hook_failure(repo: TestRepo) {
// Write user config with failing hook
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
failing = "exit 1"
"#,
);
- // Failing pre-start hook (via deprecated post-create name) aborts with FailFast.
+ // Failing pre-start hook (via deprecated pre-start name) aborts with FailFast.
// The worktree is already created before pre-start runs (it was renamed from
- // post-create), so the worktree exists but the command exits non-zero.
+ // pre-start), so the worktree exists but the command exits non-zero.
snapshot_switch("user_post_create_failure", &repo, &["--create", "feature"]);
// Worktree exists (created before pre-start ran) but the command failed
@@ -1181,7 +1181,7 @@ failing = "exit 1"
fn test_user_hook_template_variables(repo: TestRepo) {
// Write user config with hook using template variables
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
vars = "echo 'repo={{ repo }} branch={{ branch }}' > template_vars.txt"
"#,
);
@@ -1361,19 +1361,16 @@ approved-commands = ["echo 'PROJECT_POST_START' > project_bg.txt"]
#[rstest]
fn test_standalone_hook_post_create(repo: TestRepo) {
- // Write project config with post-create hook
- repo.write_project_config(r#"post-create = "echo 'STANDALONE_POST_CREATE' > hook_ran.txt""#);
+ // Write project config with pre-start hook
+ repo.write_project_config(r#"pre-start = "echo 'STANDALONE_POST_CREATE' > hook_ran.txt""#);
let mut cmd = crate::common::wt_command();
cmd.current_dir(repo.root_path());
cmd.env("WORKTRUNK_CONFIG_PATH", repo.test_config_path());
- cmd.args(["hook", "post-create", "--yes"]);
+ cmd.args(["hook", "pre-start", "--yes"]);
let output = cmd.output().unwrap();
- assert!(
- output.status.success(),
- "wt hook post-create should succeed"
- );
+ assert!(output.status.success(), "wt hook pre-start should succeed");
// Hook runs in background — wait for it to write the marker file
let marker = repo.root_path().join("hook_ran.txt");
@@ -1628,12 +1625,12 @@ fn test_hook_dry_run_shows_expanded_command(repo: TestRepo) {
/// --dry-run does not execute the hook command
#[rstest]
fn test_hook_dry_run_does_not_execute(repo: TestRepo) {
- repo.write_project_config(r#"post-create = "echo 'SHOULD_NOT_RUN' > hook_ran.txt""#);
+ repo.write_project_config(r#"pre-start = "echo 'SHOULD_NOT_RUN' > hook_ran.txt""#);
let mut cmd = crate::common::wt_command();
cmd.current_dir(repo.root_path());
cmd.env("WORKTRUNK_CONFIG_PATH", repo.test_config_path());
- cmd.args(["hook", "post-create", "--dry-run"]);
+ cmd.args(["hook", "pre-start", "--dry-run"]);
let output = cmd.output().unwrap();
assert!(output.status.success(), "dry-run should succeed");
@@ -1944,7 +1941,7 @@ first = "echo FIRST"
fn test_var_flag_overrides_template_variable(repo: TestRepo) {
// Write user config with a hook that uses a template variable
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ target }}' > target_output.txt"
"#,
);
@@ -1953,7 +1950,7 @@ test = "echo '{{ target }}' > target_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--var",
"target=CUSTOM_TARGET",
@@ -1975,7 +1972,7 @@ test = "echo '{{ target }}' > target_output.txt"
fn test_var_flag_multiple_variables(repo: TestRepo) {
// Write user config with a hook that uses multiple template variables
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ target }} {{ remote }}' > multi_var_output.txt"
"#,
);
@@ -1984,7 +1981,7 @@ test = "echo '{{ target }} {{ remote }}' > multi_var_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--var",
"target=FIRST",
@@ -2008,7 +2005,7 @@ test = "echo '{{ target }} {{ remote }}' > multi_var_output.txt"
fn test_var_flag_overrides_builtin_variable(repo: TestRepo) {
// Write user config with a hook that uses the builtin branch variable
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ branch }}' > branch_output.txt"
"#,
);
@@ -2017,7 +2014,7 @@ test = "echo '{{ branch }}' > branch_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--var",
"branch=CUSTOM_BRANCH_NAME",
@@ -2039,7 +2036,7 @@ test = "echo '{{ branch }}' > branch_output.txt"
fn test_var_flag_invalid_format_fails() {
// Test that invalid KEY=VALUE format is rejected
let output = std::process::Command::new(env!("CARGO_BIN_EXE_wt"))
- .args(["hook", "post-create", "--var", "no_equals_sign"])
+ .args(["hook", "pre-start", "--var", "no_equals_sign"])
.output()
.expect("Failed to run wt");
@@ -2057,14 +2054,14 @@ fn test_var_flag_custom_variable(repo: TestRepo) {
// Custom variable names (not built-in template vars) are accepted and
// injected into the template context, matching alias behavior.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ custom_var }}' > custom_var_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--var", "custom_var=hello"])
+ .args(["hook", "pre-start", "--yes", "--var", "custom_var=hello"])
.output()
.expect("Failed to run wt hook");
@@ -2086,7 +2083,7 @@ test = "echo '{{ custom_var }}' > custom_var_output.txt"
fn test_var_flag_last_value_wins(repo: TestRepo) {
// Test that when the same variable is specified multiple times, the last value wins
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ target }}' > target_output.txt"
"#,
);
@@ -2095,7 +2092,7 @@ test = "echo '{{ target }}' > target_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--var",
"target=FIRST",
@@ -2119,14 +2116,14 @@ test = "echo '{{ target }}' > target_output.txt"
fn test_var_shorthand_overrides_template_variable(repo: TestRepo) {
// `--KEY=VALUE` is equivalent to `--var KEY=VALUE` for template variables.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ branch }}' > shorthand_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--branch=SHORTHAND_BRANCH"])
+ .args(["hook", "pre-start", "--yes", "--branch=SHORTHAND_BRANCH"])
.output()
.expect("Failed to run wt hook");
@@ -2148,7 +2145,7 @@ test = "echo '{{ branch }}' > shorthand_output.txt"
fn test_var_shorthand_mixed_with_long_form(repo: TestRepo) {
// Shorthand and `--var` forms coexist in the same invocation.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ branch }} {{ target }}' > mixed_output.txt"
"#,
);
@@ -2157,7 +2154,7 @@ test = "echo '{{ branch }} {{ target }}' > mixed_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--branch=SHORT",
"--var",
@@ -2182,14 +2179,14 @@ fn test_var_shorthand_custom_variable(repo: TestRepo) {
// injected into the template context, matching alias behavior. Hyphens in
// variable names are canonicalized to underscores.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ my_env }}' > custom_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--my-env=staging"])
+ .args(["hook", "pre-start", "--yes", "--my-env=staging"])
.output()
.expect("Failed to run wt hook");
@@ -2212,14 +2209,14 @@ fn test_shorthand_unreferenced_forwards_to_args(repo: TestRepo) {
// `--KEY=VALUE` shorthand for an unreferenced KEY is smart-routed to
// `{{ args }}` — the hook template captures the flag verbatim.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ args }}' > args_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--unused-var=value"])
+ .args(["hook", "pre-start", "--yes", "--unused-var=value"])
.output()
.expect("Failed to run wt hook");
@@ -2241,14 +2238,14 @@ fn test_shorthand_referenced_binds_not_args(repo: TestRepo) {
// When KEY is referenced by any hook template, `--KEY=VALUE` binds
// `{{ KEY }}` and is NOT forwarded to `{{ args }}`.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ my_env }}:{{ args }}' > combined_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--my-env=staging"])
+ .args(["hook", "pre-start", "--yes", "--my-env=staging"])
.output()
.expect("Failed to run wt hook");
@@ -2262,14 +2259,14 @@ test = "echo '{{ my_env }}:{{ args }}' > combined_output.txt"
fn test_post_double_dash_forwards_to_args(repo: TestRepo) {
// Tokens after `--` forward verbatim into `{{ args }}`.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ args }}' > dashdash_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--", "--fast", "extra"])
+ .args(["hook", "pre-start", "--yes", "--", "--fast", "extra"])
.output()
.expect("Failed to run wt hook");
@@ -2291,14 +2288,14 @@ fn test_var_deprecation_warning(repo: TestRepo) {
// Explicit `--var` still force-binds but emits a deprecation warning
// pointing at `--KEY=VALUE` shorthand.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ my_env }}' > deprecated_output.txt"
"#,
);
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--var", "my_env=staging"])
+ .args(["hook", "pre-start", "--yes", "--var", "my_env=staging"])
.output()
.expect("Failed to run wt hook");
@@ -2319,7 +2316,7 @@ fn test_args_indexing_and_length_in_hook_template(repo: TestRepo) {
// `{{ args }}` is a ShellArgs sequence — indexing, length, and iteration
// all work the same as in alias templates.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ args[0] | default(__WT_QUOT__none__WT_QUOT__) }}:{{ args | length }}' > args_seq.txt"
"#
.replace("__WT_QUOT__", "'")
@@ -2328,7 +2325,7 @@ test = "echo '{{ args[0] | default(__WT_QUOT__none__WT_QUOT__) }}:{{ args | leng
let output = repo
.wt_command()
- .args(["hook", "post-create", "--yes", "--", "first", "second"])
+ .args(["hook", "pre-start", "--yes", "--", "first", "second"])
.output()
.expect("Failed to run wt hook");
@@ -2344,7 +2341,7 @@ fn test_mixed_var_shorthand_and_forwarded_args(repo: TestRepo) {
// + post-`--` tokens forward — all coexist in one invocation without
// cross-contamination.
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ my_env }}|{{ override }}|{{ args }}' > mixed_output.txt"
"#,
);
@@ -2353,7 +2350,7 @@ test = "echo '{{ my_env }}|{{ override }}|{{ args }}' > mixed_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--my-env=prod",
"--var",
@@ -2405,7 +2402,7 @@ fn test_var_shorthand_does_not_leak_into_hook_show() {
fn test_var_flag_deprecated_alias_works(repo: TestRepo) {
// Test that deprecated variable aliases (main_worktree, repo_root, worktree) can be overridden
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
test = "echo '{{ main_worktree }}' > alias_output.txt"
"#,
);
@@ -2414,7 +2411,7 @@ test = "echo '{{ main_worktree }}' > alias_output.txt"
.wt_command()
.args([
"hook",
- "post-create",
+ "pre-start",
"--yes",
"--var",
"main_worktree=/custom/path",
@@ -2443,7 +2440,7 @@ fn test_user_hooks_preserve_toml_order(repo: TestRepo) {
// Write user config with hooks in specific order (NOT alphabetical: vscode, claude, copy, submodule)
// If order were alphabetical, it would be: claude, copy, submodule, vscode
repo.write_test_config(
- r#"[post-create]
+ r#"[pre-start]
vscode = "echo '1' >> hook_order.txt"
claude = "echo '2' >> hook_order.txt"
copy = "echo '3' >> hook_order.txt"
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap b/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap
index 21bb4c148..ff6e54d18 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.test-approved
  echo 'approved' > output.txt
✓ Created branch test-approved from main and worktree @ _REPO_.test-approved
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap
index 207dd2774..6d5ad6aa0 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap
@@ -45,8 +45,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
▲ origin needs approval to execute 1 command:
○ pre-start:
  echo 'test command'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap
index 10f6c2f37..3b4fb5eae 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap
@@ -6,7 +6,7 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
▲ repo needs approval to execute 2 commands:
○ pre-start first:
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap
index 925dd1320..7531b3d15 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap
@@ -6,7 +6,7 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
▲ origin needs approval to execute 4 commands:
○ pre-start branch:
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap
index 6ed311d11..2cd78fd1f 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap
@@ -6,7 +6,7 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
▲ origin needs approval to execute 3 commands:
○ pre-start install:
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap
index e95555390..35034f56c 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap
@@ -6,8 +6,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
▲ origin needs approval to execute 1 command:
○ pre-start:
  echo 'Worktree path: {{ worktree_path }}'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap
index 10f6c2f37..3b4fb5eae 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap
@@ -6,7 +6,7 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
▲ repo needs approval to execute 2 commands:
○ pre-start first:
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap b/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap
index 8e0d83bd4..36397b6bb 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap
@@ -46,8 +46,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.test-yes-tty
  echo 'test command'
test command
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap
index 0c1f583d4..7994e4b2f 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap
@@ -46,8 +46,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.test-yes
  echo 'test command' > output.txt
✓ Created branch test-yes from main and worktree @ _REPO_.test-yes
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_second_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_second_run.snap
index 8e878f086..ff5aa65a1 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_second_run.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_second_run.snap
@@ -6,8 +6,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
▲ origin needs approval to execute 1 command:
○ pre-start:
  echo 'test command' > output.txt
diff --git a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_already_approved.snap b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_already_approved.snap
index 2bee2d915..b71b54b5f 100644
--- a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_already_approved.snap
+++ b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_already_approved.snap
@@ -45,6 +45,4 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
○ All commands already approved
diff --git a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap
index 1023b8957..422dd1f91 100644
--- a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap
+++ b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap
@@ -46,8 +46,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
▲ origin needs approval to execute 1 command:
○ pre-start:
  echo 'test'
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
index 6c7eb3c1f..917c8fcbd 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
@@ -45,16 +45,15 @@ exit_code: 0
USER CONFIG @ ~/.config/worktrunk/config.toml
▲ User config: template variable repo_root is deprecated in favor of repo_path
▲ User config: template variable main_worktree is deprecated in favor of repo
-▲ User config: post-create hook is deprecated in favor of pre-start
↳ To apply: wt config update
○ Proposed diff:
  diff --git a/config.toml/current b/config.toml/migrated
-  index d95d100..5eef8a6 100644
+  index dee4883..5eef8a6 100644
  --- a/config.toml/current
  +++ b/config.toml/migrated
  @@ -1,2 +1,2 @@
  -worktree-path = "../{{ main_worktree }}.{{ branch }}"
-  -post-create = "ln -sf {{ repo_root }}/node_modules"
+  -pre-start = "ln -sf {{ repo_root }}/node_modules"
  +worktree-path = "../{{ repo }}.{{ branch }}"
  +pre-start = "ln -sf {{ repo_path }}/node_modules"
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
index 67b12a8dd..d883caadc 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
@@ -47,7 +47,6 @@ exit_code: 0
PROJECT CONFIG @ [PROJECT_ID]
▲ Project config: template variable main_worktree is deprecated in favor of repo
-▲ Project config: post-create hook is deprecated in favor of pre-start
↳ To apply: wt -C _REPO_ config update
SHELL INTEGRATION
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
index 293d308ef..f28aaf5dd 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
@@ -47,19 +47,10 @@ exit_code: 0
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
PROJECT CONFIG @ _REPO_/.config/wt.toml
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To apply: wt config update
-○ Proposed diff:
-  diff --git a/wt.toml/current b/wt.toml/migrated
-  index 13d6ba3..6ccc26d 100644
-  --- a/wt.toml/current
-  +++ b/wt.toml/migrated
-  @@ -1,4 +1,4 @@
-  -post-create = "npm install"
-  +pre-start = "npm install"
-  
-  [post-start]
-  server = "npm run dev"
+  pre-start = "npm install"
+ 
+  [post-start]
+  server = "npm run dev"
SHELL INTEGRATION
▲ Shell integration not active
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap
index 99166f016..cd3d4ff31 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap
@@ -48,15 +48,14 @@ exit_code: 0
▲ User config: template variable repo_root is deprecated in favor of repo_path
▲ User config: template variable worktree is deprecated in favor of worktree_path
▲ User config: template variable main_worktree is deprecated in favor of repo
-▲ User config: post-create hook is deprecated in favor of pre-start
○ Proposed diff:
  diff --git a/test-config.toml/current b/test-config.toml/migrated
-  index 89b3165..b3535c5 100644
+  index 7cc556b..b3535c5 100644
  --- a/test-config.toml/current
  +++ b/test-config.toml/migrated
  @@ -1,2 +1,2 @@
  -worktree-path = "../{{ main_worktree }}.{{ branch }}"
-  -post-create = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
+  -pre-start = "ln -sf {{ repo_root }}/node_modules {{ worktree }}/node_modules"
  +worktree-path = "../{{ repo }}.{{ branch }}"
  +pre-start = "ln -sf {{ repo_path }}/node_modules {{ worktree_path }}/node_modules"
✓ Updated user config
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap
index b2d66702f..2a50ced7c 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap
@@ -53,5 +53,4 @@ exit_code: 0
▲ User config: template variable repo_root is deprecated in favor of repo_path
▲ User config: template variable worktree is deprecated in favor of worktree_path
▲ User config: template variable main_worktree is deprecated in favor of repo
-▲ User config: post-create hook is deprecated in favor of pre-start
↳ To see details, run wt config show; to apply updates, run wt config update
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap
index 74d9f77f6..4cf06bdf0 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap
@@ -54,7 +54,6 @@ exit_code: 0
▲ User config: template variable repo_root is deprecated in favor of repo_path
▲ User config: template variable worktree is deprecated in favor of worktree_path
▲ User config: template variable main_worktree is deprecated in favor of repo
-▲ User config: post-create hook is deprecated in favor of pre-start
↳ To see details, run wt config show; to apply updates, run wt config update
○ Expanding worktree-path
  ../{{ main_worktree }}.{{ branch }}
diff --git a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap
index 961b8f020..4c275aeb6 100644
--- a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap
+++ b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap
@@ -4,15 +4,14 @@ expression: "&output"
---
▲ User config: template variable repo_root is deprecated in favor of repo_path
▲ User config: template variable main_worktree is deprecated in favor of repo
-▲ User config: post-create hook is deprecated in favor of pre-start
○ Proposed diff:
  diff --git a/test-config.toml/current b/test-config.toml/migrated
-  index d95d100..5eef8a6 100644
+  index dee4883..5eef8a6 100644
  --- a/test-config.toml/current
  +++ b/test-config.toml/migrated
  @@ -1,2 +1,2 @@
  -worktree-path = "../{{ main_worktree }}.{{ branch }}"
-  -post-create = "ln -sf {{ repo_root }}/node_modules"
+  -pre-start = "ln -sf {{ repo_root }}/node_modules"
  +worktree-path = "../{{ repo }}.{{ branch }}"
  +pre-start = "ln -sf {{ repo_path }}/node_modules"
diff --git a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap
index c9aa2c965..b8bb8e69e 100644
--- a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap
+++ b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap
@@ -4,15 +4,14 @@ expression: "&output"
---
▲ User config: template variable repo_root is deprecated in favor of repo_path
▲ User config: template variable main_worktree is deprecated in favor of repo
-▲ User config: post-create hook is deprecated in favor of pre-start
○ Proposed diff:
  diff --git a/test-config.toml/current b/test-config.toml/migrated
-  index d95d100..5eef8a6 100644
+  index dee4883..5eef8a6 100644
  --- a/test-config.toml/current
  +++ b/test-config.toml/migrated
  @@ -1,2 +1,2 @@
  -worktree-path = "../{{ main_worktree }}.{{ branch }}"
-  -post-create = "ln -sf {{ repo_root }}/node_modules"
+  -pre-start = "ln -sf {{ repo_root }}/node_modules"
  +worktree-path = "../{{ repo }}.{{ branch }}"
  +pre-start = "ln -sf {{ repo_path }}/node_modules"
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
index eef863195..9f5d4eca9 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.feature
  echo 'Setup done' > setup.txt
✓ Created branch feature from main and worktree @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap b/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap
index 514c2955e..772aee0aa 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap
@@ -47,8 +47,8 @@ exit_code: 1
----- stderr -----
✗ Failed to load project config
  Project config at _REPO_/.config/wt.toml failed to parse:
-  TOML parse error at line 1, column 30
+  TOML parse error at line 1, column 28
  |
-  1 | post-create = [invalid syntax
-  | ^
+  1 | pre-start = [invalid syntax
+  | ^
  unclosed array, expected `]`
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_base_variables.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_base_variables.snap
index 9cc2b12ba..b2db4a3f3 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_base_variables.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_base_variables.snap
@@ -47,7 +47,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project:base @ _REPO_.feature
  echo 'Base: main' > base_info.txt
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap
index 2f04f463f..5162debc7 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap
@@ -46,8 +46,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.feature
  echo 'Default: main' > default.txt
✓ Created branch feature from main and worktree @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap
index ce0b56dcd..dffcdf9b4 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap
@@ -45,8 +45,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.feature
  exit 1
✗ pre-start command failed: exit status: 1
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_git_variables_template.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_git_variables_template.snap
index 178294307..3d8c132ca 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_git_variables_template.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_git_variables_template.snap
@@ -46,12 +46,12 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project:commit @ _REPO_.feature
-  echo 'Commit: f9680d376e0968fcb45a0029cf83898054742923' > git_vars.txt
+  echo 'Commit: 72ad3f366b7d9a0fad6f311caa63139e2dc02f0e' > git_vars.txt
◎ Running pre-start project:short @ _REPO_.feature
-  echo 'Short: f9680d3' >> git_vars.txt
+  echo 'Short: 72ad3f3' >> git_vars.txt
◎ Running pre-start project:remote @ _REPO_.feature
  echo 'Remote: origin' >> git_vars.txt
◎ Running pre-start project:worktree_name @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap
index 74ec41758..947e5ae9f 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.feature
  if [ ! -f test.txt ]; then
   echo 'File does not exist' > result.txt
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
index db50d88bb..f6f9b2d39 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
@@ -45,7 +45,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project:install @ _REPO_.feature
  echo 'Installing deps'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
index 22b76b7e8..b737efb34 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.feature
  echo 'Setup complete'
Setup complete
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap
index 9a7341937..505faa4ae 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap
@@ -45,7 +45,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
+▲ Project config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project:repo @ _REPO_.feature-test
  echo 'Repo: repo' > info.txt
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_conditional.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_conditional.snap
index 70c6b27f7..d73a60e78 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_conditional.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_conditional.snap
@@ -46,8 +46,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start project hook @ _REPO_.feature
  echo 'no-upstream' > upstream.txt
✓ Created branch feature from main and worktree @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap
index 43ac729bf..7f1b112d9 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap
@@ -46,8 +46,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
✗ Failed to expand project pre-start hook: undefined value @ line 1
  echo 'Upstream: {{ upstream }}' > upstream.txt
↳ Available variables: args, base, base_worktree_path, branch, commit, cwd, default_branch, hook_type, main_worktree, main_worktree_path, primary_worktree_path, remote, remote_url, repo, repo_path, repo_root, short_commit, target, target_worktree_path, worktree, worktree_name, worktree_path
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_verbose_template_expansion.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_verbose_template_expansion.snap
index 444ceae77..539dbd26b 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_verbose_template_expansion.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_verbose_template_expansion.snap
@@ -46,8 +46,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ Project config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
○ Expanding worktree-path
  ../{{ repo }}.{{ branch | sanitize }}
  →
@@ -60,8 +58,8 @@ exit_code: 0
  branch = verbose-hooks
  worktree_path = _REPO_.verbose-hooks
  worktree_name = repo.verbose-hooks
-  commit = 8b2a39bbbeb5897579b4db89e4785539fd72278d
-  short_commit = 8b2a39b
+  commit = 7900f355a9d429e8ac86370140fe4622e7d27e33
+  short_commit = 7900f35
  upstream = (unset)
  base = main
  base_worktree_path = _REPO_
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__no_hooks_skips_all_hooks.snap b/tests/snapshots/integration__integration_tests__user_hooks__no_hooks_skips_all_hooks.snap
index 98e9d837e..bcfc4e961 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__no_hooks_skips_all_hooks.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__no_hooks_skips_all_hooks.snap
@@ -46,8 +46,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
✓ Created branch feature from main and worktree @ _REPO_.feature
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_hook_template_vars.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_hook_template_vars.snap
index b58d13b55..f82f9b754 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_hook_template_vars.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_hook_template_vars.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start user:vars @ _REPO_.feature
  echo 'repo=repo branch=feature' > template_vars.txt
✓ Created branch feature from main and worktree @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap
index 632e3a38f..4ff72b582 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap
@@ -45,9 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
-▲ Project config: post-create hook is deprecated in favor of pre-start
◎ Running pre-start user:log @ _REPO_.feature
  echo 'USER_HOOK' >> hook_order.txt
◎ Running pre-start project hook @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_no_approval.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_no_approval.snap
index 70f6099c5..a700ccd20 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_no_approval.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_no_approval.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start user:setup @ _REPO_.feature
  echo 'NO_APPROVAL_NEEDED' > no_approval.txt
✓ Created branch feature from main and worktree @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_preserve_order.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_preserve_order.snap
index f042c83ef..a296dfcf9 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_preserve_order.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_preserve_order.snap
@@ -45,7 +45,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
+▲ User config: table form for pre-start is deprecated in favor of the pipeline form. We're unifying pre-hooks, post-hooks, and aliases so that list form always runs serially and table form always runs in parallel — migrate now to keep the current serial behavior once the table form is repurposed.
↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start user:vscode @ _REPO_.feature
  echo '1' >> hook_order.txt
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_executes.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_executes.snap
index f6714f40d..1e0d8e01f 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_executes.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_executes.snap
@@ -45,8 +45,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start user:log @ _REPO_.feature
  echo 'USER_POST_CREATE_RAN' > user_hook_marker.txt
✓ Created branch feature from main and worktree @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_failure.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_failure.snap
index 12568f28f..f7f1f2104 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_failure.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_create_failure.snap
@@ -45,8 +45,6 @@ exit_code: 1
----- stdout -----
----- stderr -----
-▲ User config: post-create hook is deprecated in favor of pre-start
-↳ To see details, run wt config show; to apply updates, run wt config update
◎ Running pre-start user:failing @ _REPO_.feature
  exit 1
✗ pre-start command failed: failing: exit status: 1