MCPcopy
hub / github.com/codeaashu/claude-code / loadRawTranscriptJsonl

Function loadRawTranscriptJsonl

src/components/Feedback.tsx:137–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 });
136}
137async function loadRawTranscriptJsonl(): Promise<string | null> {
138 try {
139 const transcriptPath = getTranscriptPath();
140 const {
141 size
142 } = await stat(transcriptPath);
143 if (size > MAX_TRANSCRIPT_READ_BYTES) {
144 logForDebugging(`Skipping raw transcript read: file too large (${size} bytes)`, {
145 level: 'warn'
146 });
147 return null;
148 }
149 return await readFile(transcriptPath, 'utf-8');
150 } catch {
151 return null;
152 }
153}
154export function Feedback({
155 abortSignal,
156 messages,

Callers 1

FeedbackFunction · 0.85

Calls 4

getTranscriptPathFunction · 0.85
statFunction · 0.85
logForDebuggingFunction · 0.85
readFileFunction · 0.85

Tested by

no test coverage detected