feat: refresh dashboard settings UX and Codex feature toggles (#153)

* 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>
This commit is contained in:
Eyejoker
2026-05-23 12:18:42 +09:00
committed by GitHub
parent 58e5197dc6
commit fd3145e2a7
37 changed files with 3785 additions and 1910 deletions

View File

@@ -29,6 +29,7 @@ describe('settings-store Codex features', () => {
delete process.env.CODEX_GOALS;
process.env.HOME = tempDir;
process.env.EJCLAW_SETTINGS_HOME = tempDir;
fs.mkdirSync(path.join(tempDir, '.codex'), { recursive: true });
process.chdir(tempDir);
});
@@ -59,17 +60,28 @@ describe('settings-store Codex features', () => {
return `${encode({ alg: 'none', typ: 'JWT' })}.${encode(payload)}.`;
}
it('stores the Codex goals opt-in in the EJClaw .env file', () => {
it('stores Codex goals in ~/.codex/config.toml [features]', () => {
expect(getCodexFeatures()).toEqual({ goals: false });
expect(updateCodexFeatures({ goals: true })).toEqual({ goals: true });
expect(fs.readFileSync(path.join(tempDir, '.env'), 'utf-8')).toContain(
'CODEX_GOALS=true',
);
expect(
fs.readFileSync(path.join(tempDir, '.codex', 'config.toml'), 'utf-8'),
).toContain('goals = true');
expect(updateCodexFeatures({ goals: false })).toEqual({ goals: false });
expect(fs.readFileSync(path.join(tempDir, '.env'), 'utf-8')).toContain(
'CODEX_GOALS=false',
expect(
fs.readFileSync(path.join(tempDir, '.codex', 'config.toml'), 'utf-8'),
).toContain('goals = false');
});
it('still honors legacy CODEX_GOALS=true until migrated', () => {
fs.writeFileSync(path.join(tempDir, '.env'), 'CODEX_GOALS=true\n');
expect(getCodexFeatures()).toEqual({ goals: true });
updateCodexFeatures({ goals: false });
expect(getCodexFeatures()).toEqual({ goals: false });
expect(fs.readFileSync(path.join(tempDir, '.env'), 'utf-8')).not.toContain(
'CODEX_GOALS',
);
});