test: narrow remote input model handler registration (#29747)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-16 09:23:33 -07:00
committed by GitHub
co-authored by OrcaWin
parent 99c72ffa65
commit fea129713d
@@ -1,5 +1,5 @@
import { RpcDispatcher } from '../../src/main/runtime/rpc/dispatcher'
import { TERMINAL_METHODS } from '../../src/main/runtime/rpc/methods/terminal'
import { TERMINAL_MULTIPLEX_METHODS } from '../../src/main/runtime/rpc/methods/terminal/terminal-multiplex-method'
import type { OrcaRuntimeService } from '../../src/main/runtime/orca-runtime'
import {
TerminalStreamOpcode,
@@ -154,7 +154,7 @@ export function createModelLink(writeInput: (text: string) => Promise<unknown>)
void new RpcDispatcher({
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the stub implements every runtime method the terminal multiplex calls and records any it lacks.
runtime: host.runtime as OrcaRuntimeService,
methods: TERMINAL_METHODS
methods: TERMINAL_MULTIPLEX_METHODS
})
.dispatchStreaming(
{