()
| 138 | }); |
| 139 | } |
| 140 | async 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 | } |
| 157 | export function Feedback({ |
| 158 | abortSignal, |
| 159 | messages, |
no test coverage detected