Skip to content

Commit 7677b5b

Browse files
committed
Exercise aggregate specialist approval in an interactive turn
1 parent c62fba0 commit 7677b5b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎tests/tuistory/automatic-specialists.tuistory.test.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
createTempAutohandHome,
1414
createMockSubAgentCatalogFetchPreload,
1515
launchBuiltAutohand,
16+
exitInteractive,
1617
waitForExit,
1718
type MockOllamaServer,
1819
type TuistoryTempState,
@@ -202,6 +203,7 @@ describe('automatic specialist orchestration', () => {
202203
openrouter: { baseUrl: server.baseUrl },
203204
agent: { maxIterations: 5, sessionRetryLimit: 0 },
204205
features: { automaticSpecialists: true },
206+
ui: { defaultInteractionMode: 'default' },
205207
},
206208
});
207209
tempStates.push(state);
@@ -212,20 +214,23 @@ describe('automatic specialist orchestration', () => {
212214
const session = await launchBuiltAutohand([
213215
'--path', state.workspaceRoot,
214216
'--config', state.configPath,
215-
'-p', 'Bring a team of ui and security agents to inspect this repo.',
216217
], {
217218
autohandHome: state.autohandHome,
218219
cwd: state.workspaceRoot,
219220
env: { NODE_OPTIONS: nodeOptions },
220221
waitForDataTimeout: 15_000,
221222
});
222223
sessions.push(session);
224+
await session.waitForText('❯', { timeout: 20_000 });
225+
await session.type('Bring a team of ui and security agents to inspect this repo.');
226+
await session.press('enter');
223227

224228
await session.waitForText('Install these resolved specialists from the default Autohand catalog?', {
225229
timeout: 20_000,
226230
});
227231
await session.press('enter');
228-
await waitForExit(session, 60_000);
232+
await session.waitForText('AGGREGATE_APPROVAL_OK', { timeout: 60_000 });
233+
await exitInteractive(session);
229234
const output = session.readAll();
230235

231236
expect(session.exitInfo?.exitCode, output).toBe(0);

0 commit comments

Comments
 (0)