mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 08:15:17 +00:00
fix(cliproxy): update lastUsedAt on normal execution
Previously touchAccount was only called when switching accounts or auto- switching due to quota exhaustion. Now lastUsedAt is updated for every OAuth provider execution, ensuring dashboard shows accurate timestamps.
This commit is contained in:
1 parent
497fc2a9c0
commit
b55cd795ab
1 file changed
+7
@@ -462,6 +462,13 @@ export async function execClaudeWithCLIProxy(
|
|||||||
if (tokenResult.refreshed) {
|
if (tokenResult.refreshed) {
|
||||||
log('Token was refreshed proactively');
|
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
|
// 3b. Preflight quota check - auto-switch to account with quota before launch
|
||||||
|
|||||||
Reference in new issue
Block a user