chore: better explicit message on whatsapp · openclaw/openclaw@841eb81
vincentkoc
·
2026-05-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -142,7 +142,9 @@ describe("loginWeb coverage", () => {
|
142 | 142 | restartOpts?.onQr?.("restart-qr"); |
143 | 143 | await flushTasks(); |
144 | 144 | |
145 | | -expect(runtime.log).toHaveBeenCalledWith("Scan this QR in WhatsApp (Linked Devices):"); |
| 145 | +expect(runtime.log).toHaveBeenCalledWith( |
| 146 | +"Open the WhatsApp app, go to Linked Devices, then scan this QR:", |
| 147 | +); |
146 | 148 | expect(runtime.log).toHaveBeenCalledWith("terminal:initial-qr"); |
147 | 149 | expect(runtime.log).toHaveBeenCalledWith("terminal:restart-qr"); |
148 | 150 | expect(renderQrTerminalMock).toHaveBeenCalledWith("initial-qr", { small: true }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ export async function loginWeb(
|
21 | 21 | const socketTiming = resolveWhatsAppSocketTiming(cfg); |
22 | 22 | const restoredFromBackup = await restoreCredsFromBackupIfNeeded(account.authDir); |
23 | 23 | const onQr = (qr: string) => { |
24 | | -runtime.log("Scan this QR in WhatsApp (Linked Devices):"); |
| 24 | +runtime.log("Open the WhatsApp app, go to Linked Devices, then scan this QR:"); |
25 | 25 | void renderQrTerminal(qr, { small: true }) |
26 | 26 | .then((output) => { |
27 | 27 | runtime.log(output.endsWith("\n") ? output.slice(0, -1) : output); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -192,7 +192,7 @@ export async function createWaSocket(
|
192 | 192 | if (qr) { |
193 | 193 | opts.onQr?.(qr); |
194 | 194 | if (printQr) { |
195 | | -console.log("Scan this QR in WhatsApp (Linked Devices):"); |
| 195 | +console.log("Open the WhatsApp app, go to Linked Devices, then scan this QR:"); |
196 | 196 | void printTerminalQr(qr).catch((err) => { |
197 | 197 | sessionLogger.warn({ error: String(err) }, "failed rendering WhatsApp QR"); |
198 | 198 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。