MCPcopy Create free account
hub / github.com/WJX20/claude-code / loadRawTranscriptJsonl

Function loadRawTranscriptJsonl

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

Source from the content-addressed store, hash-verified

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