fix: gate xhigh by model (#444) (thanks @grp06)

This commit is contained in:
Peter Steinberger
2026-01-13 06:47:35 +00:00
parent a3641526ab
commit 18d22aa426
6 changed files with 34 additions and 18 deletions

View File

@@ -81,9 +81,11 @@ describe("directive behavior", () => {
},
{},
{
agent: {
model: "openai-codex/gpt-5.2-codex",
workspace: path.join(home, "clawd"),
agents: {
defaults: {
model: "openai-codex/gpt-5.2-codex",
workspace: path.join(home, "clawd"),
},
},
whatsapp: { allowFrom: ["*"] },
session: { store: storePath },
@@ -109,9 +111,11 @@ describe("directive behavior", () => {
},
{},
{
agent: {
model: "openai/gpt-5.2",
workspace: path.join(home, "clawd"),
agents: {
defaults: {
model: "openai/gpt-5.2",
workspace: path.join(home, "clawd"),
},
},
whatsapp: { allowFrom: ["*"] },
session: { store: storePath },
@@ -137,9 +141,11 @@ describe("directive behavior", () => {
},
{},
{
agent: {
model: "openai/gpt-4.1-mini",
workspace: path.join(home, "clawd"),
agents: {
defaults: {
model: "openai/gpt-4.1-mini",
workspace: path.join(home, "clawd"),
},
},
whatsapp: { allowFrom: ["*"] },
session: { store: storePath },