MCPcopy
hub / github.com/cursor/cookbook / setConversationRuntime

Function setConversationRuntime

sdk/app-builder/src/components/app-builder.tsx:465–478  ·  view source on GitHub ↗
(
    conversationId: string,
    updater: (
      current: ConversationRuntimeState
    ) => ConversationRuntimeState
  )

Source from the content-addressed store, hash-verified

463 )
464
465 function setConversationRuntime(
466 conversationId: string,
467 updater: (
468 current: ConversationRuntimeState
469 ) => ConversationRuntimeState
470 ) {
471 setRuntimeByConversationId((current) => {
472 const previous = current[conversationId] ?? createRuntimeState()
473 return {
474 ...current,
475 [conversationId]: updater(previous),
476 }
477 })
478 }
479
480 function setConversationTitleGenerationState(
481 conversationId: string,

Callers 6

AppBuilderFunction · 0.85
openOnboardingFunction · 0.85
createSessionFromApiKeyFunction · 0.85
clearSavedApiKeyFunction · 0.85
retrySavedApiKeyFunction · 0.85
sendMessageFunction · 0.85

Calls 1

createRuntimeStateFunction · 0.85

Tested by

no test coverage detected