From 8a9aa0342d30417c1f6f7a245b607647c145c880 Mon Sep 17 00:00:00 2001 From: can1357 Date: Wed, 22 Jul 2026 21:16:38 +0200 Subject: [PATCH] chore: format evaluator fix commits and suppress intentional DAP placeholder lint --- packages/coding-agent/src/utils/git.ts | 4 +--- packages/coding-agent/test/debug/dap-launch-failures.test.ts | 1 + scripts/fix-changelogs.test.ts | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/coding-agent/src/utils/git.ts b/packages/coding-agent/src/utils/git.ts index bcfbbb4da..22fd8855d 100644 --- a/packages/coding-agent/src/utils/git.ts +++ b/packages/coding-agent/src/utils/git.ts @@ -445,9 +445,7 @@ async function git(cwd: string, args: readonly string[], options: CommandOptions if (isEnoent(err)) { // A deleted/nonexistent cwd also surfaces as a spawn ENOENT; only blame // the binary when the working directory actually exists. - const stderr = fs.existsSync(cwd) - ? "git is not installed." - : `working directory does not exist: ${cwd}`; + const stderr = fs.existsSync(cwd) ? "git is not installed." : `working directory does not exist: ${cwd}`; return { exitCode: GIT_SPAWN_ENOENT_EXIT_CODE, stdout: "", stderr }; } throw err; diff --git a/packages/coding-agent/test/debug/dap-launch-failures.test.ts b/packages/coding-agent/test/debug/dap-launch-failures.test.ts index 063f168ec..b2d6cb98f 100644 --- a/packages/coding-agent/test/debug/dap-launch-failures.test.ts +++ b/packages/coding-agent/test/debug/dap-launch-failures.test.ts @@ -538,6 +538,7 @@ await Bun.sleep(60_000); await fs.writeFile(adapterPath, source); const adapter: DapResolvedAdapter = { ...TCP_ADAPTER_BASE, + // biome-ignore lint/suspicious/noTemplateCurlyInString: literal DAP `${port}` placeholder substituted by the adapter launcher args: [adapterPath, "${port}", "127.0.0.1"], }; try { diff --git a/scripts/fix-changelogs.test.ts b/scripts/fix-changelogs.test.ts index fd64504fd..d0d8c570d 100644 --- a/scripts/fix-changelogs.test.ts +++ b/scripts/fix-changelogs.test.ts @@ -187,7 +187,8 @@ describe("fixChangelogContent", () => { }); it("keeps bullets the rewrite preserved verbatim instead of dropping them as consumed", () => { - const keptItem = "- Fixed crash when opening the empty settings panel ([#1234](https://github.com/can1357/oh-my-pi/issues/1234))."; + const keptItem = + "- Fixed crash when opening the empty settings panel ([#1234](https://github.com/can1357/oh-my-pi/issues/1234))."; const document = parseChangelog( ["# Changelog", "", "## [Unreleased]", "", "### Fixed", "", keptItem, ""].join("\n"), );