fix(agent): Add refresh token validation before token refresh

Check for refresh token availability before attempting credential refresh.
Setup tokens that expire without a refresh token now return a clear error
instead of attempting an invalid refresh operation.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Lukas May
2026-02-10 09:54:00 +01:00
parent 341849d2f5
commit 265fcb1149

View File

@@ -474,9 +474,9 @@ export class MockAgentManager implements AgentManager {
if (!record) {
throw new Error(`Agent '${agentId}' not found`);
}
// In mock, we just mark it as dismissed in memory
// Real implementation would update database
record.info.updatedAt = new Date();
const now = new Date();
record.info.userDismissedAt = now;
record.info.updatedAt = now;
}
/**