stop caching transcriptions and OCR
Both endpoints kept a copy under cache/ and returned it on the next call, and also short-circuited when the sibling .md already existed. So a re-run never re-ran: a bad transcription stayed bad, and there was no way to ask for a fresh one. Every caller passes saveNextTo, so the cache-path return was dead code anyway. Both now always do the work and overwrite the sibling. CACHE_PREFIXES drops the two prefixes, since /save-result has nothing left to promote for them; the tts and audio caches are untouched. Also fixes the task runner output being unreadable in light mode. The panel is a fixed dark terminal, but stdout lines were classed text-foreground, which follows the app theme and renders black on the dark background. They now inherit the pre's own colour. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1263a4f851
commit
d6b4b900ff
+4
-1
@@ -1228,12 +1228,15 @@ const ScriptRunner = ({
|
||||
{runner.output.map((line, i) => (
|
||||
<span
|
||||
key={i}
|
||||
// The panel is a fixed dark terminal, so stdout must inherit the <pre>'s light
|
||||
// colour. `text-foreground` follows the app theme and rendered black-on-black in
|
||||
// light mode.
|
||||
className={
|
||||
line.stream === 'stderr'
|
||||
? 'text-red-400'
|
||||
: line.stream === 'system'
|
||||
? 'text-duck-teal/70'
|
||||
: 'text-foreground'
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
{line.text}
|
||||
|
||||
Reference in New Issue
Block a user