[BUG] iOS app crashes when fetching environment list if any remote-control server (kind: "bridge") is registered
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The Claude iOS app crashes immediately when tapping the environment selector ("cloud" button) to choose where to run a session. The crash occurs whenever at least one claude remote-control server is registered — regardless of platform (macOS or Linux), working directory, path names, or capacity settings. Stopping all remote-control servers resolves the crash. The web app (claude.ai/code) handles the same environment list without issue.
What Should Happen?
The environment list should load and display all environments including kind: "bridge" (remote-control server) entries, just as the web app does
Error Messages/Logs
No error message is shown — the app crashes silently. The environments API response that triggers the crash looks like this:
{
"environments": [
{
"kind": "bridge",
"environment_id": "env_01DnCKcXXX",
"name": "XXX",
"created_at": "2026-06-06T20:40:53.426078Z",
"state": "active",
"config": null,
"bridge_info": {
"max_sessions": 32,
"machine_name": "XXX",
"directory": "/XXX",
"branch": "cf-webview-proxy",
"git_repo_url": "https://xxx.git",
"online": true,
"spawn_mode": null
}
},
{
"kind": "anthropic_cloud",
"environment_id": "env_014LUPUtzgHUjii2XXX",
"name": "Default",
"created_at": "2026-03-19T04:07:27.279781Z",
"state": "active",
"config": null,
"bridge_info": null
}
]
}
When only kind: "anthropic_cloud" entries are present, the list loads without issue.
Steps to Reproduce
- On any machine (macOS or Linux), run claude remote-control from a git repository directory
- Confirm the environment is registered — it appears correctly in the web app at claude.ai/code
- Open the Claude iOS app
- Tap "New Chat" → tap the cloud/environment selector button at the top
- App crashes immediately
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Unknown exact iOS app version — approximately 2 weeks ago
Claude Code Version
- Linux (Raspberry Pi, npm CLI): 2.1.167 - macOS (CLI): 2.1.153 - Both reproduce the issue
Platform
Other
Operating System
Other
Terminal/Shell
iTerm2
Additional Information
- The web app (claude.ai/code) correctly displays and handles kind: "bridge" environments — this is iOS-specific
- Related issue #44805 describes a separate but potentially related problem where git_repo_url in bridge_info triggers an erroneous GitHub auth check — the crash here may stem from a similar mishandling of bridge_info fields
- The spawn_mode: null field in bridge_info is a possible null-handling crash candidate
- Isolation confirmed: Mac server, Pi server, directory with spaces, directory without spaces — all crash iOS if kind: "bridge" is present. Removing all bridge environments = no crash.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗