mirror of
https://github.com/stablyai/orca.git
synced 2026-10-24 00:04:01 +00:00
test(launch-prompt): build the phone line-carry runtime from the default store, without a cast
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user