Revert "fix: respect OPENCLAW_HOME for isolated gateway instances"

This reverts commit 34b18ea9db.
This commit is contained in:
Gustavo Madeira Santana
2026-02-16 20:35:55 -05:00
parent 014a46d3fc
commit 7b172d61cd
2 changed files with 7 additions and 36 deletions

View File

@@ -3,7 +3,7 @@ import path from "node:path";
import type { Command } from "commander";
import type { GatewayAuthMode } from "../../config/config.js";
import {
getConfigPath,
CONFIG_PATH,
loadConfig,
readConfigFileSnapshot,
resolveStateDir,
@@ -161,7 +161,7 @@ async function runGatewayCommand(opts: GatewayRunOpts) {
const tokenRaw = toOptionString(opts.token);
const snapshot = await readConfigFileSnapshot().catch(() => null);
const configExists = snapshot?.exists ?? fs.existsSync(getConfigPath());
const configExists = snapshot?.exists ?? fs.existsSync(CONFIG_PATH);
const configAuditPath = path.join(resolveStateDir(process.env), "logs", "config-audit.jsonl");
const mode = cfg.gateway?.mode;
if (!opts.allowUnconfigured && mode !== "local") {