Repository navigation
Fix fresh-install PyTCP compatibility - #5
Merged
Merged
Conversation
2 tasks done
pymobiledevice3 9.x calls PyTCP synchronously; pmd-pytcp 0.1.0+ is async, so an unpinned backend never opens a tunnel and floods QueueFull. The worker now checks this up front, logs the repair command once a minute, and reports problem=incompatibleBackend in status.json, which the app shows as a dedicated status message. Restore GPS keeps retrying. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Fresh GeoShift 1.5.2 installations can resolve pymobiledevice3 9.31.0 with pmd-pytcp 0.3.7. That backend calls PyTCP synchronously, while pmd-pytcp 0.1.0 and newer expose async methods, preventing the developer tunnel from opening and triggering a QueueFull callback flood.
Constrain pmd-pytcp to >=0.0.4,<0.1.0 in every documented installation/test command and Python CI. Add real installed-version and synchronous TCP/UDP API regression checks, a forced reinstall command for affected uv installations, and troubleshooting notes separating the callback flood from reconnect retries and misleading restore-status text.
Verification
swift test: 21 tests passed.uv run, freshuv tool install, and freshpipvenv. All resolved pymobiledevice3 9.31.0 + pmd-pytcp 0.0.6.uv runresolved pmd-pytcp 0.3.7; the two new tests failed with eight version/API assertions before the install commands were corrected.pip check: no broken requirements. The pairing helper imports successfully with the corrected backend.git diff --checkand packaging-script syntax checks passed.Physical-iPhone acceptance (2026-11-03, iOS 27.2 over trusted Wi-Fi): with the pinned backend (pmd-pytcp 0.0.6), GeoShift's worker code opened the developer tunnel and the DVT LocationSimulation channel, and the RSD UDID matched the target. An actual location set/clear (Start, Maps check, Restore GPS) was not exercised; the owner chose to merge without it. No release or version bump is part of this PR.
Safety impact
The constraint restores the synchronous dependency contract required by the existing tunnel implementation. Runtime safety logic for Start, Restore GPS, target identity, reconnect, heartbeat, termination, and pending clear is unchanged. Indefinite pending-clear retries remain necessary; general error deduplication and clearer device-discovery versus tunnel-failure UI are separate follow-ups.
Follow-up: detect an incompatible backend (8e80e3e)
iter_remote_paired_identifiersmoved out ofremote.tunnel_service, and_create_no_root_tunnel_providernow takes three arguments, so the worker would fail. The pin stays, and the upgrade is a separate, device-tested change. pmd-pytcp 0.0.4→0.0.6 contains only teardown robustness fixes and keeps the same synchronous API.keeper.pychecks for pymobiledevice3 9.x combined with an asyncpmd_pytcp.stack.startbefore opening a tunnel. If it finds that combination, it raisesIncompatibleBackendError, logs the repair command at most once a minute instead of aQueueFullflood, and writesproblem: "incompatibleBackend"to status.json. Pending Restore GPS keeps retrying.problemfield (old status files still decode) and shows a dedicated English/Russian status message.Scripts/do not install Python packages.Verification for the follow-up:
swift test: 23 tests passed;./Scripts/package_app.sh releasebuilt.uv tool installresolved pmd-pytcp 0.3.8 and failed 8 dependency assertions. The pinneduv tool install,uv tool install --forcerepair,uv run, and pip venv (+pip check) each resolved 0.0.6 and passed 25 tests.Fixes #4.
🤖 Generated with Claude Code