fmt(js): npm run fix on merge (#120400)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-09-23 15:53:24 +00:00
committed by GitHub
parent 8191aa0660
commit 6cd727bbfa
7 changed files with 9 additions and 0 deletions

View File

@@ -138,6 +138,7 @@ describe('closeWorkspaceTab', () => {
it('a focused remote bot screen swallows ⌘W: no terminal tab, no session tab closes', async () => {
loadedMainOnly()
const combo = await import('@/lib/keybinds/combo')
const spy = vi
.spyOn(combo, 'isFocusWithin')
.mockImplementation(selector => selector === '[data-remote-screen]' || selector === '[data-terminal]')

View File

@@ -133,6 +133,7 @@ describe('mergeOlderTranscriptPage', () => {
chat('five', 5),
chat('six', 6)
]
const fetched = [
chat('four-refetched', 4),
chat('five-refetched', 5),

View File

@@ -81,6 +81,7 @@ export async function resolveSiblingWsUrl(
RESOLVE_TIMEOUT_MS,
'Timed out minting the gateway WebSocket URL'
)
const url = new URL(wsUrl)
if (!url.pathname.endsWith('/api/ws')) {

View File

@@ -70,6 +70,7 @@ export function botForEvent(roster: RosterRow[], event: Pick<RpcEvent, 'connecti
const botProfile = route ? route.targetProfile || route.profile : bot.name
const expected = route?.connectionId ?? null
const actual = event.connectionId ?? null
const sameSource =
expected === actual || (expected === 'local' && actual === null) || (expected === null && actual === 'local')

View File

@@ -87,6 +87,7 @@ afterEach(() => {
it('applies lease events only from the owning host even when profile paths match', () => {
setScreenStatus(botA, status)
const view = renderHook(() => useScreenPortalState(botA))
const human = {
...status.lease,
holder: 'human' as const,

View File

@@ -197,6 +197,7 @@ it('does not hand back while replacing a stream to reconnect the same viewer', a
}
const presented = (params as { viewer_id?: string } | undefined)?.viewer_id
const viewer_id =
presented === 'this-viewer' ? 'this-viewer' : minted++ === 0 ? 'this-viewer' : 'replacement-viewer'
@@ -218,8 +219,10 @@ it('re-attaches in watch mode after the bridge evicts us with 4000, with a bound
const view = render(<BotScreenPane bot={bot} />)
await waitFor(() => expect(sockets).toHaveLength(1))
await act(async () => {})
const observes = () =>
vi.mocked(displayRequest).mock.calls.filter(([, method]) => method === 'display.observe').length
expect(observes()).toBe(1)
act(() => {

View File

@@ -330,6 +330,7 @@ export function BotScreenPane({ bot }: { bot: RosterRow }) {
const result = await displayRequest<{ lease: DisplayLease }>(bot, 'display.lease.acquire', {
viewer_id: viewer.id
})
setScreenLease(bot, result.lease)
if (conn !== 'live') {