Repository navigation
Make monitor sessions headless and keep user Stop persistent - #161
Merged
swellweb merged 1 commit intoAug 10, 2026
Merged
Conversation
This was referenced Aug 7, 2026
Betafer
marked this pull request as ready for review
August 7, 2026 22:10
Owner
|
Thank you for this focused contribution. The resilient headless lifecycle and persistent user Stop behavior have been merged and released in TargetBridge 3.5.0 after local, live Thunderbolt and Apple Silicon/Intel CI verification. |
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.
A short story
Thank you for TargetBridge — I really enjoyed its architecture and the possibility it gives old iMacs.
My test setup is a Mac mini M4 with no permanent display and a 21.5-inch 2017 Retina 4K iMac as the Receiver. Once the video was working well, the remaining practical problem was startup: after a reboot or a temporary cable failure, the Mac mini still needed another monitor; conversely, an automatic retry loop could make the iMac impossible to stop. This change is the lifecycle part of that experiment.
It is split from the integrated prototype in #157 and is independent from both USB4 path selection (#159) and Retina 4K capture (#160), so it can be reviewed on its own.
What this PR adds
--retrymonitors an active session and retries transient startup, Receiver and cable failures;enabledmarker;State marker
The optional marker is:
~/Library/Application Support/TargetBridge/Sender/enabledThis PR only defines its lifecycle semantics. A later, separate installer PR can use it as a LaunchAgent
PathState: presence means automatic monitor mode is wanted; removal means the user explicitly stopped it. No LaunchAgent or packaging files are included here.Validation
git diff --checkpassed.The integrated hardware prototype was also exercised across three Sender restarts and one Receiver restart, recovering in approximately 3.1–7.4 seconds. That run is supporting hardware evidence; the reproducible validation for this intentionally standalone PR is the suite above.
Deliberately out of scope