fix: tighten gateway compose port parsing (#44083) (thanks @bebule)

This commit is contained in:
Peter Steinberger
2026-03-24 16:49:02 -07:00
parent ac7ca52090
commit 0709224ce3
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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", () => {