feat(verify): end-to-end agent ping via CLI channel
Verify now runs \`pnpm run chat ping\` silently and checks for a reply. Emits AGENT_PING=ok|no_reply|socket_error|skipped; skipped when the service isn't running or no groups are wired (those already fail the verify via other checks). Kills the child after 90s so a wedged container can't hang setup (chat.ts's own 120s timeout is too long here). setup:auto surfaces AGENT_PING!=ok in its failure summary. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -264,6 +264,12 @@ async function main(): Promise<void> {
|
||||
if (res.fields.CREDENTIALS !== 'configured') {
|
||||
console.log(' • Anthropic secret not detected — re-run `bash setup/register-claude-token.sh`');
|
||||
}
|
||||
if (res.fields.AGENT_PING && res.fields.AGENT_PING !== 'ok' && res.fields.AGENT_PING !== 'skipped') {
|
||||
console.log(
|
||||
` • CLI agent did not reply (status: ${res.fields.AGENT_PING}). ` +
|
||||
'Check `logs/nanoclaw.log` and `groups/*/logs/container-*.log`, then try `pnpm run chat hi`.',
|
||||
);
|
||||
}
|
||||
if (!res.fields.CONFIGURED_CHANNELS) {
|
||||
console.log(
|
||||
' • Optional: add a messaging channel — `/add-discord`, `/add-slack`, `/add-telegram`, …',
|
||||
|
||||
Reference in New Issue
Block a user