mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(active-memory): accept max thinking config (#103614)
Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
@@ -124,6 +124,20 @@ describe("active-memory manifest config schema", () => {
|
||||
expect(result.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts max thinking overrides", () => {
|
||||
const result = validateJsonSchemaValue({
|
||||
schema: manifest.configSchema,
|
||||
cacheKey: "active-memory.manifest.thinking.max",
|
||||
value: {
|
||||
enabled: true,
|
||||
agents: ["main"],
|
||||
thinking: "max",
|
||||
},
|
||||
});
|
||||
|
||||
expect(result.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("rejects timeoutMs values above the runtime ceiling", () => {
|
||||
const result = validateJsonSchemaValue({
|
||||
schema: manifest.configSchema,
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
},
|
||||
"thinking": {
|
||||
"type": "string",
|
||||
"enum": ["off", "minimal", "low", "medium", "high", "xhigh", "adaptive"]
|
||||
"enum": ["off", "minimal", "low", "medium", "high", "xhigh", "adaptive", "max"]
|
||||
},
|
||||
"fastMode": {
|
||||
"anyOf": [
|
||||
|
||||
Reference in New Issue
Block a user