feat(coding-agent): refactored usage command into show/reset subcommands

- Added `handleUsageResetCommand` support to list and redeem usage reset credits.
- Refactored `/usage` into `show` and `reset` subcommands and removed `/reset-usage`.
- Handled ACP/TUI `/usage` flows so `show` reports usage and `reset` redeems credits.
- Kept selected theme setting values dirty-colored while selected in the UI list.
This commit is contained in:
can1357
2026-06-12 06:18:44 +02:00
parent f80cf7d584
commit 35d3afc929
12 changed files with 192 additions and 73 deletions
@@ -1546,7 +1546,7 @@ function renderUsageReports(
}
if (resetAccountLines.length > 0) {
lines.push(
` ${uiTheme.fg("accent", "Saved rate-limit resets")} ${uiTheme.fg("dim", "(/reset-usage to spend)")}`,
` ${uiTheme.fg("accent", "Saved rate-limit resets")} ${uiTheme.fg("dim", "(/usage reset to spend)")}`,
);
for (const line of resetAccountLines) lines.push(uiTheme.fg("dim", line));
}