MCPcopy
hub / github.com/coder/mux / setWorkspaceModelWithOrigin

Function setWorkspaceModelWithOrigin

src/browser/utils/modelChange.ts:69–76  ·  view source on GitHub ↗
(
  workspaceId: string,
  model: string,
  origin: ModelChangeOrigin
)

Source from the content-addressed store, hash-verified

67}
68
69export function setWorkspaceModelWithOrigin(
70 workspaceId: string,
71 model: string,
72 origin: ModelChangeOrigin
73): void {
74 recordWorkspaceModelChange(workspaceId, model, origin);
75 updatePersistedState(getModelKey(workspaceId), model);
76}

Calls 3

updatePersistedStateFunction · 0.90
getModelKeyFunction · 0.90

Tested by

no test coverage detected