MCPcopy
hub / github.com/steipete/oracle / readStoredPrompt

Function readStoredPrompt

src/cli/sessionDisplay.ts:507–517  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

505}
506
507async function readStoredPrompt(sessionId: string): Promise<string | null> {
508 const request = await readSessionRequest(sessionId);
509 if (request?.prompt && request.prompt.trim().length > 0) {
510 return request.prompt;
511 }
512 const meta = await readSessionMetadata(sessionId);
513 if (meta?.options?.prompt && meta.options.prompt.trim().length > 0) {
514 return meta.options.prompt;
515 }
516 return null;
517}

Callers 1

attachSessionFunction · 0.70

Calls 2

readSessionRequestFunction · 0.85
readSessionMetadataFunction · 0.85

Tested by

no test coverage detected