test: update bundled setup-entry docker prompt · openclaw/openclaw@9021836
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -786,11 +786,17 @@ const prompter = {
|
786 | 786 | } |
787 | 787 | return initialValue ?? true; |
788 | 788 | }, |
789 | | - select: async ({ message }) => { |
| 789 | + select: async ({ message, options }) => { |
790 | 790 | if (message === "Select a channel") { |
791 | 791 | channelSelectCount += 1; |
792 | 792 | return channelSelectCount === 1 ? "whatsapp" : "__done__"; |
793 | 793 | } |
| 794 | + if (message === "Install WhatsApp plugin?") { |
| 795 | + if (!options?.some((option) => option.value === "local")) { |
| 796 | + throw new Error(`missing bundled local install option: ${JSON.stringify(options)}`); |
| 797 | + } |
| 798 | + return "local"; |
| 799 | + } |
794 | 800 | if (message === "WhatsApp phone setup") { |
795 | 801 | return "separate"; |
796 | 802 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。