Skip to content

feat(ios): leave Split View on an iPhone Duo simulator - #5102

Merged
thymikee merged 3 commits into
mainfrom
feat/split-view-exit
Nov 25, 2026
Merged

thymikee merged 3 commits into
mainfrom
feat/split-view-exit

Conversation

@thymikee

@thymikee thymikee commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #4709. Run gesture swipe split-view-exit on an unfolded iPhone Duo simulator to drag the divider left and make the right-hand app fill the inner panel. The preset uses the display viewport and shares the existing Split View device checks.

Before / after

  • Base 3fd66c2b8b returns INVALID_ARGS for agent-device gesture swipe split-view-exit --json.
  • The preset runs a 700 ms timed drag from (475.5, 334.5) to (1, 334.5) on the tested Duo. The right-hand app fills the screen.

Validation

  • At 32644c8e7404137f4ea43136ee3c73c17f5bc30e on iPhone Duo, iOS 27.1, opened Settings, ran gesture swipe split-view-left, then opened Safari. Both app bindings worked in device trials. Folding closed returned split_view_unavailable with dispatched: no. The iOS runner build and XCTest selection check passed.
  • A coordinate pan bound to Safari failed the app viewport check. Opening SpringBoard directly moved Split View offscreen. A plain timed pan worked with both apps visible and display coordinates.
  • At 7b02767b66a8272cfc4e5419fc47574f3b9ef756, format, typecheck, R11 package boundaries, and 928 eager-closure and Split View tests passed. The classifier uses the existing contracts module.
  • At 4f72a4aed3f8f998de28f5ffb9f0f5d7e25daf44, the interactor and runner request fixture tests, typecheck, and macOS XCTest testEveryRunnerRequestFieldHasAProductionRequest passed. CI covers the full affected checks and platform smoke jobs.
  • At 72ca3bc2c35aee72f4b491abb3a50919de2104ef, typecheck passed. The new closed-Duo test covers display-viewport refusal before any runner call.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.60 MB 6.61 MB +949 B
Package (unpacked) 6.60 MB 6.60 MB +949 B
Package (download) 2.01 MB 2.01 MB +197 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 23.6 ms 22.6 ms -1.0 ms
CLI --help 50.1 ms 51.4 ms +1.3 ms

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 21 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 4f72a4a

No open findings.

1 finding below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (1c96b454527d).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 4f72a4a, and no code change is required before merge.

Not blocking, so each of these can be taken or left, here or in a follow-up issue: could split-view-exit refuse when the app already fills the lit panel, because the drag from the center to the left edge would otherwise reach that app as an ordinary swipe; the preset could declare its viewport scope in contracts so the daemon does not match the preset name; the second panel table read in one exit can stay as a defense or be skipped after a display-scoped viewport read; a closed-Duo gestureViewport('display') test expecting UNSUPPORTED_OPERATION / split_view_unavailable and no runner call would protect the first refusal on that route; and the refusal hint could keep a per-preset next step such as opening the app full screen.

The thread on the WebDriver import no longer applies and can be resolved, because isSplitViewContactOrigin is now imported from @agent-device/contracts/scroll-gesture instead of the dev-only gestures package.

The required device evidence is satisfied by the live account in the PR description from 32644c8, since the later commits only move code and add tests.

Not verified here: no live run output is attached, the tests were not run locally, the runner Swift change was checked by reading and not by an XCTest run, and runner acceptance of display coordinates while the app fills half the panel rests only on that live account.

The only check not passing is Body rules, which was cancelled by a newer run and checks the PR description format, so it is likely unrelated to this change; the other 21 checks pass.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 25, 2026
@thymikee
thymikee merged commit 8cd6a17 into main Nov 25, 2026
21 of 22 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.

iOS: enter and leave Split View on a simulator (iPhone Duo)

1 participant