Add xhigh thinking level for OpenAI codex-max models

- Add 'xhigh' to ThinkingLevel type in ai and agent packages
- Map xhigh to reasoning_effort: 'max' for OpenAI providers
- Add thinkingXhigh color token to theme schema and built-in themes
- Show xhigh option only when using codex-max models
- Update CHANGELOG for both ai and coding-agent packages

closes #143
This commit is contained in:
Mario Zechner 2025-12-08 21:12:54 +01:00
parent 87a1a9ded4
commit 00370cab39
19 changed files with 300 additions and 54 deletions

View file

@ -7,7 +7,7 @@ export interface AgentRunConfig {
systemPrompt: string;
tools: AgentTool<any>[];
model: Model<any>;
reasoning?: "low" | "medium" | "high";
reasoning?: "low" | "medium" | "high" | "xhigh";
getQueuedMessages?: <T>() => Promise<QueuedMessage<T>[]>;
}

View file

@ -24,8 +24,9 @@ export interface Attachment {
/**
* Thinking/reasoning level for models that support it.
* Note: "xhigh" is only supported by OpenAI codex-max models.
*/
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high";
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
/**
* User message with optional attachments.