From 18ed612e5cd445a47aa55f68af68675688036961 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:16:43 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#79496) Co-authored-by: github-actions[bot] --- apps/desktop/electron/git-worktree-ops.test.ts | 15 ++++++++++++--- apps/desktop/src/app/chat/sidebar/index.tsx | 4 +--- .../chat/sidebar/projects/workspace-header.tsx | 1 - .../app/chat/sidebar/projects/worktree-dialog.tsx | 4 +--- .../src/app/right-sidebar/files/remote-picker.tsx | 5 ++++- apps/desktop/src/app/updates-overlay.tsx | 3 ++- .../src/components/chat/zoomable-image.tsx | 3 ++- apps/desktop/src/components/ui/zoomable.tsx | 3 ++- 8 files changed, 24 insertions(+), 14 deletions(-) diff --git a/apps/desktop/electron/git-worktree-ops.test.ts b/apps/desktop/electron/git-worktree-ops.test.ts index 0149088ff8..0c4d94c301 100644 --- a/apps/desktop/electron/git-worktree-ops.test.ts +++ b/apps/desktop/electron/git-worktree-ops.test.ts @@ -328,7 +328,10 @@ test('addWorktree: base origin/main does not set up upstream tracking', async () function seedRemoteAndClone(label, branches) { const remoteDir = fs.mkdtempSync(path.join(os.tmpdir(), `hermes-${label}-remote-`)) const cloneDir = fs.mkdtempSync(path.join(os.tmpdir(), `hermes-${label}-clone-`)) - const remoteGit = (...args) => execFileSync('git', ['-C', remoteDir, ...args]).toString().trim() + const remoteGit = (...args) => + execFileSync('git', ['-C', remoteDir, ...args]) + .toString() + .trim() execFileSync('git', ['init', '-b', 'main', remoteDir]) remoteGit('-c', 'user.email=hermes@localhost', '-c', 'user.name=Hermes', 'commit', '--allow-empty', '-m', 'root') @@ -382,7 +385,10 @@ test('addWorktree: a remote branch becomes a local branch tracking it', async () try { const result = await addWorktree(cloneDir, { existingBranch: 'origin/teammate-work' }, 'git') - const inTree = (...args) => execFileSync('git', ['-C', result.path, ...args]).toString().trim() + const inTree = (...args) => + execFileSync('git', ['-C', result.path, ...args]) + .toString() + .trim() // The worktree is on a local branch that has the name of the remote one. It // is not on a detached HEAD, which is the result of a checkout of @@ -402,7 +408,10 @@ test('addWorktree: a remote branch becomes a local branch tracking it', async () test('addWorktree: a remote default branch gets its own worktree, not a home switch', async () => { const { cloneDir, remoteDir } = seedRemoteAndClone('convert-remote-default', []) - const git = (...args) => execFileSync('git', ['-C', cloneDir, ...args]).toString().trim() + const git = (...args) => + execFileSync('git', ['-C', cloneDir, ...args]) + .toString() + .trim() try { // Move the main checkout off `main`, which makes "origin/main" convertible. diff --git a/apps/desktop/src/app/chat/sidebar/index.tsx b/apps/desktop/src/app/chat/sidebar/index.tsx index 30f07be115..a6cee59ea0 100644 --- a/apps/desktop/src/app/chat/sidebar/index.tsx +++ b/apps/desktop/src/app/chat/sidebar/index.tsx @@ -1335,9 +1335,7 @@ export function ChatSidebar({ headerAction={ inProject && enteredProject ? (
- {enteredProject.path && ( - - )} + {enteredProject.path && } {/* Home has no folder and no record to rename, theme, or delete. */} {!enteredProject.isNoProject && ( - (value.toLowerCase().includes(search.toLowerCase()) ? 1 : 0)} - > + (value.toLowerCase().includes(search.toLowerCase()) ? 1 : 0)}> {p.worktreeProjectNone} diff --git a/apps/desktop/src/app/right-sidebar/files/remote-picker.tsx b/apps/desktop/src/app/right-sidebar/files/remote-picker.tsx index a42bb9a210..85fe59bd33 100644 --- a/apps/desktop/src/app/right-sidebar/files/remote-picker.tsx +++ b/apps/desktop/src/app/right-sidebar/files/remote-picker.tsx @@ -121,7 +121,10 @@ export function RemoteFolderPicker() { return ( !open && close()} open={Boolean(pending)}> - +
{pending?.title || r.remotePickerTitle} {r.remotePickerDescription} diff --git a/apps/desktop/src/app/updates-overlay.tsx b/apps/desktop/src/app/updates-overlay.tsx index ec5009f5a7..14339f0373 100644 --- a/apps/desktop/src/app/updates-overlay.tsx +++ b/apps/desktop/src/app/updates-overlay.tsx @@ -104,7 +104,8 @@ export function UpdatesOverlay() { {/* This dialog has no inputs, so Radix's default autofocus would land on the close button and trigger its tooltip immediately on open. */} diff --git a/apps/desktop/src/components/chat/zoomable-image.tsx b/apps/desktop/src/components/chat/zoomable-image.tsx index fa4d04a7c2..e11ad3cb63 100644 --- a/apps/desktop/src/components/chat/zoomable-image.tsx +++ b/apps/desktop/src/components/chat/zoomable-image.tsx @@ -79,7 +79,8 @@ export function ImageLightbox({ return (
diff --git a/apps/desktop/src/components/ui/zoomable.tsx b/apps/desktop/src/components/ui/zoomable.tsx index 4800cc3e0f..63801b9c59 100644 --- a/apps/desktop/src/components/ui/zoomable.tsx +++ b/apps/desktop/src/components/ui/zoomable.tsx @@ -80,7 +80,8 @@ function ZoomPanViewer({ return (