Skip to content

Commit 9aa501d

Browse files
committed
Use reasoning default badge without reset option
1 parent 77e138b commit 9aa501d

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

apps/server/src/provider/Drivers/HermesDriver.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ it("surfaces the active Hermes identity and canonical commands plus aliases", ()
6969
label: "Reasoning",
7070
type: "select",
7171
options: [
72-
{ id: "reset", label: "Default (High)", isDefault: true },
7372
{ id: "none", label: "None" },
7473
{ id: "medium", label: "Medium" },
75-
{ id: "high", label: "High" },
74+
{ id: "high", label: "High", isDefault: true },
7675
],
77-
currentValue: "reset",
76+
currentValue: "high",
7877
},
7978
],
8079
},
@@ -92,11 +91,10 @@ it("surfaces the active Hermes identity and canonical commands plus aliases", ()
9291
label: "Reasoning",
9392
type: "select",
9493
options: [
95-
{ id: "reset", label: "Default (High)", isDefault: true },
9694
{ id: "low", label: "Low" },
97-
{ id: "high", label: "High" },
95+
{ id: "high", label: "High", isDefault: true },
9896
],
99-
currentValue: "reset",
97+
currentValue: "high",
10098
},
10199
],
102100
},

apps/server/src/provider/Drivers/HermesDriver.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,12 @@ export function makeHermesProviderSnapshot(input: {
104104
id: "reasoningEffort",
105105
label: "Reasoning",
106106
type: "select" as const,
107-
options: [
108-
{
109-
id: "reset",
110-
label: inheritedReasoning
111-
? `Default (${reasoningLabel(inheritedReasoning)})`
112-
: "Default",
113-
isDefault: true,
114-
},
115-
...reasoningEfforts.map((effort) => ({
116-
id: effort,
117-
label: reasoningLabel(effort),
118-
})),
119-
],
120-
currentValue: "reset",
107+
options: reasoningEfforts.map((effort) => ({
108+
id: effort,
109+
label: reasoningLabel(effort),
110+
...(effort === inheritedReasoning ? { isDefault: true } : {}),
111+
})),
112+
...(inheritedReasoning ? { currentValue: inheritedReasoning } : {}),
121113
},
122114
],
123115
}

0 commit comments

Comments
 (0)