fix: remove WhatsApp from setup, nothing pre-selected by default (#2626)

WhatsApp setup is too complex for normal users (QR scan + separate
device + pairing). Remove it from the setup options entirely.

Also change multiselect defaults to nothing pre-selected — let users
opt in to what they want instead of pre-selecting for them.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ahmed Abushagur 2026-03-14 14:10:28 -07:00 committed by GitHub
parent f3a9db4b91
commit d435963dbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 73 deletions

View file

@ -231,11 +231,6 @@ export async function runOrchestration(
// --steps "" → disable all optional steps
enabledSteps = new Set();
}
// Skip interactive WhatsApp in headless mode
if (process.env.SPAWN_HEADLESS === "1" && enabledSteps.has("whatsapp")) {
logWarn("WhatsApp requires interactive QR scanning — skipping in headless mode");
enabledSteps.delete("whatsapp");
}
}
// 10b. Agent-specific configuration
@ -338,19 +333,6 @@ export async function runOrchestration(
}
}
if (enabledSteps?.has("whatsapp")) {
logStep("Linking WhatsApp — scan the QR code with your phone...");
logInfo("Open WhatsApp > Settings > Linked Devices > Link a Device");
process.stderr.write("\n");
const whatsappCmd = `source ~/.spawnrc 2>/dev/null; ${ocPath}; openclaw channels login --channel whatsapp`;
prepareStdinForHandoff();
await cloud.interactiveSession(whatsappCmd);
logInfo("WhatsApp linked! To pair a contact:");
logInfo(" 1. Have someone message your WhatsApp number");
logInfo(" 2. They'll get a pairing code from the bot");
logInfo(" 3. Approve via: openclaw pairing approve whatsapp <CODE>");
}
// 11d. Agent-specific pre-launch tip (e.g. channel setup ordering hint)
if (agent.preLaunchMsg) {
process.stderr.write("\n");