refactor(runtime): check session host queries and terminal focus (#28367)

This commit is contained in:
Neil
2026-10-14 22:42:18 -07:00
committed by GitHub
parent acd415a414
commit d0c8bee2e8
8 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { OrcaRuntimeWithGetRuntimeId } from './orca-runtime-get-runtime-id'
import { OrcaRuntimeWithGetRuntimeId } from './workspaces/session-hosts/get-runtime-id'
import type { RuntimeDegradation, RuntimeStatus } from '../../shared/runtime-types'
import {
runtimeBrowserCommandsFactoryIsHeadless,
@@ -1,4 +1,4 @@
import { OrcaRuntimeWithFocusTerminal } from '../orca-runtime-focus-terminal'
import { OrcaRuntimeWithFocusTerminal } from '../terminal/focus/focus-terminal'
import { EXPLICIT_TERMINAL_CLOSE_STOP_TIMEOUT_MS } from '../orca-runtime-core'
import { SSH_PROVIDER_UNREGISTERED_REASON } from '../../../shared/pty-liveness-verdict'
import type { RuntimeTerminalClose } from '../../../shared/runtime-types'
@@ -1,11 +1,10 @@
// @ts-nocheck -- mechanically split from OrcaRuntimeService; behavior is covered by AST equivalence and characterization tests.
import { OrcaRuntimeWithWaitForLeafPtyId } from './terminal/view/renderer-terminal-snapshot'
import type { RuntimeTerminalFocus } from '../../shared/runtime-types'
import { parsePaneKey } from '../../shared/stable-pane-id'
import { getLatestPtyTitle } from './runtime-worktree-status-projection'
import { copySleepingAgentLaunchConfig } from './runtime-agent-launch-resolution'
import { OrcaRuntimeWithWaitForLeafPtyId } from '../view/renderer-terminal-snapshot'
import type { RuntimeTerminalFocus } from '../../../../shared/runtime-types'
import { parsePaneKey } from '../../../../shared/stable-pane-id'
import { getLatestPtyTitle } from '../../runtime-worktree-status-projection'
import { copySleepingAgentLaunchConfig } from '../../runtime-agent-launch-resolution'
export class OrcaRuntimeWithFocusTerminal extends OrcaRuntimeWithWaitForLeafPtyId {
export abstract class OrcaRuntimeWithFocusTerminal extends OrcaRuntimeWithWaitForLeafPtyId {
async focusTerminal(
handle: string,
options: { navigateHost?: boolean } = {}
@@ -1,23 +1,22 @@
// @ts-nocheck -- mechanically split from OrcaRuntimeService; behavior is covered by AST equivalence and characterization tests.
import { OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity } from './orca-runtime-has-exact-persisted-terminal-surface-identity'
import { OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity } from '../../orca-runtime-has-exact-persisted-terminal-surface-identity'
import type {
OrchestrationEnvironmentCallOptions,
OrchestrationWorkerServer
} from './orchestration/environment-transport'
import type { RuntimeOrchestrationEnvelope } from '../../shared/runtime-rpc-envelope'
import type { ExecutionHostId } from '../../shared/execution-host'
} from '../../orchestration/environment-transport'
import type { RuntimeOrchestrationEnvelope } from '../../../../shared/runtime-rpc-envelope'
import type { ExecutionHostId } from '../../../../shared/execution-host'
import {
LOCAL_EXECUTION_HOST_ID,
getRepoExecutionHostId,
parseExecutionHostId,
toSshExecutionHostId
} from '../../shared/execution-host'
import type { RuntimeTerminalSummary } from '../../shared/runtime-types'
import type { ResolvedWorktree } from './runtime-worktree-path-identity'
import { FLOATING_TERMINAL_WORKTREE_ID } from '../../shared/constants'
import type { WorkspaceSessionState } from '../../shared/workspace-session-state-types'
} from '../../../../shared/execution-host'
import type { RuntimeTerminalSummary } from '../../../../shared/runtime-types'
import type { ResolvedWorktree } from '../../runtime-worktree-path-identity'
import { FLOATING_TERMINAL_WORKTREE_ID } from '../../../../shared/constants'
import type { WorkspaceSessionState } from '../../../../shared/workspace-session-state-types'
export class OrcaRuntimeWithGetRuntimeId extends OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity {
export abstract class OrcaRuntimeWithGetRuntimeId extends OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity {
getRuntimeId(): string {
return this.runtimeId
}