Skip to content

Commit f7cab2d

Browse files
authored
fix: change openclaw mode into remote (#1634)
1 parent a9e5677 commit f7cab2d

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

examples/openclaw-plugin/commands/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export function registerSetupCli(api: any): void {
432432
console.log("");
433433
}
434434

435-
const modeDefault = String(existing?.mode ?? "local");
435+
const modeDefault = String(existing?.mode ?? "remote");
436436
const modeInput = await q(
437437
tr(zh, "Plugin mode - local or remote", "插件模式 - local 或 remote"),
438438
modeDefault,

examples/openclaw-plugin/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const memoryOpenVikingConfigSchema = {
189189
"openviking config",
190190
);
191191

192-
const mode = (cfg.mode === "local" || cfg.mode === "remote" ? cfg.mode : "local") as
192+
const mode = (cfg.mode === "local" || cfg.mode === "remote" ? cfg.mode : "remote") as
193193
| "local"
194194
| "remote";
195195
const port = Math.max(1, Math.min(65535, Math.floor(toNumber(cfg.port, DEFAULT_PORT))));

examples/openclaw-plugin/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ DEFAULT_VLM_MODEL="doubao-seed-2-0-pro-260215"
7474
DEFAULT_EMBED_MODEL="doubao-embedding-vision-251215"
7575
SELECTED_SERVER_PORT="${DEFAULT_SERVER_PORT}"
7676
SELECTED_CONFIG_PATH=""
77-
SELECTED_MODE="local"
77+
SELECTED_MODE="remote"
7878
LANG_UI="en"
7979

8080
# Plugin config (set by resolve_plugin_config)
@@ -1018,12 +1018,12 @@ select_workdir() {
10181018

10191019
select_mode() {
10201020
if [[ "$INSTALL_YES" == "1" ]]; then
1021-
SELECTED_MODE="local"
1021+
SELECTED_MODE="remote"
10221022
return 0
10231023
fi
10241024
echo ""
1025-
read -r -p "$(tr "Plugin mode - local or remote [local]: " "插件模式 - local 或 remote [local]: ")" _mode < /dev/tty || true
1026-
_mode="${_mode:-local}"
1025+
read -r -p "$(tr "Plugin mode - local or remote [remote]: " "插件模式 - local 或 remote [remote]: ")" _mode < /dev/tty || true
1026+
_mode="${_mode:-remote}"
10271027
if [[ "$_mode" == "remote" ]]; then
10281028
SELECTED_MODE="remote"
10291029
else

examples/openclaw-plugin/setup-helper/install.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ let pluginVersionArgExplicit = false;
117117
let openvikingVersionArgExplicit = false;
118118
let showCurrentVersion = false;
119119

120-
let selectedMode = "local";
120+
let selectedMode = "remote";
121121
let selectedServerPort = DEFAULT_SERVER_PORT;
122122
let remoteBaseUrl = "http://127.0.0.1:1933";
123123
let remoteApiKey = "";
@@ -590,10 +590,10 @@ async function selectWorkdir() {
590590

591591
async function selectMode() {
592592
if (installYes) {
593-
selectedMode = "local";
593+
selectedMode = "remote";
594594
return;
595595
}
596-
const mode = (await question(tr("Plugin mode - local or remote", "插件模式 - local 或 remote"), "local")).toLowerCase();
596+
const mode = (await question(tr("Plugin mode - local or remote", "插件模式 - local 或 remote"), "remote")).toLowerCase();
597597
selectedMode = mode === "remote" ? "remote" : "local";
598598
}
599599

0 commit comments

Comments
 (0)