Repository navigation
v3.4.5: quieter background work, stable Remote Control, and Keychain-free Cursor usage - #193
Open
aashutoshrathi wants to merge 14 commits into
Open
aashutoshrathi wants to merge 14 commits into
aashutoshrathi wants to merge 14 commits into
Conversation
🪷 Generated with Sarvam Code Co-authored-by: Sarvam Code <code@sarvam.ai>
Reduce menu-bar energy usage
Keep Cursor usage refreshes free of sign-in prompts
Suppress SIGPIPE on the companion input descriptor before initial snapshots or heartbeat writes. A closed child reader now produces a catchable write error instead of terminating the menu-bar app. Add a closed-reader regression covering initial descriptor setup, heartbeat writes, snapshot updates, and timer shutdown. Verified with the 71-test RemoteControlServer suite.
A successful serve command could join an in-flight status read that captured the previous configuration. Queue one trailing read for explicit post-setup requests while ordinary polls continue to share the current task. Keep stale results from publishing and preserve cancellation generation guards. Cover coalescing, completed-task cleanup, and replacement rechecks with explicit reader handshakes instead of Task.yield assumptions.
Refresh setup details once when Settings becomes visible, including when Remote Control is stopped or using LAN. Keep periodic polling restricted to visible, relevant settings and suppress duplicate entry refreshes. Defer the popover-show visibility check until its delegate has updated the store. Test entry, reopen, relevance transitions, and cancellation using an injected tick publisher.
Allow UsageStore construction without automatic startup while preserving the production default. Agent tests explicitly start only the injected scanner and timer, avoiding user configuration, provider discovery, and connectivity work. Clean up test timers and guard controlled continuations. Exercise timer wiring separately from synchronous in-flight coalescing to remove scheduler-order assumptions. All five agent energy tests pass.
Use SwiftUI object ownership to construct the polling controller lazily once per Settings view lifetime, avoiding unused controller and publisher allocations on parent updates. Polling visibility and relevance behavior is unchanged.
Make snapshot publishing own exactly one repeating timer when its pipe is replaced. Add a two-pipe regression proving the old timer cannot emit and stopping invalidates the current timer.
stop() now retains the retiring process and launches a queued start only after that exact process exits, so a restart cannot race the old server for port 8765. Start intent is published as isStarting, which keeps Stop reachable while the replacement waits. Companion and tunnel callbacks capture their owning server and originating process weakly and ignore anything that is no longer the active instance, so queued output or termination from a replaced process cannot mutate the new server state or stop its tunnel. An unexpected companion exit now stops its tunnel too. Tunnel output is parsed on the reader queue, so repeated cloudflared log chunks no longer dispatch main-actor work once the URL is known. Add lifecycle regressions with fake processes, injected exit waiters, and an injectable callback dispatcher covering restart serialization, cancelled relaunches, latest host mode, stale output and termination, tunnel ownership, and failed launches. Manual handler calls use a closed pipe and bounded reads so they cannot block the runner.
Cover the Cursor Keychain-free usage path and the Remote Control pipe, restart, and heartbeat fixes alongside the existing background-work changes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
v3.4.5
Less background work, a Remote Control server that restarts cleanly, and Cursor usage without a Keychain prompt.
Changed
~/.cursor/auth.json. If neither is available, the card shows local activity. The Connect Cursor Usage action is gone, so a refresh never opens a macOS permission dialog.Fixed
Verification
swift test -Xswiftc -strict-concurrency=complete: 778 tests, 0 failures.git diff --check: clean.