fmt(js): npm run fix on merge (#86379)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
56f1afc834
commit
e1098cbb18
@@ -32,7 +32,10 @@ test('windowsQuote doubles embedded quotes', () => {
|
||||
})
|
||||
|
||||
test('terminalScriptEnv drops PATH in any casing and keeps the rest', () => {
|
||||
const env = terminalScriptEnv({ Path: 'C:\\junk', PATH: '/junk', PYTHONPATH: '/repo', PYTHONUTF8: '1' }, '/home/b/.hermes')
|
||||
const env = terminalScriptEnv(
|
||||
{ Path: 'C:\\junk', PATH: '/junk', PYTHONPATH: '/repo', PYTHONUTF8: '1' },
|
||||
'/home/b/.hermes'
|
||||
)
|
||||
|
||||
assert.deepEqual(env, { PYTHONPATH: '/repo', PYTHONUTF8: '1', HERMES_HOME: '/home/b/.hermes' })
|
||||
})
|
||||
|
||||
@@ -213,7 +213,13 @@ import {
|
||||
} from './ssh-connection'
|
||||
import { createStreamThrottle } from './stream-throttle'
|
||||
import { nativeOverlayWidth as computeNativeOverlayWidth, macTitleBarOverlayHeight } from './titlebar-overlay-width'
|
||||
import { compareApiUrl, parseCompareBehindCount, resolveBehindCount, resolveCommitLogSelection, shouldCountCommits } from './update-count'
|
||||
import {
|
||||
compareApiUrl,
|
||||
parseCompareBehindCount,
|
||||
resolveBehindCount,
|
||||
resolveCommitLogSelection,
|
||||
shouldCountCommits
|
||||
} from './update-count'
|
||||
import { waitForUpdateClearance } from './update-gate'
|
||||
import { readLiveUpdateMarker, updateHandoffConflict, writeUpdateMarker } from './update-marker'
|
||||
import { isOfficialSshRemote, OFFICIAL_REPO_HTTPS_URL } from './update-remote'
|
||||
|
||||
@@ -6,7 +6,13 @@ import path from 'node:path'
|
||||
|
||||
import { test } from 'vitest'
|
||||
|
||||
import { compareApiUrl, parseCompareBehindCount, resolveBehindCount, resolveCommitLogSelection, shouldCountCommits } from './update-count'
|
||||
import {
|
||||
compareApiUrl,
|
||||
parseCompareBehindCount,
|
||||
resolveBehindCount,
|
||||
resolveCommitLogSelection,
|
||||
shouldCountCommits
|
||||
} from './update-count'
|
||||
|
||||
function createTempGitRepo() {
|
||||
const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'hermes-update-count-'))
|
||||
|
||||
@@ -253,7 +253,11 @@ function useSessionActions({
|
||||
triggerHaptic('selection')
|
||||
// Read the row lazily: subscribing every row's menu to $sessions
|
||||
// would re-render the whole sidebar on each session update.
|
||||
const cwd = $sessions.get().find(s => sessionMatchesStoredId(s, sessionId))?.cwd?.trim() || undefined
|
||||
const cwd =
|
||||
$sessions
|
||||
.get()
|
||||
.find(s => sessionMatchesStoredId(s, sessionId))
|
||||
?.cwd?.trim() || undefined
|
||||
|
||||
void openSessionInTerminal(sessionId, { cwd, profile })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user