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

推荐订阅源

L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
博客园 - 司徒正美
罗磊的独立博客
D
Docker
Last Week in AI
Last Week in AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
V
V2EX
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog RSS Feed
A
About on SuperTechFans
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
P
Proofpoint News Feed

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
feat: add ios push relay diagnostics · openclaw/openclaw@...
joshavant · 2026-06-23 · via Recent Commits to openclaw:main

@@ -276,7 +276,20 @@ final class PushRelayClient: @unchecked Sendable {

276276

}

277277278278

func register(_ input: PushRelayRegistrationInput) async throws -> PushRelayRegisterResponse {

279-

let challenge = try await self.fetchChallenge()

279+

GatewayDiagnostics.pushRelay.stage(

280+

"registration start origin=\(self.normalizedBaseURLString) "

281+

+ "apns=\(input.environment.rawValue) "

282+

+ "profile=\(input.relayProfile.rawValue) "

283+

+ "proof=\(input.proofPolicy.rawValue)")

284+

let challenge: PushRelayChallengeResponse

285+

do {

286+

GatewayDiagnostics.pushRelay.stage("challenge request start")

287+

challenge = try await self.fetchChallenge()

288+

GatewayDiagnostics.pushRelay.stage("challenge received")

289+

} catch {

290+

GatewayDiagnostics.pushRelay.failed("challenge request", error: error)

291+

throw error

292+

}

280293

let signedPayload = PushRelayRegisterSignedPayload(

281294

challengeId: challenge.challengeId,

282295

installationId: input.installationId,

@@ -295,15 +308,38 @@ final class PushRelayClient: @unchecked Sendable {

295308

apnsEnvironment: input.environment.rawValue,

296309

relayProfile: input.relayProfile.rawValue,

297310

proofPolicy: input.proofPolicy.rawValue)

298-

let appAttest = try await self.createAppAttestProofIfNeeded(

299-

proofPolicy: input.proofPolicy,

300-

challenge: challenge.challenge,

301-

signedPayloadData: signedPayloadData,

302-

scope: appAttestScope)

303-

let receipt = try await self.createReceiptIfNeeded(proofPolicy: input.proofPolicy)

304-

let simulatorProof = try self.createSimulatorProofIfNeeded(

305-

proofPolicy: input.proofPolicy,

306-

signedPayloadData: signedPayloadData)

311+

let appAttest: PushRelayAppAttestProof?

312+

do {

313+

GatewayDiagnostics.pushRelay.stage("app attest proof start")

314+

appAttest = try await self.createAppAttestProofIfNeeded(

315+

proofPolicy: input.proofPolicy,

316+

challenge: challenge.challenge,

317+

signedPayloadData: signedPayloadData,

318+

scope: appAttestScope)

319+

GatewayDiagnostics.pushRelay.stage("app attest proof complete included=\(appAttest != nil)")

320+

} catch {

321+

GatewayDiagnostics.pushRelay.failed("app attest proof", error: error)

322+

throw error

323+

}

324+

let receipt: PushRelayReceiptPayload?

325+

do {

326+

GatewayDiagnostics.pushRelay.stage("receipt proof start")

327+

receipt = try await self.createReceiptIfNeeded(proofPolicy: input.proofPolicy)

328+

GatewayDiagnostics.pushRelay.stage("receipt proof complete included=\(receipt != nil)")

329+

} catch {

330+

GatewayDiagnostics.pushRelay.failed("receipt proof", error: error)

331+

throw error

332+

}

333+

let simulatorProof: PushRelaySimulatorProofPayload?

334+

do {

335+

simulatorProof = try self.createSimulatorProofIfNeeded(

336+

proofPolicy: input.proofPolicy,

337+

signedPayloadData: signedPayloadData)

338+

GatewayDiagnostics.pushRelay.stage("simulator proof complete included=\(simulatorProof != nil)")

339+

} catch {

340+

GatewayDiagnostics.pushRelay.failed("simulator proof", error: error)

341+

throw error

342+

}

307343

let requestBody = PushRelayRegisterRequest(

308344

challengeId: signedPayload.challengeId,

309345

installationId: signedPayload.installationId,

@@ -334,20 +370,38 @@ final class PushRelayClient: @unchecked Sendable {

334370

request.setValue("application/json", forHTTPHeaderField: "Content-Type")

335371

request.httpBody = try self.jsonEncoder.encode(requestBody)

336372337-

let (data, response) = try await self.session.data(for: request)

373+

let data: Data

374+

let response: URLResponse

375+

do {

376+

GatewayDiagnostics.pushRelay.stage("register request start")

377+

(data, response) = try await self.session.data(for: request)

378+

} catch {

379+

GatewayDiagnostics.pushRelay.failed("register request", error: error)

380+

throw error

381+

}

338382

let status = Self.statusCode(from: response)

383+

GatewayDiagnostics.pushRelay.stage("register response status=\(status)")

339384

guard (200..<300).contains(status) else {

340385

if status == 401 {

341386

// If the relay rejects registration, drop local App Attest state so the next

342387

// attempt re-attests instead of getting stuck without an attestation object.

343388

_ = PushRelayRegistrationStore.clearAppAttestKeyID(scope: appAttestScope)

344389

_ = PushRelayRegistrationStore.clearAttestedKeyID(scope: appAttestScope)

345390

}

346-

throw PushRelayError.requestFailed(

391+

let relayError = PushRelayError.requestFailed(

347392

status: status,

348393

message: Self.decodeErrorMessage(data: data))

394+

GatewayDiagnostics.pushRelay.stage("register response failed status=\(status)")

395+

throw relayError

396+

}

397+

do {

398+

let decoded = try self.decode(PushRelayRegisterResponse.self, from: data)

399+

GatewayDiagnostics.pushRelay.stage("registration response decoded")

400+

return decoded

401+

} catch {

402+

GatewayDiagnostics.pushRelay.failed("registration response decode", error: error)

403+

throw error

349404

}

350-

return try self.decode(PushRelayRegisterResponse.self, from: data)

351405

}

352406353407

private func createAppAttestProofIfNeeded(