Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Warn when wt list can't parse the project config (#3993)
Maximilian Roos10cb25901e5b
diff --git a/src/commands/hook_commands.rs b/src/commands/hook_commands.rsindex 320e9eccd..625c1240d 100644--- a/src/commands/hook_commands.rs+++ b/src/commands/hook_commands.rs@@ -352,9 +352,10 @@ pub fn handle_hook_show(let repo = Repository::current().context("Failed to show hooks")?;let config: &UserConfig = repo.user_config();- let project_config: Option<&ProjectConfig> = repo- .project_config()- .context("Failed to load project config")?;+ // No `.context()`: `project_config()` already wraps the load failure with+ // exactly that header, and a second copy renders as a header restating+ // its own gutter.+ let project_config: Option<&ProjectConfig> = repo.project_config()?;let approvals = Approvals::load().context("Failed to load approvals")?;let project_id = repo.project_identifier().ok();diff --git a/src/commands/list/mod.rs b/src/commands/list/mod.rsindex 65acaccba..00717a722 100644--- a/src/commands/list/mod.rs+++ b/src/commands/list/mod.rs@@ -168,6 +168,13 @@ pub fn handle_list() -> anyhow::Result<()> {let render_target = RenderTarget::detect(format, progressive_flag);+ // A `.config/wt.toml` that doesn't parse reaches the listing only through+ // accessors that shrug it off (`[list] url`, `[forge] platform`), so it+ // would otherwise leave no trace on the command run most often. Warn+ // ahead of `collect()`, where those accessors run, so the line lands+ // above the rows instead of between them.+ repo.warn_if_project_config_unloadable();+// Resolve the JSON schema before collecting, so the unset-nag lands// above the output rather than after a long collection.let json_schema =diff --git a/src/commands/step/shared.rs b/src/commands/step/shared.rsindex 5d71fdf21..47c424b4c 100644--- a/src/commands/step/shared.rs+++ b/src/commands/step/shared.rs@@ -83,9 +83,9 @@ pub(super) fn resolve_copy_ignored_config(repo: &Repository) -> anyhow::Result<Cexclude: default_copy_ignored_excludes(),};let user_config = repo.user_config();- let project_config = repo- .project_config()- .context("Failed to load project config")?;+ // No `.context()`: `project_config()` already wraps the load failure with+ // exactly that header (see `handle_hook_show`).+ let project_config = repo.project_config()?;if let Some(project_config) = project_config&& let Some(project_copy_ignored) = project_config.copy_ignored(){diff --git a/src/config/project.rs b/src/config/project.rsindex 2054c9077..833fe886a 100644--- a/src/config/project.rs+++ b/src/config/project.rs@@ -7,9 +7,9 @@ use std::collections::BTreeMap;use schemars::JsonSchema;use serde::{Deserialize, Serialize};-use super::ConfigError;use super::commands::CommandConfig;use super::is_default;+use super::{ConfigError, LoadError};use super::{CopyIgnoredConfig, HooksConfig, StepConfig};/// Project-level configuration for `wt list` output.@@ -243,10 +243,13 @@ impl ProjectConfig {////// Set `write_hints` to true for normal usage. Set to false during completion/// to avoid side effects (writing git config hints).- pub fn load(- repo: &crate::git::Repository,- write_hints: bool,- ) -> Result<Option<Self>, ConfigError> {+ ///+ /// A parse failure surfaces as `LoadError::File` — the same typed error+ /// the user-config layer collects — so both configs render through one+ /// diagnostic path, and a caller that tolerates a broken file (`wt list`,+ /// via [`crate::git::Repository::warn_if_project_config_unloadable`]) can+ /// split the file it names from the parser's complaint.+ pub fn load(repo: &crate::git::Repository, write_hints: bool) -> anyhow::Result<Option<Self>> {let (contents, config_path) = match repo.project_config_path().map_err(|e| ConfigError(format!("Failed to get config path: {}", e)))?@@ -254,8 +257,12 @@ impl ProjectConfig {Some(path) if path.exists() => {// Load directly with toml crate to preserve insertion order// (with preserve_order feature).- let contents = std::fs::read_to_string(&path)- .map_err(|e| ConfigError(format!("Failed to read config file: {}", e)))?;+ let contents = std::fs::read_to_string(&path).map_err(|e| {+ ConfigError(format!(+ "Failed to read {}: {e}",+ crate::path::format_path_for_display(&path)+ ))+ })?;(contents, path)}// No config resolved on disk. In a bare layout with the default@@ -299,12 +306,10 @@ impl ProjectConfig {// Deserialize the structurally migrated content so deprecated keys// (e.g. `pre-start`/`post-start`) still load into their canonical fields.- let config: ProjectConfig = toml::from_str(&migrated).map_err(|e| {- ConfigError(format!(- "{} at {} failed to parse:\n{e}",- super::ConfigFileKind::Project.label(),- crate::path::format_path_for_display(&config_path),- ))+ let config: ProjectConfig = toml::from_str(&migrated).map_err(|e| LoadError::File {+ path: config_path,+ kind: super::ConfigFileKind::Project,+ err: Box::new(e),})?;Ok(Some(config))diff --git a/src/config/user/mod.rs b/src/config/user/mod.rsindex ea6153e5c..e6bacd94b 100644--- a/src/config/user/mod.rs+++ b/src/config/user/mod.rs@@ -106,7 +106,7 @@ impl std::fmt::Display for LoadError {LoadError::File { path, kind, err } => {write!(f,- "{} at {} failed to parse:\n{err}",+ "{} @ {} failed to parse:\n{err}",kind.label(),crate::path::format_path_for_display(path))diff --git a/src/config/user/tests.rs b/src/config/user/tests.rsindex 8e0fc3be1..ba3f9d520 100644--- a/src/config/user/tests.rs+++ b/src/config/user/tests.rs@@ -2396,7 +2396,7 @@ fn test_load_error_display_file() {err: Box::new(toml_err),};let msg = err.to_string();- assert!(msg.contains("User config at"), "{msg}");+ assert!(msg.contains("User config @"), "{msg}");assert!(msg.contains("failed to parse"), "{msg}");assert!(msg.contains("line 2"), "{msg}");}diff --git a/src/git/repository/config.rs b/src/git/repository/config.rsindex 65973ba9a..862d14c04 100644--- a/src/git/repository/config.rs+++ b/src/git/repository/config.rs@@ -6,7 +6,7 @@ use std::time::Duration;use anyhow::Context;use color_print::cformat;-use crate::config::ProjectConfig;+use crate::config::{LoadError, ProjectConfig};use crate::git::CommandError;use crate::path::format_path_for_display;@@ -999,6 +999,37 @@ impl Repository {}).map(Option::as_ref)}++ /// Report an unloadable project config as a warning instead of an error.+ ///+ /// Every command that *runs* project config — `wt switch`, `wt merge`,+ /// `wt hook` — fails hard on a `.config/wt.toml` that doesn't parse:+ /// acting on a half-read hook list is worse than stopping. `wt list` only+ /// decorates with it (`[list] url`, `[forge] platform`, both reached+ /// through accessors that already degrade to `None`), so the file would+ /// otherwise leave no trace at all on the command people run most, and a+ /// broken config could sit there indefinitely.+ ///+ /// The warning is the one the user-config layer already emits for the+ /// same condition (`▲ User config @ … failed to parse, skipping`), through+ /// the shared `emit_config_load_warning`. A failure with no file/parse+ /// split to render — an unreadable file, a path that can't be resolved —+ /// warns with its own message instead.+ pub fn warn_if_project_config_unloadable(&self) {+ let Err(err) = self.project_config() else {+ return;+ };+ match err+ .chain()+ .find_map(|cause| cause.downcast_ref::<LoadError>())+ {+ Some(load_error) => super::emit_config_load_warning(load_error),+ None => crate::styling::eprintln!(+ "{}",+ crate::styling::warning_message(format!("{}, skipping", err.root_cause()))+ ),+ }+ }}/// Split a `worktrunk.state.<branch>.vars.<key>` config key into `(branch, key)`.diff --git a/src/git/repository/mod.rs b/src/git/repository/mod.rsindex e4e8f5738..f4b8c7130 100644--- a/src/git/repository/mod.rs+++ b/src/git/repository/mod.rs@@ -2164,57 +2164,62 @@ fn parse_config_list_z(stdout: &[u8]) -> indexmap::IndexMap<String, Vec<String>>/// stderr output is byte-identical regardless of which path runs.fn emit_user_config_warnings(warnings: &[LoadError]) {for warning in warnings {- match warning {- LoadError::File { path, kind, err } => {- let label = kind.label();- let path_display = crate::path::format_path_for_display(path);- crate::styling::eprintln!(- "{}",- crate::styling::warning_message(cformat!(- "{label} @ <bold>{path_display}</> failed to parse, skipping"- ))- );- crate::styling::eprintln!(- "{}",- crate::styling::format_with_gutter(&err.to_string(), None)- );- }- LoadError::Env { err, vars } => {- let var_list: Vec<_> = vars- .iter()- .map(|(name, value)| format!("{name}={value}"))- .collect();- crate::styling::eprintln!(- "{}",- crate::styling::warning_message(format!(- "Ignoring env var overrides: {}",- var_list.join(", ")- ))- );- crate::styling::eprintln!(- "{}",- crate::styling::format_with_gutter(err.trim(), None)- );- }- LoadError::CliOverride { err, overrides } => {- crate::styling::eprintln!(- "{}",- crate::styling::warning_message(format!(- "Ignoring --config-set overrides: {}",- overrides.join(", ")- ))- );- crate::styling::eprintln!(- "{}",- crate::styling::format_with_gutter(err.trim(), None)- );- }- LoadError::Validation(err) => {- crate::styling::eprintln!(- "{}",- crate::styling::warning_message(format!("Config validation warning: {err}"))- );- }+ emit_config_load_warning(warning);+ }+}++/// Render one [`LoadError`] as a `▲` warning (plus a gutter for the parser's+/// own output, where there is one).+///+/// Also the project-config path: [`Repository::warn_if_project_config_unloadable`]+/// feeds the `LoadError::File` that `ProjectConfig::load` returns through+/// here, so `▲ Project config @ … failed to parse, skipping` and its user+/// counterpart are one line of code rather than two that can drift.+fn emit_config_load_warning(warning: &LoadError) {+ match warning {+ LoadError::File { path, kind, err } => {+ let label = kind.label();+ let path_display = crate::path::format_path_for_display(path);+ crate::styling::eprintln!(+ "{}",+ crate::styling::warning_message(cformat!(+ "{label} @ <bold>{path_display}</> failed to parse, skipping"+ ))+ );+ crate::styling::eprintln!(+ "{}",+ crate::styling::format_with_gutter(&err.to_string(), None)+ );+ }+ LoadError::Env { err, vars } => {+ let var_list: Vec<_> = vars+ .iter()+ .map(|(name, value)| format!("{name}={value}"))+ .collect();+ crate::styling::eprintln!(+ "{}",+ crate::styling::warning_message(format!(+ "Ignoring env var overrides: {}",+ var_list.join(", ")+ ))+ );+ crate::styling::eprintln!("{}", crate::styling::format_with_gutter(err.trim(), None));+ }+ LoadError::CliOverride { err, overrides } => {+ crate::styling::eprintln!(+ "{}",+ crate::styling::warning_message(format!(+ "Ignoring --config-set overrides: {}",+ overrides.join(", ")+ ))+ );+ crate::styling::eprintln!("{}", crate::styling::format_with_gutter(err.trim(), None));+ }+ LoadError::Validation(err) => {+ crate::styling::eprintln!(+ "{}",+ crate::styling::warning_message(format!("Config validation warning: {err}"))+ );}}}diff --git a/tests/integration_tests/hook_show.rs b/tests/integration_tests/hook_show.rsindex 993d74769..e5395ce3d 100644--- a/tests/integration_tests/hook_show.rs+++ b/tests/integration_tests/hook_show.rs@@ -288,6 +288,30 @@ fn test_error_with_context_formatting(temp_home: TempDir) {});}+/// A project config that doesn't parse stops `wt hook show` — showing a+/// half-read hook list is worse than stopping — and the failure renders as one+/// header over the parser's own output.+///+/// `Repository::project_config()` already wraps the load with "Failed to load+/// project config", so the handler must not add a second copy: that rendered+/// as a header restating its own gutter line. The snapshot pins the single+/// header, and the `@` before the path (never "at", per the path vocabulary).+#[rstest]+fn test_hook_show_invalid_project_config(repo: TestRepo, temp_home: TempDir) {+ // Unclosed table header — the file cannot be parsed at all.+ repo.write_project_config("[pre-merge\ntest = \"echo hi\"\n");++ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.arg("hook").arg("show").current_dir(repo.root_path());+ set_temp_home_env(&mut cmd, temp_home.path());++ assert_cmd_snapshot!(cmd);+ });+}+#[rstest]fn test_hook_show_project_config_no_hooks(repo: TestRepo, temp_home: TempDir) {// Create user config without hooksdiff --git a/tests/integration_tests/list_config.rs b/tests/integration_tests/list_config.rsindex f5cac7d2b..7990c0a57 100644--- a/tests/integration_tests/list_config.rs+++ b/tests/integration_tests/list_config.rs@@ -338,6 +338,61 @@ branches = "not-a-bool"});}+/// A project config that doesn't parse must warn on stderr and still list.+///+/// `wt switch` and `wt hook` fail hard on the same file, but `wt list` reads+/// project config only for decoration (`[list] url`, `[forge] platform`)+/// through accessors that shrug the error off — so before this warning a+/// broken `.config/wt.toml` left no trace on the command run most often, and+/// could sit there indefinitely.+///+/// The snapshot pins the whole contract: the `▲` warning naming the file in+/// the same shape the user-config layer uses, the parser's own output in a+/// gutter, exit 0, and the table on stdout below it.+#[rstest]+fn test_list_malformed_project_config_warns_and_still_lists(repo: TestRepo) {+ // Unclosed table header — the file cannot be parsed at all, so no part of+ // it survives into the listing.+ repo.write_project_config("[pre-merge\ntest = \"echo hi\"\n");++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.arg("list").current_dir(repo.root_path());++ assert_cmd_snapshot!(cmd);+ });+}++/// Every project-config load failure degrades the listing, not only a parse+/// error. A file that can't be read has no parser output to quote, so it warns+/// with the message that names it instead of a header-plus-gutter pair.+///+/// Asserted rather than snapshotted: the OS's wording for "that's a directory"+/// differs across the platforms the suite runs on.+#[rstest]+fn test_list_unreadable_project_config_warns_and_still_lists(repo: TestRepo) {+ // A directory where the file belongs: the path exists, the read fails.+ fs::create_dir_all(repo.root_path().join(".config").join("wt.toml")).unwrap();++ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.arg("list").current_dir(repo.root_path());++ let output = cmd.output().unwrap();+ let stderr = String::from_utf8_lossy(&output.stderr);+ assert!(output.status.success(), "list must still succeed: {stderr}");+ assert!(+ stderr.contains('▲') && stderr.contains("Failed to read") && stderr.contains("skipping"),+ "expected a warning naming the unreadable file, got: {stderr}"+ );+ assert!(+ String::from_utf8_lossy(&output.stdout).contains("main"),+ "table should still render"+ );+}+/// When a WORKTRUNK_* env var override fails (e.g. a string value for a typed/// field), the warning must blame env vars — not the config file — and list/// the override vars currently set.diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_invalid_project_config.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_invalid_project_config.snapnew file mode 100644index 000000000..390f30a55--- /dev/null+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_invalid_project_config.snap@@ -0,0 +1,68 @@+---+source: tests/integration_tests/hook_show.rs+info:+ program: wt+ args:+ - hook+ - show+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLAUDE_CONFIG_DIR: "[TEST_CLAUDE_CONFIG]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_ALLOW_PROTOCOL: file+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_AUTHOR_EMAIL: [email protected]+ GIT_AUTHOR_NAME: Test User+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_EMAIL: [email protected]+ GIT_COMMITTER_NAME: Test User+ GIT_CONFIG_COUNT: "2"+ GIT_CONFIG_GLOBAL: /nonexistent/wt/gitconfig+ GIT_CONFIG_KEY_0: user.useConfigOnly+ GIT_CONFIG_KEY_1: rerere.enabled+ GIT_CONFIG_SYSTEM: /nonexistent/wt/gitconfig+ GIT_CONFIG_VALUE_0: "true"+ GIT_CONFIG_VALUE_1: "false"+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ LLVM_PROFILE_FILE: "[LLVM_PROFILE_FILE]"+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"+ PATH: "[PATH]"+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"+ WORKTRUNK_TEST_BASH_INSTALLED: "0"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_CODEX_INSTALLED: "0"+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"+ WORKTRUNK_TEST_EPOCH: "1735776000"+ WORKTRUNK_TEST_FISH_INSTALLED: "0"+ WORKTRUNK_TEST_GEMINI_INSTALLED: "0"+ WORKTRUNK_TEST_MOCK_CONFIG_DIR: "[TEST_MOCK_CONFIG]"+ WORKTRUNK_TEST_NUSHELL_ENV: "0"+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"+ WORKTRUNK_TEST_PARENT_SHELL: ""+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"+ WORKTRUNK_TEST_PROBE_TIMEOUT_MS: "60000"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: false+exit_code: 1+----- stdout -----++----- stderr -----+[31m✗[39m [31mFailed to load project config[39m+[107m [0m Project config @ _REPO_/.config/wt.toml failed to parse:+[107m [0m TOML parse error at line 1, column 11+[107m [0m |+[107m [0m 1 | [pre-merge+[107m [0m | ^+[107m [0m unclosed table, expected `]`diff --git a/tests/snapshots/integration__integration_tests__list_config__list_malformed_project_config_warns_and_still_lists.snap b/tests/snapshots/integration__integration_tests__list_config__list_malformed_project_config_warns_and_still_lists.snapnew file mode 100644index 000000000..976f9dc23--- /dev/null+++ b/tests/snapshots/integration__integration_tests__list_config__list_malformed_project_config_warns_and_still_lists.snap@@ -0,0 +1,73 @@+---+source: tests/integration_tests/list_config.rs+info:+ program: wt+ args:+ - list+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLAUDE_CONFIG_DIR: "[TEST_CLAUDE_CONFIG]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_ALLOW_PROTOCOL: file+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_AUTHOR_EMAIL: [email protected]+ GIT_AUTHOR_NAME: Test User+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_EMAIL: [email protected]+ GIT_COMMITTER_NAME: Test User+ GIT_CONFIG_COUNT: "2"+ GIT_CONFIG_GLOBAL: /nonexistent/wt/gitconfig+ GIT_CONFIG_KEY_0: user.useConfigOnly+ GIT_CONFIG_KEY_1: rerere.enabled+ GIT_CONFIG_SYSTEM: /nonexistent/wt/gitconfig+ GIT_CONFIG_VALUE_0: "true"+ GIT_CONFIG_VALUE_1: "false"+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ LLVM_PROFILE_FILE: "[LLVM_PROFILE_FILE]"+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"+ PATH: "[PATH]"+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"+ WORKTRUNK_TEST_BASH_INSTALLED: "0"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_CODEX_INSTALLED: "0"+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"+ WORKTRUNK_TEST_EPOCH: "1735776000"+ WORKTRUNK_TEST_FISH_INSTALLED: "0"+ WORKTRUNK_TEST_GEMINI_INSTALLED: "0"+ WORKTRUNK_TEST_MOCK_CONFIG_DIR: "[TEST_MOCK_CONFIG]"+ WORKTRUNK_TEST_NUSHELL_ENV: "0"+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"+ WORKTRUNK_TEST_PARENT_SHELL: ""+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"+ WORKTRUNK_TEST_PROBE_TIMEOUT_MS: "60000"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mRemote⇅[0m [1mPath[0m [1mCommit[0m [1mAge[0m [1mMessage[0m+@ main [36m?[39m [2m^[22m[2m|[22m [32m+2[0m [2m|[0m . [2m05a4a45[0m [2m16h[0m [2mInitial commit[0m++ feature-a [2m↑[22m [32m↑1[0m [32m+1[0m ../repo.feature-a [2m1b87d47[0m [2m16h[0m [2mAdd feature-a file[0m++ feature-b [2m↑[22m [32m↑1[0m [32m+1[0m ../repo.feature-b [2mf62940f[0m [2m16h[0m [2mAdd feature-b file[0m++ feature-c [2m↑[22m [32m↑1[0m [32m+1[0m ../repo.feature-c [2m345c7c9[0m [2m16h[0m [2mAdd feature-c file[0m++----- stderr -----+[33m▲[39m [33mProject config @ [1m_REPO_/.config/wt.toml[22m failed to parse, skipping[39m+[107m [0m TOML parse error at line 1, column 11+[107m [0m |+[107m [0m 1 | [pre-merge+[107m [0m | ^+[107m [0m unclosed table, expected `]`++[2m○[22m [2mShowing 4 worktrees, 1 with changes, 3 ahead[0mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap b/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snapindex 60273f6c6..40751c128 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@@ -61,7 +61,7 @@ exit_code: 1----- stderr -----[31m✗[39m [31mFailed to load project config[39m-[107m [0m Project config at _REPO_/.config/wt.toml failed to parse:+[107m [0m Project config @ _REPO_/.config/wt.toml failed to parse:[107m [0m TOML parse error at line 1, column 28[107m [0m |[107m [0m 1 | pre-start = [invalid syntax