rouse-context/api
Jason Monk d1848db4a1 Show the actual AI client name in outreach launch notifications
"AI client wants to open Spotify" is now "Claude wants to open Spotify"
when the calling client supplied client_name during OAuth DCR. Falls
back to the generic "AI client" label when no name is set.

Plumbing:
 - TokenStore gains resolveClientName(integrationId, token). Both the
   in-memory and Room-backed implementations resolve from the stored
   DCR label (or null when that equals the opaque clientId).
 - McpRouting.handleMcp reads the name right after bearer validation
   and wraps the SDK dispatch in withContext(McpClientContext(...)),
   a tiny CoroutineContext.Element in :core:mcp.
 - LaunchRequestNotifierApi.postLaunchApp / postOpenLink take an
   optional clientName. LaunchRequestNotifier uses it to format the
   notification title (%1$s wants to open %2$s).
 - OutreachMcpProvider's launch_app and open_link tools read the name
   from coroutineContext[McpClientContext] and pass it to the notifier
   fallback.

Non-goals: this only touches the launch-app/open-link notifications.
Other user-facing prompts (auth approval, per-tool-call) already show
client identity via a different path and are unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 16:35:06 -04:00
..
src Show the actual AI client name in outreach launch notifications 2026-04-16 16:35:06 -04:00
build.gradle.kts Fix #18: Update Gradle wrapper and dependencies to latest stable 2026-04-11 17:36:46 -04:00