feat(thinking): 思考等级扩展五档(Max/XHigh)+ 按默认模型 support_efforts 能力感知;删除过时的 max→high 迁移;Segmented 支持逐选项禁用/tooltip — bump to v0.7.23
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
Release / Attach macOS install script (push) Canceled after 0s
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
Release / Attach macOS install script (push) Canceled after 0s
This commit is contained in:
1 parent
50f59cac79
commit
26cb88ad0e
17 files changed
+453
-53
No files matched your search
@@ -20,7 +20,7 @@ function loopOf(raw: unknown): Record<string, unknown> {
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Reading — legacy off values normalized to "off", "max" → "high"
|
||||
// Reading — legacy off values normalized to "off"; effort tiers pass through
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
describe("getAgentSettings — thinking.keep normalization", () => {
|
||||
@@ -52,12 +52,29 @@ describe("getAgentSettings — thinking.keep normalization", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("getAgentSettings — effort \"max\" read mapping", () => {
|
||||
it("normalizes a stored \"max\" to \"high\" on read", () => {
|
||||
describe("getAgentSettings — thinking.effort read mapping", () => {
|
||||
it("keeps a stored \"max\" as-is (the tier is valid upstream)", () => {
|
||||
expect(getAgentSettings({ thinking: { effort: "max" } }).thinking?.effort).toBe(
|
||||
"high"
|
||||
"max"
|
||||
);
|
||||
});
|
||||
|
||||
it("passes an \"xhigh\" tier through untouched", () => {
|
||||
expect(getAgentSettings({ thinking: { effort: "xhigh" } }).thinking?.effort).toBe(
|
||||
"xhigh"
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps the default \"medium\" when the key is absent", () => {
|
||||
expect(getAgentSettings({}).thinking?.effort).toBe("medium");
|
||||
});
|
||||
|
||||
it("round-trips an arbitrary hand-written tier on save", () => {
|
||||
const next = setAgentSettings({ thinking: { effort: "ultra" } }, {
|
||||
thinking: { effort: "ultra" },
|
||||
});
|
||||
expect(thinkingOf(next).effort).toBe("ultra");
|
||||
});
|
||||
});
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user