feat: support max reasoning effort and rebuild release

This commit is contained in:
shiyue
2026-08-11 08:11:58 +08:00
parent 70be7eb279
commit e7d28935ef
8 changed files with 107 additions and 12 deletions

View File

@@ -797,7 +797,7 @@ const MCP_PROMPT_RESPONSE_MAX_CHARS = 20000;
// Codex 默认模型优先读取 ~/.codex/config.toml缺失时再回退到旧默认值。
const FALLBACK_CODEX_MODEL = 'gpt-5.4';
const CODEX_REASONING_LEVELS = new Set(['low', 'medium', 'high', 'xhigh', 'ultra']);
const CODEX_REASONING_LEVELS = new Set(['low', 'medium', 'high', 'xhigh', 'max', 'ultra']);
const CCWEB_TITLE_TOOL_INSTRUCTIONS = [
'Use the ccweb title tool sparingly. For a new chat, call "mcp__ccweb__ccweb_set_title" or "ccweb_set_title" once after the user\'s initial request is clear, and set a concise task title.',
'Do not rename the chat for routine progress, substeps, implementation details, or slightly better wording. Rename only when the user\'s primary objective changes substantially and the existing title would be misleading.',
@@ -10347,7 +10347,7 @@ function handleCodexAppServerExit(signature, info = {}) {
function codexAppModelSettings(session) {
const raw = String(session?.model || getDefaultCodexModel() || '').trim();
const match = raw.match(/^(.*)\((low|medium|high|xhigh|ultra)\)\s*$/i);
const match = raw.match(/^(.*)\((low|medium|high|xhigh|max|ultra)\)\s*$/i);
if (!match) return { model: raw || null, effort: null };
return {
model: String(match[1] || '').trim() || null,