MCPcopy Index your code
hub / github.com/codeaashu/claude-code / edit

Function edit

web/lib/api/messages.ts:139–150  ·  view source on GitHub ↗
(conversationId, newContent, historyBefore, opts)

Source from the content-addressed store, hash-verified

137 },
138
139 async *edit(conversationId, newContent, historyBefore, opts) {
140 const model = opts?.model ?? DEFAULT_MODEL;
141 const messages = [
142 ...toApiMessages(historyBefore),
143 { role: "user", content: newContent },
144 ];
145 yield* streamRequest(
146 conversationId,
147 { messages, model, stream: true },
148 opts
149 );
150 },
151
152 async stop(conversationId) {
153 activeControllers.get(conversationId)?.abort();

Callers

nothing calls this directly

Calls 2

toApiMessagesFunction · 0.85
streamRequestFunction · 0.85

Tested by

no test coverage detected