openclaw/apps/ios/Sources
Chris Herold 6e33f3f0f3
iOS: implement dual-connection gateway architecture with deadlock fix
Aligns the iOS app with the Clawnet refactor by implementing proper role
separation for gateway connections. Uses separate operator and node sessions
to match the gateway's authorization requirements.

Changes:
- New GatewayOperatorSession: Wraps GatewayChannelActor for operator-role
  RPC requests (chat.*, health, sessions.list) without invoke handling
- Dual-connection architecture: Operator session for requests, node session
  for node.event calls (e.g., chat.subscribe)
- Separate websocket sessions: Each connection gets its own URLSession to
  prevent response cross-talk
- Updated chat transport: IOSGatewayChatTransport uses operator session for
  requests, node session for subscriptions

ClawdbotKit (shared):
- Deadlock fix in GatewayChannel.swift: Moved connection finalization
  (listen(), connected=true, isConnecting=false, waiter resumption) to occur
  before calling pushHandler. This fixes a latent bug where requests made
  from onConnected callbacks would deadlock. Does not affect macOS (its
  callback doesn't make requests).
- Package.swift: Fixed argument order for Swift 6.2 compatibility

iOS chat is now working. This is the base PR to unlock further work on
the iOS app.
2026-01-27 14:46:27 -08:00
..
Assets.xcassets Rebrand app icons from Clawdis to Clawdbot 2026-01-08 23:31:24 +01:00
Camera refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
Chat iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
Gateway iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
Location refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
Model iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
Screen Branding: update bot.molt bundle IDs + launchd labels 2026-01-27 14:46:50 -06:00
Settings iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
Status iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
Voice iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
ClawdbotApp.swift refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
Info.plist refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
RootCanvas.swift iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
RootTabs.swift iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
SessionKey.swift fix: use canonical main session keys in apps 2026-01-15 08:59:05 +00:00