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
T3's device instructions require the bound agent-device command returned by device_open for screenshots, but also require device_screenshot and tell the agent to stop after a repeated device-tool failure. When the hub screenshot endpoint fails but the bound CLI remains usable, these rules block the supported recovery path.
The injected instruction says:
If a device tool or the command it returned fails, quote its error and follow its advice once, but never reuse or close another session; if it still fails, tell the user and stop, unless they explicitly asked you to drive it over ssh.
Observed behavior
T3 Code Beta 0.1.7, local Apple Silicon host, expo-device-hub 0.19.1, agent-device 0.21.31, iOS 26.3 simulator. device_list and device_open succeeded. device_screenshot returned “The device hub could not complete the request” twice, including after the prescribed state check. A controlled app investigation stopped before any app trials.
An earlier session on this machine captured and inspected a readable PNG through the exact bound agent-device screenshot command while hub screenshots failed. That is evidence the paths can fail independently, not a guarantee the CLI works in every failure. Related capture regression: #28035. Related error reporting: #24033.
Requested change
Add a narrow screenshot recovery exception before the blanket stop rule:
If device_screenshot fails after its prescribed retry, but device_open succeeded and the owned device remains available, test capture once using the exact bound agent-device command returned by device_open. Follow its supported open/screenshot sequence and inspect the image. If capture succeeds, continue through that bound command and report the hub capture failure. If it fails, stop and report both errors. Do not use raw simctl/adb/SSH, reuse another session, bypass ownership failures, or treat failed device attachment as a screenshot-only failure.
Keep this limited to a hub capture failure; do not relax controls for device ownership, unavailable platforms, failed attachment, or general command failures.
Validation
Cover hub failure plus successful bound capture, both capture routes failing, and failed/foreign device attachment. Ensure the generated instructions for Codex and other providers contain the same narrow exception. A personal project workflow cannot override the injected higher-priority stop instruction, so the change must be in T3's instruction source.
Activity