Skip to content

Conversation

Copy link

Copilot AI commented Nov 11, 2025

New Features:

  • Discord Rich Presence integration with opt-in privacy controls (disabled by default)
  • User-configurable Discord Application ID input field in Privacy settings
  • Privacy tab in preferences with granular controls: enable/disable Discord, show/hide artist, album, and track duration
  • Privacy settings apply to both Discord Rich Presence and macOS Now Playing (via souvlaki)
  • Support for music tracks (shows artist + album) and podcast episodes (shows podcast name)

Improvements:

  • Media controls now respect privacy settings, allowing users to hide specific information from Now Playing
  • Automatic Discord client reconnection when settings change (including App ID changes)
  • Graceful error handling when Discord is not running or App ID is not configured
  • Help text and placeholder in UI to guide users through Discord app registration

Bug Fixes:


Next Steps:

  • Test on all platforms (Linux, macOS, Windows) with proper build environment
  • Optional: Upload app assets to Discord for custom rich presence imagery
  • Optional: Add more detailed Discord setup guide in documentation

Implementation:

  • Added discord-rich-presence = "0.2.4" dependency

  • Added 5 config fields: enable_discord_presence, discord_app_id, presence_show_artist, presence_show_album, presence_show_track_duration

  • Modified PlaybackController to manage Discord IPC client lifecycle with user-provided App ID

  • Added update_discord_presence() method respecting privacy settings

  • Modified update_media_control_metadata() to respect privacy controls

  • Added Privacy preferences tab with text input for Discord App ID and checkboxes for all controls

  • Removed hardcoded placeholder App ID in favor of user-configurable field

    ~ ⋖,^><

Created from VS Code via the GitHub Pull Request extension.

Original prompt

Work on TODO: Add social presence sharing (e.g., Discord Rich Presence, macOS Now Playing) with opt-in privacy controls. (see jpochyla#605) (from TODO.md)

Created from VS Code via the GitHub Pull Request extension.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits November 11, 2025 23:27
…aring

Co-authored-by: isaaclins <104733575+isaaclins@users.noreply.github.com>
Co-authored-by: isaaclins <104733575+isaaclins@users.noreply.github.com>
Co-authored-by: isaaclins <104733575+isaaclins@users.noreply.github.com>
Copilot AI changed the title [WIP] Add social presence sharing with privacy controls Add Discord Rich Presence and privacy controls for social presence sharing Nov 11, 2025
Copilot AI requested a review from isaaclins November 11, 2025 23:34
@isaaclins
Copy link
Owner

@copilot hmm can you make it so the user can enter their own discord app id into the settings view instead of hardcoding it?

Co-authored-by: isaaclins <104733575+isaaclins@users.noreply.github.com>
Copy link
Author

Copilot AI commented Nov 11, 2025

@copilot hmm can you make it so the user can enter their own discord app id into the settings view instead of hardcoding it?

Done! Users can now enter their own Discord Application ID in the Privacy settings tab. Changes made in commit 8aeafaa:

UI Changes:
Added a text input field in the Privacy tab with:

  • Label: "Discord Application ID:"
  • Placeholder: "Enter your Discord Application ID"
  • Help text: "Register an application at discord.com/developers to get an Application ID"

Configuration:

  • Added discord_app_id: String config field (auto-saves on change)
  • Discord client automatically reconnects when App ID changes

Behavior:

  • If Discord presence is enabled but no App ID is provided, a warning is logged and presence won't activate
  • App ID is validated (trimmed, must not be empty)

Here's what the Privacy tab looks like now:

Privacy Settings
─────────────────────────────────────

Social Presence
Control what information is shared when you're listening to music.

☐ Enable Discord Rich Presence

Discord Application ID:
[Enter your Discord Application ID                       ]
Register an application at discord.com/developers to get an Application ID

─────────────────────────────────────

Presence Information
Choose what information to display in Discord Rich Presence and macOS Now Playing.

☑ Show artist name
☑ Show album name
☑ Show track duration

@isaaclins isaaclins marked this pull request as ready for review November 11, 2025 23:45
@isaaclins isaaclins merged commit 0b76f90 into copilot/vscode1762902921613 Nov 11, 2025
@isaaclins isaaclins deleted the copilot/add-social-presence-sharing branch November 13, 2025 08:51
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.

2 participants