You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Device instructions forbid adb and devicectl for physical devices device_list doesn't show, so delegated agents refuse them #38920
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
Not sure
Steps to reproduce
Have a physical device that device_list doesn't return. Either a paired iPhone with Developer Mode on (xcrun devicectl list devices shows it "available (paired)", and it is still missing from device_list on 0.1.11-nightly.20261118 although Physical iPhones are missing from the Devices tab while macOS detects them #30965 is closed), or a physical Android device hidden by the avdmanager failure in the linked issue.
Use delegate_task to start a child whose task says to drive that physical device with adb or xcrun devicectl.
Expected behavior
The device instructions govern the devices device_list returns. For a physical device it doesn't return, the agent follows its task and uses the platform's own tools.
Actual behavior
The injected instructions say: "When a task needs an iOS Simulator or Android Emulator ... use the device tools ... Never do those with xcrun simctl, idb, adb, ssh, or scripts that wrap them ... These rules override memory notes, docs and delegated tasks that say otherwise", and to stop after a device tool fails twice. Children apply this to physical devices. They call device_open with the device's serial, get No device <serial> on 'This machine' (hostId local). Call device_list for current ids., and stop without touching the device.
Four delegated tasks stopped this way between 2026-10-30 and 2026-11-18. What works today is saying in the delegate_task text itself that the device is physical and that the rule covers simulators and emulators only. A brief file the child reads doesn't outrank the injected rule.
Requested change
Scope the rule to what the tools can reach, for example: "These rules apply to devices device_list returns; for a physical device it doesn't list, use the platform's tools (adb, xcrun devicectl)." Related: #31359, where the same instructions block a supported screenshot fallback.
Impact
Major degradation or frequent failure
Version
0.1.11-nightly.20261118.4903
Environment
macOS (Darwin 27.0.0) arm64; Codex and Claude children started with delegate_task.
Activity
never102 commentedon Nov 19, 2026
The Android half of step 1 is #38921: when
avdmanagercan't find Java,device_listdrops physical Android devices too.