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

Method setPrompt

packages/opencode-atomic-hooks/src/session.ts:130–130  ·  view source on GitHub ↗

* Store the most recent user prompt for a session. * * Called from the `chat.message` hook. Only updates if `prompt` * is a non-empty string.

(id: string, prompt: string)

Source from the content-addressed store, hash-verified

128 * is a non-empty string.
129 */
130 setPrompt(id: string, prompt: string): void
131
132 /**
133 * Record the start time of a tool invocation for duration tracking.

Callers 2

createChatHandlerFunction · 0.80
session.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected