Skip to content

feat(code): add Discord Rich Presence integration#2453

Draft
gantoine wants to merge 1 commit into
mainfrom
feat/discord-presence
Draft

feat(code): add Discord Rich Presence integration#2453
gantoine wants to merge 1 commit into
mainfrom
feat/discord-presence

Conversation

@gantoine
Copy link
Copy Markdown
Member

@gantoine gantoine commented Jun 1, 2026

Summary

Adds a Discord Rich Presence integration that surfaces the user's current activity in their Discord status.

  • Main-process service (discord-presence/service.ts) talking to Discord over its local IPC socket (discord-ipc.ts), with presence formatting helpers (presence-format.ts) and Zod schemas (schemas.ts).
  • tRPC router (routers/discord-presence.ts) exposing the service, wired into the root router and DI container.
  • Settings persistence via settingsStore plus a new Discord settings section in the renderer (DiscordSettings.tsx), gated by a settings dialog entry.
  • Subscription registrar (renderer/features/discord-presence/subscriptions.ts) wired once at app boot.
  • New .env.example entries and a vite.main.config.mts tweak for the integration.

Test plan

  • presence-format.test.ts unit tests
  • pnpm typecheck (ran via pre-commit hook)
  • Manual: enable Discord presence in settings with Discord running and confirm status updates

🤖 Generated with Claude Code

Add a Discord Rich Presence service that surfaces current activity in
the user's Discord status. Includes a main-process service over Discord
IPC, tRPC router, settings persistence, and a Discord settings section
in the renderer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant