Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Setup's shared-credential notice treats a launcher it cannot start as 'whom the brain serves is unknown'
garrytan09b582fc780c
diff --git a/src/commands/setup.ts b/src/commands/setup.tsindex 46c0a24665..4ec93b0dbf 100644--- a/src/commands/setup.ts+++ b/src/commands/setup.ts@@ -963,8 +963,13 @@ function describeInstructions(o: BrainFirstOutcome, dryRun: boolean): string {/** Whom the brain behind this launcher serves, for the shared-token warning; null when it cannot be read (the warning stays on). */function exposureServesVia(launcher: string | null | undefined): ExposureServes {- const read = launcher && launcher.startsWith('/') ? readServesStatus(launcher) : null;- return read && 'status' in read ? read.status.serves : null;+ if (!launcher || !launcher.startsWith('/')) return null;+ try {+ const read = readServesStatus(launcher);+ return 'status' in read ? read.status.serves : null;+ } catch {+ return null;+ }}/** --serves several on the instructions alone: the brain must serve several people and its stdio server be bound. */