mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-30 22:12:32 +08:00
fix: tighten gateway compose port parsing (#44083) (thanks @bebule)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user