MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / setActiveCharacter

Function setActiveCharacter

apps/webuiapps/src/lib/characterManager.ts:280–286  ·  view source on GitHub ↗
(
  collection: CharacterCollection,
  id: string,
)

Source from the content-addressed store, hash-verified

278}
279
280export function setActiveCharacter(
281 collection: CharacterCollection,
282 id: string,
283): CharacterCollection {
284 if (!collection.items[id]) return collection;
285 return { ...collection, activeId: id };
286}
287
288// ---------------------------------------------------------------------------
289// Backward compat: single-character load/save wrappers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected