feat(canvas): add max effort level to ConfigTab dropdown (#653)

feat(canvas): add max effort level to ConfigTab dropdown (#653)
This commit is contained in:
molecule-ai[bot] 2026-04-17 07:04:57 +00:00 committed by GitHub
commit 3d3f1d5543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -75,6 +75,11 @@ describe("toYaml — effort field", () => {
const cfg: ConfigData = { ...DEFAULT_CONFIG, effort: "xhigh" };
expect(toYaml(cfg)).toContain("effort: xhigh");
});
it("serializes effort: max", () => {
const cfg: ConfigData = { ...DEFAULT_CONFIG, effort: "max" };
expect(toYaml(cfg)).toContain("effort: max");
});
});
describe("toYaml — task_budget field", () => {
@ -179,7 +184,7 @@ describe("ConfigTab source — Claude Settings section", () => {
expect(src).toContain('data-testid="task-budget-input"');
});
it("ConfigTab.tsx effort dropdown has all four Claude values", async () => {
it("ConfigTab.tsx effort dropdown has all five Claude values", async () => {
const { readFileSync } = await import("fs");
const { join } = await import("path");
const src = readFileSync(join(__dirname, "../../components/tabs/ConfigTab.tsx"), "utf8");
@ -187,6 +192,7 @@ describe("ConfigTab source — Claude Settings section", () => {
expect(src).toContain('"medium"');
expect(src).toContain('"high"');
expect(src).toContain('"xhigh"');
expect(src).toContain('"max"');
});
it("ConfigTab.tsx section is guarded by claude-code runtime check", async () => {

View File

@ -288,6 +288,7 @@ export function ConfigTab({ workspaceId }: Props) {
<option value="medium">medium</option>
<option value="high">high</option>
<option value="xhigh">xhigh (extended thinking)</option>
<option value="max">max absolute ceiling</option>
</select>
</div>
<div>