Repository navigation
Conversation
Replace mobile_choose_devices with mobile_show_devices, the one user-facing device tool. Without selectionMode it lists every simulator, emulator and physical device in an inline card with Boot/Stop and a Use button that sends the selection to chat. With selectionMode it uses the native Codex form when available, the card elsewhere, and asks in chat on hosts with neither. Candidate devices are optional and discovered when omitted. Card results return a short summary so the model does not repeat the list. Adds the devices telemetry surface and a mode attribute on the existing device_picker metrics. Closes #32 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
grabbou
added this pull request to stack #41
October 24, 2026 09:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #34. Closes #32.
Asking Mobile Dev to list devices now shows an interactive card instead of a model-written table.
mobile_show_devicesreplacesmobile_choose_devicesas the one user-facing device tool.selectionMode): one card with every simulator, emulator and physical device. Running devices come first, then physical devices with their connection state, then stopped devices grouped by OS version (collapsible, with a filter once there are more than 8). Each row has Boot or Stop, and checked devices go to chat with their IDs. The text result is a one-line summary so the model doesn't repeat the list. Hosts without app cards get the list as text.selectionMode+message): Codex gets the native form as before, and the card then shows only the result. Claude Desktop gets the card with a Use button; the call returns immediately and tells the model to wait for the reply in chat. Hosts with neither return an error, so the model asks in chat.devicesis now optional. If omitted, the tool discovers devices itself. If one source fails (no Android SDK, older Xcode), the others are still listed with a note. The form shows at most 20 devices, running ones first.Telemetry: adds a
devicesUI surface (readiness,ui.devices.process,ui.devices.message_ack, device-count gauges, boot/stop/send counters). The existingdevice_picker.*metrics keep their names and gain a fixedmodeattribute (form/card/browse) and arenderedoutcome.docs/telemetry.mdcovers the change in whatpreparemeasures. No device names, IDs or chat text are sent.Assumption: a host that advertises native forms is treated as able to show app cards, because Codex may not advertise the standard MCP Apps extension.
Testing:
🤖 Generated with Claude Code