Skip to content

fix(apple): report a timed-out foldable rotation as possibly applied, and warn that simulator wifi is status-bar only - #5019

Merged
thymikee merged 2 commits into
callstack:mainfrom
imranbarbhuiya:fix/apple-sim-orientation-and-network-settings
Nov 23, 2026
Merged

thymikee merged 2 commits into
callstack:mainfrom
imranbarbhuiya:fix/apple-sim-orientation-and-network-settings

Conversation

@imranbarbhuiya

@imranbarbhuiya imranbarbhuiya commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On a foldable iOS simulator, a rotation that timed out said "Unable to send", even when the screen had rotated. It now reports orientation-hid-dispatch-timed-out with dispatched: unknown, and the hint says to check with a screenshot and that a retry is safe.

On iOS simulators, settings wifi and settings airplane printed "Updated setting" although only the status bar changed. They now add a warning that the simulator keeps using the Mac's network, and commands.md says so.

Before / after

iPhone 17 Pro simulator (iOS 27.2):

$ settings wifi off
base a4f2dcad0: Updated setting: wifi
head 342917b6f: Updated setting: wifi
                Warning: settings wifi changes only the simulator status bar; the simulator keeps using the host Mac's network.

From tests, after fold half-open, with the helper taking more than 5 s:

$ orientation landscape-left
base: Unable to send the simulator orientation
head: Timed out sending the simulator orientation; the rotation may have applied

Validation

  • Head 342917b6f, check:affected --run --head, exactCommit: true. Every gate passes except unit, where upload-http-deadline and committed-source-tree fail the same way on clean main on this macOS host.
  • Run directly: provider integration (317 passed), command-docs, doc-links, doc-prose.
  • The new cases fail without the fix, and the error reasons page is regenerated.

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff

@thymikee

Copy link
Copy Markdown
Member

Thanks for the fix. The PR is ready at 342917b, and the code looks correct. No conflicts are known. The only checks not passing are two cancelled "Body rules" runs, which look unrelated to this diff, so merge once they rerun green. Not blocking, and fine to take or leave: add one sentence to the settings help paragraph at https://github.com/callstack/agent-device/blob/342917b/packages/command-surface/src/capture/settings.ts#L108 so the CLI help also says simulator wifi is status-bar only; assert the message text (setting name and status bar) in the wifi/airplane test at packages/platform-apple/src/core/tests/app-settings.test.ts#L574; consider a follow-up issue for the pose dispatch in https://github.com/callstack/agent-device/blob/342917b/packages/platform-apple/src/foldable/fold-helper.ts#L181, which can also land after its timeout; and split unrelated fixes into separate PRs next time. Not verified here: the tests were not run, no simulator run was done, a live timed-out rotation was not reproduced, and the PR body output has no backing artifact.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 23, 2026
@thymikee
thymikee merged commit faffd73 into callstack:main Nov 23, 2026
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants