mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
feat(codex): support proactive /agent mode (#1172)
This commit is contained in:
@@ -422,6 +422,23 @@ describe('appServerConfig', () => {
|
||||
expect(instructions).toContain('Do not rely on parent turn reasoning settings for spawned agents');
|
||||
});
|
||||
|
||||
it('injects proactive multi-agent instructions when /agent mode is enabled', () => {
|
||||
const params = buildTurnStartParams({
|
||||
threadId: 'thread-1',
|
||||
message: 'work',
|
||||
cwd: '/repo',
|
||||
mode: {
|
||||
permissionMode: 'default',
|
||||
model: 'o3',
|
||||
collaborationMode: 'default',
|
||||
proactiveMultiAgent: true
|
||||
}
|
||||
});
|
||||
|
||||
expect(params.collaborationMode?.settings.developer_instructions)
|
||||
.toContain('Proactive multi-agent delegation is active.');
|
||||
});
|
||||
|
||||
it('rejects collaboration mode payloads without a resolved model', () => {
|
||||
expect(() => buildTurnStartParams({
|
||||
threadId: 'thread-1',
|
||||
|
||||
Reference in New Issue
Block a user