MCPcopy Create free account
hub / github.com/codeaashu/claude-code / showCurrentEffort

Function showCurrentEffort

src/commands/effort/effort.tsx:62–75  ·  view source on GitHub ↗
(appStateEffort: EffortValue | undefined, model: string)

Source from the content-addressed store, hash-verified

60 };
61}
62export function showCurrentEffort(appStateEffort: EffortValue | undefined, model: string): EffortCommandResult {
63 const envOverride = getEffortEnvOverride();
64 const effectiveValue = envOverride === null ? undefined : envOverride ?? appStateEffort;
65 if (effectiveValue === undefined) {
66 const level = getDisplayedEffortLevel(model, appStateEffort);
67 return {
68 message: `Effort level: auto (currently ${level})`
69 };
70 }
71 const description = getEffortValueDescription(effectiveValue);
72 return {
73 message: `Current effort level: ${effectiveValue} (${description})`
74 };
75}
76function unsetEffortLevel(): EffortCommandResult {
77 const result = updateSettingsForSource('userSettings', {
78 effortLevel: undefined

Callers 1

ShowCurrentEffortFunction · 0.85

Calls 3

getEffortEnvOverrideFunction · 0.85
getDisplayedEffortLevelFunction · 0.85

Tested by

no test coverage detected