The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#90140)
hermes-seaeye[bot]eab087c06fd6
diff --git a/apps/desktop/electron/windows-hermes-path.test.ts b/apps/desktop/electron/windows-hermes-path.test.tsindex 76e4d0ac50f..0c49b4a2ac9 100644--- a/apps/desktop/electron/windows-hermes-path.test.ts+++ b/apps/desktop/electron/windows-hermes-path.test.ts@@ -46,10 +46,11 @@ test('buildPathExtCandidates: non-Windows only tries the bare name', () => {})test('chooseUpdaterArgs: gentle --update when both updater runtime files exist', () => {- assert.deepEqual(- chooseUpdaterArgs({ hasBootstrapMarker: true, hasVenvHermes: true, hasVenvPython: true }, 'main'),- ['--update', '--branch', 'main']- )+ assert.deepEqual(chooseUpdaterArgs({ hasBootstrapMarker: true, hasVenvHermes: true, hasVenvPython: true }, 'main'), [+ '--update',+ '--branch',+ 'main'+ ])})test('chooseUpdaterArgs: marker-only install uses --repair when the venv is gone', () => {@@ -60,14 +61,16 @@ test('chooseUpdaterArgs: marker-only install uses --repair when the venv is gone})test('chooseUpdaterArgs: partial updater runtimes use --repair', () => {- assert.deepEqual(- chooseUpdaterArgs({ hasBootstrapMarker: true, hasVenvHermes: false, hasVenvPython: true }, 'main'),- ['--repair', '--branch', 'main']- )- assert.deepEqual(- chooseUpdaterArgs({ hasBootstrapMarker: true, hasVenvHermes: true, hasVenvPython: false }, 'main'),- ['--repair', '--branch', 'main']- )+ assert.deepEqual(chooseUpdaterArgs({ hasBootstrapMarker: true, hasVenvHermes: false, hasVenvPython: true }, 'main'), [+ '--repair',+ '--branch',+ 'main'+ ])+ assert.deepEqual(chooseUpdaterArgs({ hasBootstrapMarker: true, hasVenvHermes: true, hasVenvPython: false }, 'main'), [+ '--repair',+ '--branch',+ 'main'+ ])})test('chooseUpdaterArgs: passes the branch through unchanged in both modes', () => {diff --git a/apps/desktop/src/app/chat/composer/focus.ts b/apps/desktop/src/app/chat/composer/focus.tsindex 6e450c10f89..023afe92dd6 100644--- a/apps/desktop/src/app/chat/composer/focus.ts+++ b/apps/desktop/src/app/chat/composer/focus.ts@@ -311,8 +311,8 @@ export const requestComposerSubmit = (}const resolvedTarget = resolve(target)- const surfaceId =- requestedSurfaceId === undefined ? getVisibleComposerSurfaceId(resolvedTarget) : requestedSurfaceId++ const surfaceId = requestedSurfaceId === undefined ? getVisibleComposerSurfaceId(resolvedTarget) : requestedSurfaceId// Fail closed: without an exact visible surface identity, broadcasting a// submit could make more than one keep-alive/new-chat composer claim it.diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsxindex c278356d05a..b05a47a5818 100644--- a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx+++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx@@ -148,6 +148,7 @@ describe('useComposerSubmit external request routing', () => {const visibleMain = renderSubmitHook({ sessionKey: 'session-a' })const hiddenMain = renderSubmitHook({ sessionKey: 'session-b', visible: false })const visibleTile = renderSubmitHook({ scopeTarget: 'tile:project-b', sessionKey: 'tile-session' })+const hiddenTile = renderSubmitHook({scopeTarget: 'tile:project-c',sessionKey: 'other-tile',diff --git a/apps/desktop/src/store/review.ts b/apps/desktop/src/store/review.tsindex 11428d20d15..9704ac338ea 100644--- a/apps/desktop/src/store/review.ts+++ b/apps/desktop/src/store/review.ts@@ -285,6 +285,7 @@ export function toggleReview(scopeCwd: null | string = null, scopeTarget = 'main// — never the docked open state, which a 0px track would render invisibly.if (matchesQuery(SIDEBAR_COLLAPSE_MEDIA_QUERY)) {const target = scopeTarget.trim() || 'main'+const originChanged =($reviewScopeCwd.get() ?? null) !== (scopeCwd?.trim() || null) || $reviewScopeTarget.get() !== targetdiff --git a/apps/desktop/src/store/translucency.test.ts b/apps/desktop/src/store/translucency.test.tsindex 538db4faab5..a2861a952fa 100644--- a/apps/desktop/src/store/translucency.test.ts+++ b/apps/desktop/src/store/translucency.test.ts@@ -194,7 +194,7 @@ describe('glass mode', () => {setTranslucency(TRANSLUCENCY_MIN)})- it('rejects glass when the platform cannot back it', () => {+ it('rejects glass when the platform cannot back it', () => {setTranslucency(50)setTranslucencyMode('glass')diff --git a/ui-tui/packages/hermes-ink/src/ink/ansi-transition.test.ts b/ui-tui/packages/hermes-ink/src/ink/ansi-transition.test.tsindex 88eaa2ab370..63a50873278 100644--- a/ui-tui/packages/hermes-ink/src/ink/ansi-transition.test.ts+++ b/ui-tui/packages/hermes-ink/src/ink/ansi-transition.test.ts@@ -54,10 +54,7 @@ describe('transitionAnsiCodes weight family', () => {const compound = (params: string) => ({ type: 'ansi' as const, code: `${ESC}[${params}m`, endCode: `${ESC}[0m` })it('compound bold → compound dim resets the weight family', () => {- expect(codes(transitionAnsiCodes([compound('1;31')], [compound('2;37')]))).toEqual([- `${ESC}[22m`,- `${ESC}[2;37m`- ])+ expect(codes(transitionAnsiCodes([compound('1;31')], [compound('2;37')]))).toEqual([`${ESC}[22m`, `${ESC}[2;37m`])})it('compound bold → compound bold (color change) stays minimal', () => {diff --git a/ui-tui/packages/hermes-ink/src/ink/ansi-transition.ts b/ui-tui/packages/hermes-ink/src/ink/ansi-transition.tsindex f534315dcc2..e7fc83bb876 100644--- a/ui-tui/packages/hermes-ink/src/ink/ansi-transition.ts+++ b/ui-tui/packages/hermes-ink/src/ink/ansi-transition.ts@@ -48,6 +48,7 @@ function weightAtoms(code: AnsiCode): string[] {// Extended color: consume the argument sub-params so their literal// 2/5 aren't read as weight atoms.i += parts[i + 1] === '5' ? 2 : parts[i + 1] === '2' ? 4 : 0+continue}@@ -80,6 +81,7 @@ export function transitionAnsiCodes(from: AnsiCode[], to: AnsiCode[]): AnsiCode[for (const atom of fromAtoms) {if (!toAtoms.has(atom)) {removesWeight = true+break}}@@ -94,7 +96,10 @@ export function transitionAnsiCodes(from: AnsiCode[], to: AnsiCode[]): AnsiCode[// in full (a compound re-asserts its color too — redundant bytes, never// wrong). The rest of the style diffs normally with the weight carriers// stripped from both sides.- const rest = diffAnsiCodes(from.filter(code => !carriesWeight(code)), to.filter(code => !carriesWeight(code)))+ const rest = diffAnsiCodes(+ from.filter(code => !carriesWeight(code)),+ to.filter(code => !carriesWeight(code))+ )return [WEIGHT_RESET, ...rest, ...to.filter(carriesWeight)]}