Showing the changes to apps/cloud/src (1 of 6 files). Show all
Unified · Split
| @@ -379,6 +379,10 @@ export class McpSessionDOSqlite extends McpAgentSessionDOBase<Env, CloudSessionD · 378 unmodified lines | ||
| 379 | 379 | // the negotiated apps support comes back from storage instead. |
| 380 | 380 | restoredAppsEnabled: sessionMeta.appsEnabled ?? false, |
| 381 | 381 | onAppsEnabledChange: (appsEnabled) => self.persistAppsEnabled(appsEnabled), |
| 382 | + // Same restore contract for the client identity that keys the | |
| 383 | + // `mcp.client.*` span attribution on execution spans. | |
| 384 | + ...(sessionMeta.clientInfo ? { restoredClientInfo: sessionMeta.clientInfo } : {}), | |
| 385 | + onClientInfoChange: (clientInfo) => self.persistClientInfo(clientInfo), | |
| 382 | 386 | appsEnabled: false, |
| 383 | 387 | sessionful: true, |
| 384 | 388 | requestStateSigningKey: self.modernRequestStateSigningKey(), |