Repository navigation
gateway: the macOS service runs with an app's priority - #5
Merged
Merged
Conversation
…s priority), so it keeps answering under memory pressure Kit-Commit: 5dcea2fb936e069c92781ef7d8c8fa7bf09f52d7 Kit-Only: gateway
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.
The launchd service file now sets
ProcessType Interactive.Why: every
claudecall waits on the gateway. Without a ProcessType, launchd may apply background limits. Under heavy memory pressure (swap at 14 GB, one 5.7 GB process), the gateway's page-ins queued behind other disk work and its health check timed out until the memory came back.Changed
gateway/src/service-launchd.ts: the plist gets<key>ProcessType</key><string>Interactive</string>gateway/test/service.test.ts: asserts the keygateway/docs/operations.md: the macOS row says soAn installed service picks it up on its next
service install;launchctl print gui/$UID/com.ak.gatewaythen showsspawn type = interactive.Checks:
npm run typecheck,npm run test:wire(182 pass),npm run test:engine(558 pass, 0 fail).