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

推荐订阅源

博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
GbyAI
GbyAI
博客园_首页
V
Visual Studio Blog
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
腾讯CDC
博客园 - Franky
IT之家
IT之家
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell

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
fix(ios): remove stale notification authorization seam · ...
joshavant · 2026-06-22 · via Recent Commits to openclaw:main

@@ -200,24 +200,12 @@ private final class MockWatchMessagingService: @preconcurrency WatchMessagingSer

200200201201

private final class MockBootstrapNotificationCenter: NotificationCentering, @unchecked Sendable {

202202

var status: NotificationAuthorizationStatus = .notDetermined

203-

var requestAuthorizationResult = false

204-

var requestAuthorizationCalls = 0

205203

var addCalls = 0

206204207205

func authorizationStatus() async -> NotificationAuthorizationStatus {

208206

self.status

209207

}

210208211-

func requestAuthorization(options _: UNAuthorizationOptions) async throws -> Bool {

212-

self.requestAuthorizationCalls += 1

213-

if self.requestAuthorizationResult {

214-

self.status = .authorized

215-

} else {

216-

self.status = .denied

217-

}

218-

return self.requestAuthorizationResult

219-

}

220-221209

func add(_: UNNotificationRequest) async throws {

222210

self.addCalls += 1

223211

}

@@ -1233,15 +1221,6 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

12331221

hasStoredOperatorToken: false))

12341222

}

123512231236-

@Test @MainActor func successfulBootstrapOnboardingDoesNotRequestNotificationAuthorization() async {

1237-

let center = MockBootstrapNotificationCenter()

1238-

let appModel = NodeAppModel(notificationCenter: center)

1239-1240-

await appModel._test_handleSuccessfulBootstrapGatewayOnboarding()

1241-1242-

#expect(center.requestAuthorizationCalls == 0)

1243-

}

1244-12451224

@Test @MainActor func operatorGatewayRequestedEventShowsNotificationGuidanceWhenNotificationsOff() async throws {

12461225

let center = MockBootstrapNotificationCenter()

12471226

center.status = .notDetermined

@@ -1258,7 +1237,6 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

1258123712591238

let prompt = try #require(appModel._test_pendingNotificationPermissionGuidancePrompt())

12601239

#expect(prompt.approvalId == "approval-notifications-off")

1261-

#expect(center.requestAuthorizationCalls == 0)

12621240

}

1263124112641242

@Test @MainActor func suppressedOperatorGatewayRequestedEventDoesNotShowNotificationGuidance() async {

@@ -1277,7 +1255,6 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

12771255

stateversion: nil))

1278125612791257

#expect(appModel._test_pendingNotificationPermissionGuidancePrompt() == nil)

1280-

#expect(center.requestAuthorizationCalls == 0)

12811258

}

1282125912831260

@Test @MainActor func operatorGatewayResolvedEventClearsNotificationGuidancePrompt() async throws {

@@ -1364,7 +1341,7 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

13641341

#expect(res.error?.message.contains("CAMERA_DISABLED") == true)

13651342

}

136613431367-

@Test @MainActor func systemNotifyDoesNotRequestNotificationAuthorizationWhenOff() async throws {

1344+

@Test @MainActor func systemNotifyReturnsUnavailableWhenNotificationsOff() async throws {

13681345

let center = MockBootstrapNotificationCenter()

13691346

center.status = .notDetermined

13701347

let appModel = NodeAppModel(notificationCenter: center)

@@ -1380,7 +1357,6 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

13801357

#expect(res.ok == false)

13811358

#expect(res.error?.code == .unavailable)

13821359

#expect(res.error?.message == "NOT_AUTHORIZED: notifications")

1383-

#expect(center.requestAuthorizationCalls == 0)

13841360

#expect(center.addCalls == 0)

13851361

}

13861362

@@ -1398,11 +1374,10 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

13981374

let res = await appModel._test_handleInvoke(req)

1399137514001376

#expect(res.ok)

1401-

#expect(center.requestAuthorizationCalls == 0)

14021377

#expect(center.addCalls == 1)

14031378

}

140413791405-

@Test @MainActor func chatPushWithoutSpeechDoesNotRequestNotificationAuthorizationWhenOff() async throws {

1380+

@Test @MainActor func chatPushWithoutSpeechReturnsUnavailableWhenNotificationsOff() async throws {

14061381

let center = MockBootstrapNotificationCenter()

14071382

center.status = .notDetermined

14081383

let appModel = NodeAppModel(notificationCenter: center)

@@ -1418,7 +1393,6 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

14181393

#expect(res.ok == false)

14191394

#expect(res.error?.code == .unavailable)

14201395

#expect(res.error?.message == "NOT_AUTHORIZED: notifications")

1421-

#expect(center.requestAuthorizationCalls == 0)

14221396

#expect(center.addCalls == 0)

14231397

}

14241398

@@ -1436,7 +1410,6 @@ private final class MockBootstrapNotificationCenter: NotificationCentering, @unc

14361410

let res = await appModel._test_handleInvoke(req)

1437141114381412

#expect(res.ok)

1439-

#expect(center.requestAuthorizationCalls == 0)

14401413

#expect(center.addCalls == 1)

14411414

}

14421415