* feat: refresh dashboard settings UX and Codex feature toggles Improve settings/tasks mobile layout, model effort validation by agent type, and preset models for GPT 5.5 and Opus 4.7. Store Codex fast mode and goals in config.toml with Claude fastMode session sync and updated docs for Codex 0.133. Co-authored-by: Cursor <cursoragent@cursor.com> * style: apply pre-commit formatting after dashboard settings commit Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
758 B
TypeScript
21 lines
758 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { agentTypeForRole, isEffortSupported } from './settings-effort.js';
|
|
|
|
describe('settings-effort', () => {
|
|
it('maps roles to agent types with defaults', () => {
|
|
expect(agentTypeForRole('owner', {})).toBe('codex');
|
|
expect(agentTypeForRole('reviewer', {})).toBe('claude-code');
|
|
expect(agentTypeForRole('arbiter', {})).toBeNull();
|
|
expect(agentTypeForRole('owner', { OWNER_AGENT_TYPE: 'claude-code' })).toBe(
|
|
'claude-code',
|
|
);
|
|
});
|
|
|
|
it('rejects xhigh for Claude agents', () => {
|
|
expect(isEffortSupported('claude-code', 'xhigh')).toBe(false);
|
|
expect(isEffortSupported('codex', 'xhigh')).toBe(true);
|
|
expect(isEffortSupported('claude-code', '')).toBe(true);
|
|
});
|
|
});
|