惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
N
News | PayPal Newsroom
Cloudbric
Cloudbric
Webroot Blog
Webroot Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Simon Willison's Weblog
Simon Willison's Weblog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
Attack and Defense Labs
Attack and Defense Labs
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
T
Tor Project blog
Latest news
Latest news
aimingoo的专栏
aimingoo的专栏
V2EX - 技术
V2EX - 技术
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Securelist
T
Tenable Blog
N
Netflix TechBlog - Medium
Google Online Security Blog
Google Online Security Blog
博客园 - Franky
T
Troy Hunt's Blog
量子位
大猫的无限游戏
大猫的无限游戏
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
MongoDB | Blog
MongoDB | Blog
H
Heimdal Security Blog
D
Docker
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
G
Google Developers Blog
博客园 - 叶小钗
腾讯CDC
The Hacker News
The Hacker News
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
Martin Fowler
Martin Fowler

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
feat(ios): default to hosted push relay (#88096) · openclaw/openclaw@0167f0a
ngutman · 2026-05-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -73,9 +73,10 @@ Release behavior:

7373

- Changing the root gateway version does not change the iOS app version until you explicitly pin from the gateway.

7474

- See `apps/ios/VERSIONING.md` for the full workflow.

7575
76-

Required env for beta builds:

76+

Relay behavior for beta builds:

7777
78-

- `OPENCLAW_PUSH_RELAY_BASE_URL=https://relay.example.com`

78+

- Beta builds default to `https://ios-push-relay.openclaw.ai`.

79+

- Optional custom relay override: `OPENCLAW_PUSH_RELAY_BASE_URL=https://relay.example.com`

7980

This must be a plain `https://host[:port][/path]` base URL without whitespace, query params, fragments, or xcconfig metacharacters.

8081
8182

Archive without upload:

@@ -118,7 +119,7 @@ scripts/ios-asc-keychain-setup.sh \

118119
119120

This should create `apps/ios/fastlane/.env` with the non-secret ASC variables while the private key stays in Keychain.

120121
121-

3. Set the official/TestFlight relay URL for the build:

122+

3. Optional: set a custom official/TestFlight relay URL for the build. If unset, the beta flow uses `https://ios-push-relay.openclaw.ai`.

122123
123124

```bash

124125

export OPENCLAW_PUSH_RELAY_BASE_URL=https://relay.example.com

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,7 @@ private struct RelayGatewayPushRegistrationPayload: Encodable {

1717

var topic: String

1818

var environment: String

1919

var distribution: String

20+

var relayOrigin: String

2021

var tokenDebugSuffix: String?

2122

}

2223

@@ -107,6 +108,7 @@ actor PushRegistrationManager {

107108

topic: topic,

108109

environment: self.buildConfig.apnsEnvironment.rawValue,

109110

distribution: self.buildConfig.distribution.rawValue,

111+

relayOrigin: relayOrigin,

110112

tokenDebugSuffix: stored.tokenDebugSuffix))

111113

}

112114

@@ -138,6 +140,7 @@ actor PushRegistrationManager {

138140

topic: topic,

139141

environment: self.buildConfig.apnsEnvironment.rawValue,

140142

distribution: self.buildConfig.distribution.rawValue,

143+

relayOrigin: relayOrigin,

141144

tokenDebugSuffix: registrationState.tokenDebugSuffix))

142145

}

143146
Original file line numberDiff line numberDiff line change

@@ -337,9 +337,9 @@ candidate contains redacted secret placeholders such as `***`.

337337

</Accordion>

338338
339339

<Accordion title="Enable relay-backed push for official iOS builds">

340-

Relay-backed push is configured in `openclaw.json`.

340+

Relay-backed push uses the hosted OpenClaw relay by default: `https://ios-push-relay.openclaw.ai`.

341341
342-

Set this in gateway config:

342+

To use a custom relay, set this in gateway config:

343343
344344

```json5

345345

{

@@ -373,8 +373,8 @@ candidate contains redacted secret placeholders such as `***`.

373373
374374

End-to-end flow:

375375
376-

1. Install an official/TestFlight iOS build that was compiled with the same relay base URL.

377-

2. Configure `gateway.push.apns.relay.baseUrl` on the gateway.

376+

1. Install an official/TestFlight iOS build.

377+

2. Optional: configure `gateway.push.apns.relay.baseUrl` on the gateway only when using a custom relay deployment.

378378

3. Pair the iOS app to the gateway and let both node and operator sessions connect.

379379

4. The iOS app fetches the gateway identity, registers with the relay using App Attest plus the app receipt, and then publishes the relay-backed `push.apns.register` payload to the paired gateway.

380380

5. The gateway stores the relay handle and send grant, then uses them for `push.test`, wake nudges, and reconnect wakes.

@@ -387,6 +387,7 @@ candidate contains redacted secret placeholders such as `***`.

387387

Compatibility note:

388388
389389

- `OPENCLAW_APNS_RELAY_BASE_URL` and `OPENCLAW_APNS_RELAY_TIMEOUT_MS` still work as temporary env overrides.

390+

- Custom gateway relay URLs must match the relay base URL baked into the official/TestFlight iOS build.

390391

- `OPENCLAW_APNS_RELAY_ALLOW_HTTP=true` remains a loopback-only development escape hatch; do not persist HTTP relay URLs in config.

391392
392393

See [iOS App](/platforms/ios#relay-backed-push-for-official-builds) for the end-to-end flow and [Authentication and trust flow](/platforms/ios#authentication-and-trust-flow) for the relay security model.

Original file line numberDiff line numberDiff line change

@@ -75,7 +75,9 @@ openclaw gateway call node.list --params "{}"

7575

Official distributed iOS builds use the external push relay instead of publishing the raw APNs

7676

token to the gateway.

7777
78-

Gateway-side requirement:

78+

By default, official/TestFlight builds and gateways use the hosted relay at `https://ios-push-relay.openclaw.ai`.

79+
80+

Custom relay deployments can override the gateway relay URL:

7981
8082

```json5

8183

{

@@ -98,7 +100,7 @@ How the flow works:

98100

- The iOS app fetches the paired gateway identity and includes it in relay registration, so the relay-backed registration is delegated to that specific gateway.

99101

- The app forwards that relay-backed registration to the paired gateway with `push.apns.register`.

100102

- The gateway uses that stored relay handle for `push.test`, background wakes, and wake nudges.

101-

- The gateway relay base URL must match the relay URL baked into the official/TestFlight iOS build.

103+

- Custom gateway relay URLs must match the relay URL baked into the official/TestFlight iOS build.

102104

- If the app later connects to a different gateway or a build with a different relay base URL, it refreshes the relay registration instead of reusing the old binding.

103105
104106

What the gateway does **not** need for this path:

@@ -109,7 +111,7 @@ What the gateway does **not** need for this path:

109111

Expected operator flow:

110112
111113

1. Install the official/TestFlight iOS build.

112-

2. Set `gateway.push.apns.relay.baseUrl` on the gateway.

114+

2. Optional: set `gateway.push.apns.relay.baseUrl` on the gateway only when using a custom relay deployment.

113115

3. Pair the app to the gateway and let it finish connecting.

114116

4. The app publishes `push.apns.register` automatically after it has an APNs token, the operator session is connected, and relay registration succeeds.

115117

5. After that, `push.test`, reconnect wakes, and wake nudges can use the stored relay-backed registration.

@@ -128,6 +130,7 @@ compatible but does not count as a durable last-seen update.

128130

Compatibility note:

129131
130132

- `OPENCLAW_APNS_RELAY_BASE_URL` still works as a temporary env override for the gateway.

133+

- `OPENCLAW_PUSH_RELAY_BASE_URL` still works as a temporary env override for official/TestFlight iOS builds.

131134
132135

## Authentication and trust flow

133136
Original file line numberDiff line numberDiff line change

@@ -4,6 +4,9 @@ set -euo pipefail

44

usage() {

55

cat <<'EOF'

66

Usage:

7+

scripts/ios-beta-prepare.sh --build-number 7 [--team-id TEAMID]

8+
9+

Optional custom relay:

710

OPENCLAW_PUSH_RELAY_BASE_URL=https://relay.example.com \

811

scripts/ios-beta-prepare.sh --build-number 7 [--team-id TEAMID]

912

@@ -26,7 +29,8 @@ VERSION_SYNC_HELPER="${ROOT_DIR}/scripts/ios-sync-versioning.ts"

2629
2730

BUILD_NUMBER=""

2831

TEAM_ID="${IOS_DEVELOPMENT_TEAM:-}"

29-

PUSH_RELAY_BASE_URL="${OPENCLAW_PUSH_RELAY_BASE_URL:-${IOS_PUSH_RELAY_BASE_URL:-}}"

32+

DEFAULT_IOS_PUSH_RELAY_BASE_URL="https://ios-push-relay.openclaw.ai"

33+

PUSH_RELAY_BASE_URL="${OPENCLAW_PUSH_RELAY_BASE_URL:-${IOS_PUSH_RELAY_BASE_URL:-${DEFAULT_IOS_PUSH_RELAY_BASE_URL}}}"

3034

PUSH_RELAY_BASE_URL_XCCONFIG=""

3135

IOS_VERSION=""

3236

@@ -118,11 +122,6 @@ if [[ -z "${TEAM_ID}" ]]; then

118122

exit 1

119123

fi

120124
121-

if [[ -z "${PUSH_RELAY_BASE_URL}" ]]; then

122-

echo "Missing OPENCLAW_PUSH_RELAY_BASE_URL (or IOS_PUSH_RELAY_BASE_URL) for beta relay registration." >&2

123-

exit 1

124-

fi

125-
126125

validate_push_relay_base_url "${PUSH_RELAY_BASE_URL}"

127126
128127

# `.xcconfig` treats `//` as a comment opener. Break the URL with a helper setting

Original file line numberDiff line numberDiff line change

@@ -552,9 +552,9 @@ export const FIELD_HELP: Record<string, string> = {

552552

"gateway.push.apns":

553553

"APNs delivery settings for iOS devices paired to this gateway. Use relay settings for official/TestFlight builds that register through the external push relay.",

554554

"gateway.push.apns.relay":

555-

"External relay settings for relay-backed APNs sends. The gateway uses this relay for push.test, wake nudges, and reconnect wakes after a paired official iOS build publishes a relay-backed registration.",

555+

"External relay settings for relay-backed APNs sends. The gateway uses the hosted OpenClaw relay by default, or this custom relay for push.test, wake nudges, and reconnect wakes after a paired official iOS build publishes a relay-backed registration.",

556556

"gateway.push.apns.relay.baseUrl":

557-

"Base HTTPS URL for the external APNs relay service used by official/TestFlight iOS builds. Keep this aligned with the relay URL baked into the iOS build so registration and send traffic hit the same deployment.",

557+

"Optional custom base HTTPS URL for the external APNs relay service used by official/TestFlight iOS builds. Keep this aligned with the relay URL baked into the iOS build so registration and send traffic hit the same deployment.",

558558

"gateway.push.apns.relay.timeoutMs":

559559

"Timeout in milliseconds for relay send requests from the gateway to the APNs relay (default: 10000). Increase for slower relays or networks, or lower to fail wake attempts faster.",

560560

"gateway.http.endpoints.chatCompletions.enabled":

Original file line numberDiff line numberDiff line change

@@ -87,7 +87,7 @@ const FIELD_PLACEHOLDERS: Record<string, string> = {

8787

"gateway.controlUi.basePath": "/openclaw",

8888

"gateway.controlUi.root": "dist/control-ui",

8989

"gateway.controlUi.allowedOrigins": "https://control.example.com",

90-

"gateway.push.apns.relay.baseUrl": "https://relay.example.com",

90+

"gateway.push.apns.relay.baseUrl": "https://ios-push-relay.openclaw.ai",

9191

"channels.mattermost.baseUrl": "https://chat.example.com",

9292

"agents.list[].identity.avatar": "avatars/openclaw.png",

9393

};

Original file line numberDiff line numberDiff line change

@@ -157,19 +157,30 @@ async function resolveDeliveryPlan(params: {

157157

}

158158

}

159159
160-

let relayConfig: ApnsRelayConfig | undefined;

160+

const relayConfigByNodeId = new Map<string, ApnsRelayConfig>();

161161

if (needsRelay) {

162-

const relay = resolveApnsRelayConfigFromEnv(process.env, getRuntimeConfig().gateway);

163-

if (relay.ok) {

164-

relayConfig = relay.value;

165-

} else {

166-

params.log.warn?.(`exec approvals: iOS relay APNs config unavailable: ${relay.error}`);

162+

for (const target of targets) {

163+

if (target.registration.transport !== "relay") {

164+

continue;

165+

}

166+

const relay = resolveApnsRelayConfigFromEnv(process.env, getRuntimeConfig().gateway, {

167+

registrationRelayOrigin: target.registration.relayOrigin,

168+

});

169+

if (relay.ok) {

170+

relayConfigByNodeId.set(target.nodeId, relay.value);

171+

} else {

172+

params.log.warn?.(`exec approvals: iOS relay APNs config unavailable: ${relay.error}`);

173+

}

167174

}

168175

}

176+

const relayConfig = relayConfigByNodeId.values().next().value;

169177
170178

return {

171179

targets: targets.filter((target) =>

172-

target.registration.transport === "direct" ? Boolean(directAuth) : Boolean(relayConfig),

180+

target.registration.transport === "direct"

181+

? Boolean(directAuth)

182+

: relayConfigByNodeId.has(target.nodeId) &&

183+

relayConfigByNodeId.get(target.nodeId)?.baseUrl === relayConfig?.baseUrl,

173184

),

174185

directAuth,

175186

relayConfig,

Original file line numberDiff line numberDiff line change

@@ -729,13 +729,17 @@ describe("node.invoke APNs wake path", () => {

729729

apnsReason: "Unregistered",

730730

apnsStatus: 410,

731731

});

732-

expect(mocks.resolveApnsRelayConfigFromEnv).toHaveBeenCalledWith(process.env, {

733-

push: {

734-

apns: {

735-

relay: DEFAULT_RELAY_CONFIG,

732+

expect(mocks.resolveApnsRelayConfigFromEnv).toHaveBeenCalledWith(

733+

process.env,

734+

{

735+

push: {

736+

apns: {

737+

relay: DEFAULT_RELAY_CONFIG,

738+

},

736739

},

737740

},

738-

});

741+

{ registrationRelayOrigin: undefined },

742+

);

739743

expect(mocks.shouldClearStoredApnsRegistration).toHaveBeenCalledWith({

740744

registration,

741745

result: {

Original file line numberDiff line numberDiff line change

@@ -199,8 +199,16 @@ async function resolveDirectNodePushConfig() {

199199

: { ok: false as const, error: auth.error };

200200

}

201201
202-

function resolveRelayNodePushConfig(cfg: OpenClawConfig) {

203-

const relay = resolveApnsRelayConfigFromEnv(process.env, cfg.gateway);

202+

function resolveRelayNodePushConfig(

203+

cfg: OpenClawConfig,

204+

registration: Extract<

205+

NonNullable<Awaited<ReturnType<typeof loadApnsRegistration>>>,

206+

{ transport: "relay" }

207+

>,

208+

) {

209+

const relay = resolveApnsRelayConfigFromEnv(process.env, cfg.gateway, {

210+

registrationRelayOrigin: registration.relayOrigin,

211+

});

204212

return relay.ok

205213

? { ok: true as const, relayConfig: relay.value }

206214

: { ok: false as const, error: relay.error };

@@ -493,7 +501,7 @@ export async function maybeWakeNodeWithApns(

493501
494502

let wakeResult;

495503

if (registration.transport === "relay") {

496-

const relay = resolveRelayNodePushConfig(opts?.cfg ?? getRuntimeConfig());

504+

const relay = resolveRelayNodePushConfig(opts?.cfg ?? getRuntimeConfig(), registration);

497505

if (!relay.ok) {

498506

return withDuration({

499507

available: false,

@@ -595,7 +603,7 @@ export async function maybeSendNodeWakeNudge(

595603

try {

596604

let result;

597605

if (registration.transport === "relay") {

598-

const relay = resolveRelayNodePushConfig(opts?.cfg ?? getRuntimeConfig());

606+

const relay = resolveRelayNodePushConfig(opts?.cfg ?? getRuntimeConfig(), registration);

599607

if (!relay.ok) {

600608

return withDuration({

601609

sent: false,