mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
fix(codex): support app-server plan mode (#622)
* fix(codex): support app-server plan mode * fix(codex): broaden plan mode compatibility checks
This commit is contained in:
@@ -343,4 +343,17 @@ describe('appServerConfig', () => {
|
||||
});
|
||||
expect(params.model).toBeUndefined();
|
||||
});
|
||||
|
||||
it('can suppress collaboration mode while preserving top-level model', () => {
|
||||
const params = buildTurnStartParams({
|
||||
threadId: 'thread-1',
|
||||
message: 'hello',
|
||||
cwd: '/workspace/project',
|
||||
mode: { permissionMode: 'default', model: 'o3', collaborationMode: 'plan' },
|
||||
overrides: { suppressCollaborationMode: true }
|
||||
});
|
||||
|
||||
expect(params.collaborationMode).toBeUndefined();
|
||||
expect(params.model).toBe('o3');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user