mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 00:16:46 +00:00
Merge pull request #286 from kaitranntt/fix/cliproxy-touch-account-on-normal-usage
fix(cliproxy): update lastUsedAt on normal execution
This commit is contained in:
@@ -462,6 +462,13 @@ export async function execClaudeWithCLIProxy(
|
||||
if (tokenResult.refreshed) {
|
||||
log('Token was refreshed proactively');
|
||||
}
|
||||
|
||||
// 3a-1. Update lastUsedAt for the account being used
|
||||
// This ensures dashboard shows accurate "Last used" timestamps
|
||||
const usedAccount = getDefaultAccount(provider);
|
||||
if (usedAccount) {
|
||||
touchAccount(provider, usedAccount.id);
|
||||
}
|
||||
}
|
||||
|
||||
// 3b. Preflight quota check - auto-switch to account with quota before launch
|
||||
|
||||
Reference in New Issue
Block a user