fix(active-memory): accept max thinking config (#103614)

Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
Leon-SK668
2026-07-28 10:06:00 +08:00
committed by GitHub
parent 0b96c10aad
commit c3713317b8
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -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": [