From 77efa5aeebd9a2d35e10815568445a8888d74d45 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Fri, 23 Oct 2026 21:08:15 -0700 Subject: [PATCH] refactor: colocate remote runtime error classification (#33024) --- config/reliability-gates.jsonc | 6 +++--- config/scripts/ci-shard-timings.json | 2 +- config/scripts/pr-e2e-route-contracts.test.mjs | 2 +- src/main/browser/browser-host-admission-recovery.ts | 2 +- .../lifecycle/orcad-managed-tunnel-identity.ts | 2 +- src/main/skills/skill-remote-install-service.ts | 2 +- ...e-runtime-outage-toast-flood-and-stuck-reconnect.test.ts | 2 +- .../terminal-pane/remote-runtime-pty-transport.ts | 2 +- .../src/runtime/remote-runtime-terminal-multiplexer-base.ts | 2 +- .../src/runtime/runtime-file-write-disk-precondition.ts | 2 +- .../web-session-terminal-orphan-recovery-adoption.ts | 2 +- src/renderer/src/startup/startup-web-host-unreachable.ts | 2 +- .../worktrees/teardown/host-worktree-removal-state.ts | 2 +- src/shared/remote-runtime-transport-error-agreement.test.ts | 2 +- .../remote-runtime-shared-control-auth-refusal.test.ts | 2 +- .../remote-runtime-client-error-classification.test.ts | 0 .../remote-runtime-client-error-classification.ts | 0 .../remote-runtime/remote-runtime-connect-bound.test.ts | 2 +- .../remote-runtime-subscription-connect-bound.test.ts | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) rename src/shared/{ => remote-runtime}/remote-runtime-client-error-classification.test.ts (100%) rename src/shared/{ => remote-runtime}/remote-runtime-client-error-classification.ts (100%) diff --git a/config/reliability-gates.jsonc b/config/reliability-gates.jsonc index 55e41534060..a26a0bdc115 100644 --- a/config/reliability-gates.jsonc +++ b/config/reliability-gates.jsonc @@ -13317,7 +13317,7 @@ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/startup/ssh-startup-reconnect.test.ts src/renderer/src/lib/resolved-worktree-execution-host.test.ts src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts src/renderer/src/runtime/sync-runtime-graph-scheduling.test.ts src/renderer/src/components/terminal-pane/use-terminal-pane-lifecycle.test.ts src/renderer/src/components/terminal-pane/pty-connection-spawn-and-startup.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts src/renderer/src/runtime/web-session-terminal-handle-events.test.ts src/renderer/src/store/slices/terminal-pty-identity-replacement.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport-reattach-admission.test.ts src/renderer/src/components/terminal-pane/pty-transport-detach-attach-handoff.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/terminal-error-accumulation.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-attach-subscription.test.ts --reporter=dot", - "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-attach-subscription.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-expired-pane-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-recovery-state.test.ts src/renderer/src/components/terminal-pane/TerminalRemoteRuntimeReconnectBanner.test.tsx src/renderer/src/components/terminal-pane/terminal-remote-runtime-recovery-ui-state.test.ts src/shared/remote-runtime-socket-liveness.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts src/shared/remote-runtime-client-error-classification.test.ts src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts src/main/runtime/rpc/methods/terminal-create-idempotency.test.ts src/main/runtime/orca-runtime-terminal-create-idempotency.test.ts", + "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-attach-subscription.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-expired-pane-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-recovery-state.test.ts src/renderer/src/components/terminal-pane/TerminalRemoteRuntimeReconnectBanner.test.tsx src/renderer/src/components/terminal-pane/terminal-remote-runtime-recovery-ui-state.test.ts src/shared/remote-runtime-socket-liveness.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts src/main/runtime/rpc/methods/terminal-create-idempotency.test.ts src/main/runtime/orca-runtime-terminal-create-idempotency.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/hooks/ipc-events/direct-ssh-connect-reply-routing.test.ts src/renderer/src/store/slices/terminals-hydration.test.ts src/renderer/src/store/slices/repos-ssh-host-reconciliation.test.ts src/renderer/src/hooks/direct-ssh-state-routing.test.ts src/renderer/src/components/terminal-pane/pty-connection-spawn-and-startup.test.ts src/renderer/src/components/terminal-pane/terminal-pane-tab-detach.test.ts --reporter=dot", "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/ssh/ssh.test.ts src/main/ipc/worktrees-ssh-repo-owner-resolution.test.ts src/main/ipc/worktrees-lineage-hydration.test.ts src/main/runtime/public-ssh-state.test.ts src/main/ssh/connection/ssh-connection-manager.test.ts src/main/ssh/connection/ssh-connection.test.ts src/main/ssh/ssh-provider-authority.test.ts src/preload/ssh-authority-forwarding.test.ts src/renderer/src/runtime/runtime-client-events.test.ts src/renderer/src/runtime/runtime-environment-ssh-state.test.ts src/shared/ssh-retained-payload-admission.test.ts --reporter=dot", "pnpm exec electron-vite build --mode e2e", @@ -13352,7 +13352,7 @@ "src/shared/remote-runtime-socket-liveness.test.ts", "src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts", "src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts", - "src/shared/remote-runtime-client-error-classification.test.ts", + "src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts", "src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts", "src/main/runtime/rpc/methods/terminal-create-idempotency.test.ts", "src/main/runtime/orca-runtime-terminal-create-idempotency.test.ts", @@ -13673,7 +13673,7 @@ "date": "2026-07-21", "runner": "local", "platform": "macos", - "command": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-attach-subscription.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-expired-pane-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-recovery-state.test.ts src/renderer/src/components/terminal-pane/TerminalRemoteRuntimeReconnectBanner.test.tsx src/renderer/src/components/terminal-pane/terminal-remote-runtime-recovery-ui-state.test.ts src/shared/remote-runtime-socket-liveness.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts src/shared/remote-runtime-client-error-classification.test.ts src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts src/main/runtime/rpc/methods/terminal-create-idempotency.test.ts src/main/runtime/orca-runtime-terminal-create-idempotency.test.ts", + "command": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-attach-subscription.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-expired-pane-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-recovery-state.test.ts src/renderer/src/components/terminal-pane/TerminalRemoteRuntimeReconnectBanner.test.tsx src/renderer/src/components/terminal-pane/terminal-remote-runtime-recovery-ui-state.test.ts src/shared/remote-runtime-socket-liveness.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts src/main/runtime/rpc/methods/terminal-create-idempotency.test.ts src/main/runtime/orca-runtime-terminal-create-idempotency.test.ts", "result": "passed", "durationSeconds": 5, "summary": "Eleven fault-injection and recovery-UI files and 127 tests passed, covering suspended heartbeat clocks, stale socket, PTY, and create generations, canonical pre-ready close recovery with one replacement subscription, cold and repeated PTY reattachment, authoritative health, bounded PTY and terminal-create recovery, post-probe timeout clipping, manually retryable create cutoff, accurate capability-probe failures, same-PTY manual reconnect, pane-state cleanup, fatal error deduplication, stable create identity, cross-process PTY adoption, and fail-closed legacy inventory." diff --git a/config/scripts/ci-shard-timings.json b/config/scripts/ci-shard-timings.json index 1070880ce79..2440064e870 100644 --- a/config/scripts/ci-shard-timings.json +++ b/config/scripts/ci-shard-timings.json @@ -11784,7 +11784,7 @@ "src/shared/remote-pairing-address.test.ts": 239, "src/shared/remote-pairing-verification.test.ts": 202, "src/shared/remote-rpc-content-budget.test.ts": 95, - "src/shared/remote-runtime-client-error-classification.test.ts": 42, + "src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts": 42, "src/shared/remote-runtime-client.test.ts": 5160, "src/shared/remote-runtime/remote-runtime-connect-bound.test.ts": 572, "src/shared/remote-runtime-memory-limits.test.ts": 120, diff --git a/config/scripts/pr-e2e-route-contracts.test.mjs b/config/scripts/pr-e2e-route-contracts.test.mjs index 2d03f20b0a9..99a391631aa 100644 --- a/config/scripts/pr-e2e-route-contracts.test.mjs +++ b/config/scripts/pr-e2e-route-contracts.test.mjs @@ -511,7 +511,7 @@ describe('managed-SSH remote sources routing', () => { 'src/main/ipc/runtime-environments/runtime-environment-status-probe.ts', 'src/main/ipc/runtime-environments/orcad-runtime-lifecycle-handlers.ts', 'src/shared/protocol-version.ts', - 'src/shared/remote-runtime-client-error-classification.ts', + 'src/shared/remote-runtime/remote-runtime-client-error-classification.ts', // #30047 and #30060: sidebar sleep and project removal. 'src/renderer/src/components/sidebar/sleep-worktree-flow.ts', 'src/renderer/src/components/sidebar/ssh-host-remove-resolution.ts', diff --git a/src/main/browser/browser-host-admission-recovery.ts b/src/main/browser/browser-host-admission-recovery.ts index baf75f86818..d4a5e5f6c17 100644 --- a/src/main/browser/browser-host-admission-recovery.ts +++ b/src/main/browser/browser-host-admission-recovery.ts @@ -3,7 +3,7 @@ import { RemoteRuntimeClientError } from '../../shared/remote-runtime-client-err import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../shared/remote-runtime-client-error-classification' +} from '../../shared/remote-runtime/remote-runtime-client-error-classification' import { nextBrowserHostReconnectDelay } from './browser-host-lease-reconnect-delay' import type { BrowserHostReconnectDelay } from './browser-host-lease-reconnect-delay' diff --git a/src/main/managed-server/lifecycle/orcad-managed-tunnel-identity.ts b/src/main/managed-server/lifecycle/orcad-managed-tunnel-identity.ts index 577bca642a0..d1e07bf9553 100644 --- a/src/main/managed-server/lifecycle/orcad-managed-tunnel-identity.ts +++ b/src/main/managed-server/lifecycle/orcad-managed-tunnel-identity.ts @@ -8,7 +8,7 @@ import { ORCAD_MANAGED_REMOTE_PORT } from '../../../shared/orcad-managed-runtime import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../../shared/remote-runtime-client-error-classification' +} from '../../../shared/remote-runtime/remote-runtime-client-error-classification' import { RemoteRuntimeClientError } from '../../../shared/remote-runtime-client-error' import { getPreferredPairedRuntimeConnection, diff --git a/src/main/skills/skill-remote-install-service.ts b/src/main/skills/skill-remote-install-service.ts index ff24d5939bd..3d02677b116 100644 --- a/src/main/skills/skill-remote-install-service.ts +++ b/src/main/skills/skill-remote-install-service.ts @@ -28,7 +28,7 @@ import { retrySkillTransferRpc } from './skill-transfer-rpc-retry' import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../shared/remote-runtime-client-error-classification' +} from '../../shared/remote-runtime/remote-runtime-client-error-classification' const DIRECT_DOWNLOAD_FAILURE = 'skill-download-transport-failed' const DEVELOPMENT_DOWNLOAD_POLICY_FAILURES = new Set([ diff --git a/src/renderer/src/components/terminal-pane/remote-runtime-outage-toast-flood-and-stuck-reconnect.test.ts b/src/renderer/src/components/terminal-pane/remote-runtime-outage-toast-flood-and-stuck-reconnect.test.ts index 9efd5ebadcd..e40d73951c2 100644 --- a/src/renderer/src/components/terminal-pane/remote-runtime-outage-toast-flood-and-stuck-reconnect.test.ts +++ b/src/renderer/src/components/terminal-pane/remote-runtime-outage-toast-flood-and-stuck-reconnect.test.ts @@ -197,7 +197,7 @@ describe('remote runtime outage: toast flood and stuck reconnect (issue3)', () = it('sanity: the exact reported timeout+funnel toast text classifies as recoverable, so flood text must come from unclassified surfaces', async () => { const { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike } = - await import('../../../../shared/remote-runtime-client-error-classification') + await import('../../../../shared/remote-runtime/remote-runtime-client-error-classification') const rendererSide = toRemoteRuntimeClientErrorLike( electronIpcRejection('RemoteRuntimeClientError', TIMEOUT_WITH_TAILSCALE_HINT) ) diff --git a/src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts b/src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts index 1c96c520d89..0720769eb9f 100644 --- a/src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts +++ b/src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts @@ -19,7 +19,7 @@ import { isRecoverableRemoteRuntimeConnectionError, isRuntimeRpcQueueOverloadError, toRemoteRuntimeClientErrorLike -} from '../../../../shared/remote-runtime-client-error-classification' +} from '../../../../shared/remote-runtime/remote-runtime-client-error-classification' import type { RuntimeCreateAgentSessionResult, RuntimeEnsureAgentSessionResult diff --git a/src/renderer/src/runtime/remote-runtime-terminal-multiplexer-base.ts b/src/renderer/src/runtime/remote-runtime-terminal-multiplexer-base.ts index 1a125189101..530ddda11da 100644 --- a/src/renderer/src/runtime/remote-runtime-terminal-multiplexer-base.ts +++ b/src/renderer/src/runtime/remote-runtime-terminal-multiplexer-base.ts @@ -1,5 +1,5 @@ import type { RuntimeRpcResponse } from '../../../shared/runtime-rpc-envelope' -import { isRecoverableRemoteRuntimeConnectionError } from '../../../shared/remote-runtime-client-error-classification' +import { isRecoverableRemoteRuntimeConnectionError } from '../../../shared/remote-runtime/remote-runtime-client-error-classification' import { encodeTerminalStreamFrame, type TerminalStreamOpcode diff --git a/src/renderer/src/runtime/runtime-file-write-disk-precondition.ts b/src/renderer/src/runtime/runtime-file-write-disk-precondition.ts index 172cc82978a..d49f5eb16ef 100644 --- a/src/renderer/src/runtime/runtime-file-write-disk-precondition.ts +++ b/src/renderer/src/runtime/runtime-file-write-disk-precondition.ts @@ -18,7 +18,7 @@ import { import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../../shared/remote-runtime-client-error-classification' +} from '../../../shared/remote-runtime/remote-runtime-client-error-classification' import { callRuntimeFileMutationWithCapabilities, isRuntimeConnectionChangedError diff --git a/src/renderer/src/runtime/web-session-terminal-orphan-recovery-adoption.ts b/src/renderer/src/runtime/web-session-terminal-orphan-recovery-adoption.ts index 3e2c9922258..581ebe3e08e 100644 --- a/src/renderer/src/runtime/web-session-terminal-orphan-recovery-adoption.ts +++ b/src/renderer/src/runtime/web-session-terminal-orphan-recovery-adoption.ts @@ -7,7 +7,7 @@ import type { RuntimeRpcResponse } from '../../../shared/runtime-rpc-envelope' import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../../shared/remote-runtime-client-error-classification' +} from '../../../shared/remote-runtime/remote-runtime-client-error-classification' import { hasRuntimeRpcErrorCode } from '../../../shared/runtime-rpc-error-code' import { cacheStableSurfaceRecoveryFailure } from './web-session-terminal-orphan-recovery-cache' import { runInTerminalRecoveryRpcLane } from './web-session-terminal-orphan-recovery-rpc-lane' diff --git a/src/renderer/src/startup/startup-web-host-unreachable.ts b/src/renderer/src/startup/startup-web-host-unreachable.ts index 9724a317704..c86344c487e 100644 --- a/src/renderer/src/startup/startup-web-host-unreachable.ts +++ b/src/renderer/src/startup/startup-web-host-unreachable.ts @@ -4,7 +4,7 @@ import { isWebClient } from '../components/sidebar/worktree-card-model' import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../../shared/remote-runtime-client-error-classification' +} from '../../../shared/remote-runtime/remote-runtime-client-error-classification' import type { RuntimeHostStatusSnapshot } from '../../../shared/runtime-host-status' // Web transport messages the shared classifier doesn't list: the connection waiter's deadline and diff --git a/src/renderer/src/store/slices/worktrees/teardown/host-worktree-removal-state.ts b/src/renderer/src/store/slices/worktrees/teardown/host-worktree-removal-state.ts index 14572cf91d2..09e0c4ceed2 100644 --- a/src/renderer/src/store/slices/worktrees/teardown/host-worktree-removal-state.ts +++ b/src/renderer/src/store/slices/worktrees/teardown/host-worktree-removal-state.ts @@ -6,7 +6,7 @@ import { isRecoverableRemoteRuntimeConnectionError, isRuntimeRpcQueueOverloadError, toRemoteRuntimeClientErrorLike -} from '../../../../../../shared/remote-runtime-client-error-classification' +} from '../../../../../../shared/remote-runtime/remote-runtime-client-error-classification' import { getRepoIdFromWorktreeId } from '../../../../../../shared/worktree/id' import type { Worktree } from '../../../../../../shared/worktree/types' import type { WorktreeSliceGet } from '../listing/worktree-slice-types' diff --git a/src/shared/remote-runtime-transport-error-agreement.test.ts b/src/shared/remote-runtime-transport-error-agreement.test.ts index 48f9c50a366..9045110f361 100644 --- a/src/shared/remote-runtime-transport-error-agreement.test.ts +++ b/src/shared/remote-runtime-transport-error-agreement.test.ts @@ -28,7 +28,7 @@ import { isRuntimeRpcQueueOverloadError, toRemoteRuntimeClientErrorLike, type RemoteRuntimeClientErrorLike -} from './remote-runtime-client-error-classification' +} from './remote-runtime/remote-runtime-client-error-classification' import { WS_HANDSHAKE_TIMEOUT_MESSAGE, remoteRuntimeConnectFailureMessage diff --git a/src/shared/remote-runtime/control/remote-runtime-shared-control-auth-refusal.test.ts b/src/shared/remote-runtime/control/remote-runtime-shared-control-auth-refusal.test.ts index b83f573bd4b..bde3f44c9fc 100644 --- a/src/shared/remote-runtime/control/remote-runtime-shared-control-auth-refusal.test.ts +++ b/src/shared/remote-runtime/control/remote-runtime-shared-control-auth-refusal.test.ts @@ -1,6 +1,6 @@ import { afterEach, describe, expect, it, vi } from 'vitest' import { RemoteRuntimeSharedControlConnection } from './remote-runtime-shared-control-connection' -import { isRecoverableRemoteRuntimeConnectionError } from '../../remote-runtime-client-error-classification' +import { isRecoverableRemoteRuntimeConnectionError } from '../remote-runtime-client-error-classification' import { closeSharedControlTestServers, createSharedControlTestServer diff --git a/src/shared/remote-runtime-client-error-classification.test.ts b/src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts similarity index 100% rename from src/shared/remote-runtime-client-error-classification.test.ts rename to src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts diff --git a/src/shared/remote-runtime-client-error-classification.ts b/src/shared/remote-runtime/remote-runtime-client-error-classification.ts similarity index 100% rename from src/shared/remote-runtime-client-error-classification.ts rename to src/shared/remote-runtime/remote-runtime-client-error-classification.ts diff --git a/src/shared/remote-runtime/remote-runtime-connect-bound.test.ts b/src/shared/remote-runtime/remote-runtime-connect-bound.test.ts index 831e679659f..c9282f9e74e 100644 --- a/src/shared/remote-runtime/remote-runtime-connect-bound.test.ts +++ b/src/shared/remote-runtime/remote-runtime-connect-bound.test.ts @@ -3,7 +3,7 @@ import { createServer, type Server, type Socket } from 'node:net' import { afterEach, describe, expect, it, vi } from 'vitest' import { generateKeyPair, publicKeyToBase64 } from '../e2ee-crypto' import type { RemoteRuntimeClientError } from '../remote-runtime-client-error' -import { isRecoverableRemoteRuntimeConnectionError } from '../remote-runtime-client-error-classification' +import { isRecoverableRemoteRuntimeConnectionError } from './remote-runtime-client-error-classification' import { REMOTE_RUNTIME_CONNECT_TIMEOUT_MS, WS_HANDSHAKE_TIMEOUT_MESSAGE, diff --git a/src/shared/remote-runtime/requests/remote-runtime-subscription-connect-bound.test.ts b/src/shared/remote-runtime/requests/remote-runtime-subscription-connect-bound.test.ts index deed1bd6dca..80ca4a40777 100644 --- a/src/shared/remote-runtime/requests/remote-runtime-subscription-connect-bound.test.ts +++ b/src/shared/remote-runtime/requests/remote-runtime-subscription-connect-bound.test.ts @@ -14,7 +14,7 @@ import { RemoteRuntimeClientError } from '../../remote-runtime-client-error' import { isRecoverableRemoteRuntimeConnectionError, toRemoteRuntimeClientErrorLike -} from '../../remote-runtime-client-error-classification' +} from '../remote-runtime-client-error-classification' import { subscribeRemoteRuntimeTransport } from './remote-runtime-subscription-transport' import { withRemoteRuntimeTailscaleHint } from '../remote-runtime-tailscale-hint'