MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / setPrompt

Function setPrompt

packages/opencode-atomic-hooks/src/session.ts:209–213  ·  view source on GitHub ↗
(id: string, prompt: string)

Source from the content-addressed store, hash-verified

207 }
208
209 function setPrompt(id: string, prompt: string): void {
210 if (!prompt) return
211 const session = get(id)
212 session.lastPrompt = prompt
213 }
214
215 function startTool(id: string, callId: string, now?: number): void {
216 const session = get(id)

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected