fix(portable): honor bundled OpenClaw version on USB

This commit is contained in:
hfshfg
2026-06-20 15:59:09 +08:00
parent 8981c21262
commit 19774a89ab
4 changed files with 12 additions and 5 deletions

View File

@@ -499,7 +499,7 @@ function togglePw(id) {
// --- Build OpenClaw config ---
function buildConfig(provider, base, model, apiKey) {
var baseConfig = {
gateway: { auth: { mode: 'token', token: 'uclaw' }, remote: { token: 'uclaw' } },
gateway: { mode: 'local', auth: { mode: 'token', token: 'uclaw' }, remote: { token: 'uclaw' } },
commands: { native: 'auto', nativeSkills: 'auto', restart: true, ownerDisplay: 'raw' },
meta: { lastTouchedVersion: '2026.3.13', lastTouchedAt: new Date().toISOString() }
};