From 0709224ce3b2ee9b24cbe5600804e1e96e524bac Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 24 Mar 2026 16:49:02 -0700 Subject: [PATCH] fix: tighten gateway compose port parsing (#44083) (thanks @bebule) --- CHANGELOG.md | 1 + src/config/paths.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df4e155d214..32467dc6031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ Docs: https://docs.openclaw.ai - Slack/runtime defaults: trim Slack DM reply overhead, restore Codex auto transport, and tighten Slack/web-search runtime defaults around DM preview threading, cache scoping, warning dedupe, and explicit web-search opt-in. (#53957) Thanks @vincentkoc. - Discord/timeouts: send a visible timeout reply when the inbound Discord worker times out before a final reply starts, including created auto-thread targets and queued-run ordering. (#53823) Thanks @Kimbo7870. - Models/google: normalize bare Google Generative AI API roots for custom provider names, and keep built-in Google model-id rewrites working when `api` is declared only on individual models, so custom Google lanes and older configs stop missing `/v1beta` or preview-id normalization. (#44969) Thanks @Kathie-yu. +- Gateway/ports: parse Docker Compose-style `OPENCLAW_GATEWAY_PORT` host publish values correctly without reviving the legacy `CLAWDBOT_GATEWAY_PORT` override. (#44083) Thanks @bebule. ## 2026.3.23 diff --git a/src/config/paths.test.ts b/src/config/paths.test.ts index 4c0034ad055..4702af0d2ed 100644 --- a/src/config/paths.test.ts +++ b/src/config/paths.test.ts @@ -67,13 +67,13 @@ describe("gateway port resolution", () => { ).toBe(28789); }); - it("accepts Compose-style values from the legacy env name", () => { + it("ignores the legacy env name and falls back to config", () => { expect( resolveGatewayPort( { gateway: { port: 19002 } }, envWith({ CLAWDBOT_GATEWAY_PORT: "127.0.0.1:18789" }), ), - ).toBe(18789); + ).toBe(19002); }); it("falls back to config when the Compose-style suffix is invalid", () => {