test(launch-prompt): build the phone line-carry runtime from the default store, without a cast

This commit is contained in:
Brennan Benson
2026-10-02 02:52:48 -07:00
parent a29e42f629
commit 7c0269be54
@@ -42,10 +42,7 @@ describe('OrcaRuntimeService', () => {
// ready, so it keeps the line rather than refuse what main started.
it('starts an agent with a prompt it cannot paste on its line, as main did', async () => {
const spawn = vi.fn().mockResolvedValue({ id: 'pty-agent-long-prompt' })
const runtime = new OrcaRuntimeService({
...store,
getSettings: () => ({ ...store.getSettings(), disabledTuiAgents: [], agentCmdOverrides: {} })
} as never)
const runtime = new OrcaRuntimeService(store)
runtime.setPtyController({
spawn,
write: () => true,