fix: avoid duplicate doctor config output

This commit is contained in:
Peter Steinberger
2026-01-20 06:32:45 +00:00
parent d5ffc672dd
commit 5d7e38a786
4 changed files with 18 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ export type CallGatewayOptions = {
url?: string;
token?: string;
password?: string;
config?: ClawdbotConfig;
method: string;
params?: unknown;
expectFinal?: boolean;
@@ -109,7 +110,7 @@ export function buildGatewayConnectionDetails(
export async function callGateway<T = unknown>(opts: CallGatewayOptions): Promise<T> {
const timeoutMs = opts.timeoutMs ?? 10_000;
const config = loadConfig();
const config = opts.config ?? loadConfig();
const isRemoteMode = config.gateway?.mode === "remote";
const remote = isRemoteMode ? config.gateway?.remote : undefined;
const urlOverride =