openclaw/docs
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
..
_layouts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
assets refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
automation refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
channels refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
cli refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
concepts Mac: finish Moltbot rename 2026-01-27 14:12:17 -06:00
debug refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
diagnostics refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
experiments refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
gateway Branding: update bot.molt bundle IDs + launchd labels 2026-01-27 14:46:50 -06:00
help Branding: update bot.molt bundle IDs + launchd labels 2026-01-27 14:46:50 -06:00
hooks refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
images docs: add group flow diagram 2026-01-10 20:05:22 +01:00
install Branding: update bot.molt bundle IDs + launchd labels 2026-01-27 14:46:50 -06:00
nodes refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
platforms iOS: implement dual-connection gateway architecture with deadlock fix 2026-01-27 14:46:27 -08:00
plugins refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
providers refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
refactor refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
reference refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
security refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
start refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
tools refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
web refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
_config.yml refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
bedrock.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
brave-search.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
broadcast-groups.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
CNAME chore: update molt.bot domains 2026-01-27 12:21:01 +00:00
date-time.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
debugging.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
docs.json refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
environment.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
hooks.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
index.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
logging.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
multi-agent-sandbox-tools.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
network.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
northflank.mdx refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
perplexity.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
plugin.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
prose.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
railway.mdx refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
render.mdx refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
scripts.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
testing.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
token-use.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
tts.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
tui.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
vps.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
whatsapp-clawd.jpg Add WhatsApp screenshot to claude-config.md 2025-11-27 18:43:24 +01:00