Repository navigation
fix(ios): refuse a lit-panel window walk that recorded an XCTest issue - #5063
Merged
thymikee merged 1 commit intoNov 24, 2026
Merged
Conversation
On a lit-panel request, XCTest answers an app tree it cannot snapshot with an empty window list and a recorded issue. The booking read that list as an app without windows and refused with APP_SCREEN_WINDOW_UNRESOLVED, whose message names a system-surface fallback that gestures never try. The booking now holds the walk's issues: a walk that finds no window and records an issue refuses with APP_SCREEN_UNRESOLVED and a message about the unread windows, and dispatches nothing. Every held issue is recorded again as before. The no-window message no longer claims the system surface was asked. Closes callstack#5023.
Member
|
Thanks for the fix. At f299f0f, a lit-panel window walk that recorded an XCTest issue is now refused, and the Swift runner changes, the ADR and the TS comment show no problems. CI is green. Smoke Tests (ios), Repo Guards and Runner Build pass, and the two cancelled Body rules runs are superseded runs of the same workflow. There are no conflicts. Not verified here: the Swift runner unit tests and the mutation claims, which need an Xcode simulator. The Duo before/after run was not reproduced, and a hung query or a window gone mid-walk was seen only through the test probe, not live. Whether the runner unit-test lane runs in PR CI at this head was not checked either. |
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.
Summary
Closes #5023.
On a lit-panel request, XCTest answers an app tree it cannot snapshot with an empty window list and a recorded issue, not an exception. The booking read that as an app without windows and refused with
APP_SCREEN_WINDOW_UNRESOLVED, whose message names a system-surface fallback that gestures never try.bookRequestLitPanelSurfaceholds the walk's XCTest issues. A walk that finds no window and records one (a rejected tree, a window gone mid-walk, a hung query) refuses with a newunreadableWindowsrefusal:APP_SCREEN_UNRESOLVED,dispatched: no, and its own message and hint. Without an issue it staysAPP_SCREEN_WINDOW_UNRESOLVED; a walk that books a window keeps it.APP_SCREEN_WINDOW_UNRESOLVEDmessage no longer claims the system surface was asked.The gesture still does not dispatch: it needs the booked window for its display and frame (#3870).
Before / after
iPhone Duo simulator (iOS 27.2), test app heavy feed, base
63fe1b6fe, headf299f0f55. JSON trimmed to the error fields.Liked posts: 0at both. On Settings, head bookswindows=2and the press lands.Validation
f299f0f55:check:affected --run --head(exactCommit: true) passed format through vitest-related;pnpm gateprovider-integration (317 tests), adr-citations, xctest-selection, runner-error-codes and packaged-runner-swift passed..unresolvedScreenin its place, the old message and hint, and a guard that admits only kAX issues.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.