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:
NightWatcher314
2026-05-15 10:56:05 +08:00
committed by GitHub
parent 60af9835b4
commit 66e41c90d4
9 changed files with 480 additions and 19 deletions
@@ -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');
});
});