mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 03:01:25 +00:00
feat(slash-commands): usage footer modes
This commit is contained in:
@@ -132,7 +132,7 @@ export async function applySessionsPatchToStore(params: {
|
||||
delete next.responseUsage;
|
||||
} else if (raw !== undefined) {
|
||||
const normalized = normalizeUsageDisplay(String(raw));
|
||||
if (!normalized) return invalid('invalid responseUsage (use "on"|"off")');
|
||||
if (!normalized) return invalid('invalid responseUsage (use "off"|"tokens"|"full")');
|
||||
if (normalized === "off") delete next.responseUsage;
|
||||
else next.responseUsage = normalized;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user