MCPcopy Create free account
hub / github.com/anomalyco/opencode / updateOwnedAssistant

Function updateOwnedAssistant

packages/core/src/session/message-updater.ts:95–99  ·  view source on GitHub ↗
(messageID: SessionMessage.ID, recipe: (draft: DraftAssistant) => void)

Source from the content-addressed store, hash-verified

93 assistant?.content.findLast((item): item is DraftReasoning => item.type === "reasoning" && item.id === reasoningID)
94
95 const updateOwnedAssistant = (messageID: SessionMessage.ID, recipe: (draft: DraftAssistant) => void) =>
96 Effect.gen(function* () {
97 const assistant = yield* adapter.getAssistant(messageID)
98 if (assistant) yield* adapter.updateAssistant(produce(assistant, recipe))
99 })
100
101 return Effect.gen(function* () {
102 yield* SessionEvent.All.match(event, {

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected