mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
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:
parent
f3a9db4b91
commit
d435963dbc
6 changed files with 16 additions and 73 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue