MCPcopy Create free account
hub / github.com/chieapp/chie / updateMessage

Function updateMessage

src/model/base-chat-service.ts:298–304  ·  view source on GitHub ↗
(message: Partial<ChatMessage>, index: number)

Source from the content-addressed store, hash-verified

296
297 // Edit chat message in history without resending.
298 async updateMessage(message: Partial<ChatMessage>, index: number) {
299 const target = this.history[index];
300 if (!target)
301 throw new Error(`Invalid index ${index}.`);
302 deepAssign(target, message);
303 this.onUpdateMessage.emit(target, index);
304 }
305
306 // Clear chat history.
307 clear() {

Callers

nothing calls this directly

Calls 1

deepAssignFunction · 0.90

Tested by

no test coverage detected