@devries-cameron20 / t3code-1 / commits / a5090a7576
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): Default effort no longer shows as the lowest bar (#38684)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Elias committed Nov 18, 2026 at 18:05 UTC a5090a75767dfaef311932e4a466e5fe2ee2f0f2
2 files changed +7 -4
apps/web/src/components/chat/EffortGlyph.test.ts
+4 -1
@@ -25,8 +25,11 @@ describe("resolveEffortGlyph", () => {
25 });
26 });
27
28 - it("names max instead of drawing it", () => {
28 + it("names Max and Default instead of drawing them", () => {
29 expect(resolveEffortGlyph(claude, "max")?.special).toBe("Max");
30 + const reported = descriptor(["default", "low", "medium", "high", "xhigh", "max"]);
31 + expect(resolveEffortGlyph(reported, "default")?.special).toBe("Default");
32 + expect(resolveEffortGlyph(reported, "low")).toMatchObject({ count: 4, filled: 1 });
33 });
34
35 it("names Ultracode and Ultrathink instead of drawing a level", () => {
apps/web/src/components/chat/EffortGlyph.tsx
+3 -3
@@ -11,15 +11,15 @@ const BASELINE_INSET = 2;
11 type SelectDescriptor = Extract<ProviderOptionDescriptor, { type: "select" }>;
12
13 // Older servers offer Ultracode as a level. It changes the workflow, so it keeps its name.
14 -// Max is named too, so the full scale stops short of it.
15 -const NAMED_LEVELS = new Set(["ultracode", "max"]);
14 +// Max is named too, so the full scale stops short of it. Default leaves the level to the agent.
15 +const NAMED_LEVELS = new Set(["ultracode", "max", "default"]);
16 const OFF_LEVELS = new Set(["off", "none"]);
17 // More bars than this no longer fit the glyph's height in whole pixels.
18 const MAX_BARS = 7;
19
20 /**
21 * Maps a reasoning select to bars: one per ordinary level, filled up to the current one, with an
22 - * off level as none filled. Max, prompt-injected and workflow levels are named instead of drawn.
22 + * off level as none filled. Max, Default, prompt-injected and workflow levels are named instead.
23 */
24 export function resolveEffortGlyph(descriptor: SelectDescriptor, current: string | null) {
25 const special = new Set([...(descriptor.promptInjectedValues ?? []), ...NAMED_LEVELS]);