The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style(desktop): import order and braces in the preview act/drive files
Brooklyn Nicholsond02e334b24b1
diff --git a/apps/desktop/src/app/chat/right-rail/preview-act.test.ts b/apps/desktop/src/app/chat/right-rail/preview-act.test.tsindex 9cbfc375bc8..1cb7d67a321 100644--- a/apps/desktop/src/app/chat/right-rail/preview-act.test.ts+++ b/apps/desktop/src/app/chat/right-rail/preview-act.test.ts@@ -3,7 +3,6 @@ import { types } from 'node:util'import { beforeEach, describe, expect, it, vi } from 'vitest'import { isMacPlatform } from '@/lib/platform'-import { $rightRailActiveTabId } from '@/store/layout'import { closeRightRail, openPreview, type PreviewTarget } from '@/store/preview'@@ -333,15 +332,18 @@ describe('actOnActivePreview (drive_preview tool)', () => {const tabId = openBrowserTab()const send = vi.fn()let fieldLen = opts.initial+const isSelectAll = (e: { type: string; keyCode: string; modifiers?: string[] }) =>e.type === 'keyDown' && e.keyCode === 'a' && !!e.modifiers?.lengthsend.mockImplementation((e: { type: string; keyCode: string; modifiers?: string[] }) => {if (isSelectAll(e)) {- if (opts.selectWorks && opts.clearable) fieldLen = 0+ if (opts.selectWorks && opts.clearable) {fieldLen = 0}+return}- if (e.type === 'keyDown' && e.keyCode === 'Backspace' && fieldLen > 0 && opts.clearable) fieldLen--++ if (e.type === 'keyDown' && e.keyCode === 'Backspace' && fieldLen > 0 && opts.clearable) {fieldLen--}})cleanups.push(diff --git a/apps/desktop/src/app/chat/right-rail/preview-act.ts b/apps/desktop/src/app/chat/right-rail/preview-act.tsindex 62167359b38..585b80f9df3 100644--- a/apps/desktop/src/app/chat/right-rail/preview-act.ts+++ b/apps/desktop/src/app/chat/right-rail/preview-act.ts@@ -30,7 +30,7 @@import { actEngineSource, type PreviewActAction, type PreviewActResult } from '@/lib/preview-act/act-in-page'import { watchInPage } from '@/lib/preview-act/watch-in-page'-import { clickAt, clearCharsBack, glideTo, pointerPlaced, pressKey, selectAll, typeText, wheelBy } from './preview-drive'+import { clearCharsBack, clickAt, glideTo, pointerPlaced, pressKey, selectAll, typeText, wheelBy } from './preview-drive'import { activePreviewInput, type PreviewInputHandle } from './preview-input'import { activePreviewNav, type PreviewNavHandle } from './preview-nav'import { activePreviewScriptRunner, type PreviewScriptRunner } from './preview-script-runner'diff --git a/apps/desktop/src/app/chat/right-rail/preview-drive.ts b/apps/desktop/src/app/chat/right-rail/preview-drive.tsindex 10f2d403101..1d5941c8ebb 100644--- a/apps/desktop/src/app/chat/right-rail/preview-drive.ts+++ b/apps/desktop/src/app/chat/right-rail/preview-drive.ts@@ -14,10 +14,10 @@* steps over ~280ms is what Playwright's action cursor settles on too.*/-import type { PreviewInputHandle } from './preview-input'-import { isMacPlatform } from '@/lib/platform'+import type { PreviewInputHandle } from './preview-input'+export interface DrivePoint {x: numbery: number