detect setup auth ping failures

This commit is contained in:
Pankaj Garg
2026-04-24 08:42:10 +02:00
parent a4346f566c
commit f41c162009
3 changed files with 51 additions and 5 deletions

View File

@@ -220,7 +220,7 @@ export async function run(_args: string[]): Promise<void> {
// 7. End-to-end: ping the CLI agent and confirm it replies. Only run if
// everything upstream looks healthy, since a broken socket would just hang.
let agentPing: 'ok' | 'no_reply' | 'socket_error' | 'skipped' = 'skipped';
let agentPing: 'ok' | 'no_reply' | 'socket_error' | 'auth_error' | 'skipped' = 'skipped';
if (service === 'running' && registeredGroups > 0) {
log.info('Pinging CLI agent');
agentPing = await pingCliAgent();