Skip to content

Add support for proper integration with boring-notch#210

Open
BierDav wants to merge 6 commits into
sozercan:mainfrom
BierDav:feature/boring-notch-integration
Open

Add support for proper integration with boring-notch#210
BierDav wants to merge 6 commits into
sozercan:mainfrom
BierDav:feature/boring-notch-integration

Conversation

@BierDav

@BierDav BierDav commented Apr 22, 2026

Copy link
Copy Markdown
Screen.Recording.2026-04-22.at.07.36.49.mov

Mind that this PR relies on TheBoredTeam/boring.notch#1193 and vice versa

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@BierDav

BierDav commented Apr 25, 2026

Copy link
Copy Markdown
Author

@sozercan can you take a lot at this PR real quick?

@sozercan sozercan requested a review from Copilot April 25, 2026 16:46
Copilot stopped reviewing on behalf of sozercan due to an error April 25, 2026 16:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 5/5 changed files
  • Comments generated: 4

Comment thread Sources/Kaset/Services/BoringNotchBridgeService.swift
Comment thread Sources/Kaset/Services/BoringNotchBridgeService.swift
Comment thread Kaset.entitlements
Comment thread Sources/Kaset/Services/BoringNotchBridgeService.swift
@BierDav

BierDav commented Apr 27, 2026

Copy link
Copy Markdown
Author

@sozercan can you try to invoke Copilot? It seems like it doesn't respond to my comments

@BierDav

BierDav commented May 1, 2026

Copy link
Copy Markdown
Author

I've spent some AI tokens, now the issues should be fixed as well as the formatting and linting

Copilot AI review requested due to automatic review settings May 15, 2026 14:50
@BierDav

BierDav commented May 15, 2026

Copy link
Copy Markdown
Author

@sozercan do you plan to even merge it all?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

}

let response = Self.webSocketHandshakeResponse(secWebSocketKey: secWebSocketKey)
self.sendHTTPResponse(id: connectionID, response)
Comment on lines +150 to +152
// Check if host represents loopback
let debugDesc = host.debugDescription
isLoopback = debugDesc.contains("127.0.0.1") || debugDesc.contains("::1") || debugDesc.contains("localhost")

do {
let parameters = NWParameters.tcp
parameters.allowLocalEndpointReuse = true
do {
let parameters = NWParameters.tcp
parameters.allowLocalEndpointReuse = true
// Constrain listener to loopback interface to prevent unintended network exposure
Comment on lines +534 to +550
if previous == nil {
self.broadcastWebSocketJSON(self.playerInfoPayload(type: "PLAYER_INFO", snapshot: snapshot))
}

if previous?.videoId != snapshot.videoId {
self.broadcastWebSocketJSON(self.playerInfoPayload(type: "VIDEO_CHANGED", snapshot: snapshot))
// Some clients only refresh now-playing metadata on PLAYER_INFO.
self.broadcastWebSocketJSON(self.playerInfoPayload(type: "PLAYER_INFO", snapshot: snapshot))
}

if previous?.isPaused != snapshot.isPaused {
self.broadcastWebSocketJSON(self.playerInfoPayload(type: "PLAYER_STATE_CHANGED", snapshot: snapshot))
}

if previous?.title != snapshot.title || previous?.artist != snapshot.artist || previous?.album != snapshot.album {
self.broadcastWebSocketJSON(self.playerInfoPayload(type: "PLAYER_INFO", snapshot: snapshot))
}
Comment on lines +67 to +71
self.listener?.cancel()
for state in self.connections.values {
state.connection.cancel()
}
self.monitorTask?.cancel()
@sozercan

Copy link
Copy Markdown
Owner

@BierDav do you know when TheBoredTeam/boring.notch#1193 might be merged? I don’t use Boring Notch myself, so it’s a bit harder for me to prioritize

@BierDav

BierDav commented May 16, 2026

Copy link
Copy Markdown
Author

It is a bit of a deadlock situation, currently 😅 but considering that boring.notch is the bigger project it would make sense to me to merge it here first. Additionally the change in boring notch is very small. It basically only consists of adding the bundle id of kaset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants