Skip to content

Commit af4731a

Browse files
ingyukohaltaywtf
andauthored
fix(discovery): add missing domain to wideArea Zod config schema (openclaw#35615)
Merged via squash. Prepared head SHA: d81d332 Co-authored-by: ingyukoh <[email protected]> Co-authored-by: altaywtf <[email protected]> Reviewed-by: @altaywtf
1 parent e9b1e85 commit af4731a

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Docs: https://docs.openclaw.ai
2424
- Android/onboarding QR scan: switch setup QR scanning to Google Code Scanner so onboarding uses a more reliable scanner instead of the legacy embedded ZXing flow. (#45021) Thanks @obviyus.
2525
- Config/web fetch: restore runtime validation for documented `tools.web.fetch.readability` and `tools.web.fetch.firecrawl` settings so valid web fetch configs no longer fail with unrecognized-key errors. (#42583) Thanks @stim64045-spec.
2626
- Signal/config validation: add `channels.signal.groups` schema support so per-group `requireMention`, `tools`, and `toolsBySender` overrides no longer get rejected during config validation. (#27199) Thanks @unisone.
27+
- Config/discovery: accept `discovery.wideArea.domain` in strict config validation so unicast DNS-SD gateway configs no longer fail with an unrecognized-key error. (#35615) Thanks @ingyukoh.
2728

2829
## 2026.3.12
2930

src/config/config.schema-regressions.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,17 @@ describe("config schema regressions", () => {
211211

212212
expect(res.ok).toBe(true);
213213
});
214+
215+
it("accepts discovery.wideArea.domain for unicast DNS-SD", () => {
216+
const res = validateConfigObject({
217+
discovery: {
218+
wideArea: {
219+
enabled: true,
220+
domain: "openclaw.internal",
221+
},
222+
},
223+
});
224+
225+
expect(res.ok).toBe(true);
226+
});
214227
});

src/config/schema.help.quality.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ const TARGET_KEYS = [
296296
"web.reconnect.jitter",
297297
"web.reconnect.maxAttempts",
298298
"discovery",
299+
"discovery.wideArea.domain",
299300
"discovery.wideArea.enabled",
300301
"discovery.mdns",
301302
"discovery.mdns.mode",

src/config/schema.help.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ export const FIELD_HELP: Record<string, string> = {
292292
"Wide-area discovery configuration group for exposing discovery signals beyond local-link scopes. Enable only in deployments that intentionally aggregate gateway presence across sites.",
293293
"discovery.wideArea.enabled":
294294
"Enables wide-area discovery signaling when your environment needs non-local gateway discovery. Keep disabled unless cross-network discovery is operationally required.",
295+
"discovery.wideArea.domain":
296+
"Optional unicast DNS-SD domain for wide-area discovery, such as openclaw.internal. Use this when you intentionally publish gateway discovery beyond local mDNS scopes.",
295297
"discovery.mdns":
296298
"mDNS discovery configuration group for local network advertisement and discovery behavior tuning. Keep minimal mode for routine LAN discovery unless extra metadata is required.",
297299
tools:

src/config/schema.labels.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ export const FIELD_LABELS: Record<string, string> = {
654654
discovery: "Discovery",
655655
"discovery.wideArea": "Wide-area Discovery",
656656
"discovery.wideArea.enabled": "Wide-area Discovery Enabled",
657+
"discovery.wideArea.domain": "Wide-area Discovery Domain",
657658
"discovery.mdns": "mDNS Discovery",
658659
canvasHost: "Canvas Host",
659660
"canvasHost.enabled": "Canvas Host Enabled",

src/config/zod-schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ export const OpenClawSchema = z
596596
wideArea: z
597597
.object({
598598
enabled: z.boolean().optional(),
599+
domain: z.string().optional(),
599600
})
600601
.strict()
601602
.optional(),

0 commit comments

Comments
 (0)