mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 05:07:23 +01:00
OrangeCat, 2026-10-07: dictating into a form ended in "Couldn't transcribe —
check your connection and try again" while the server had answered plainly
(busy, not configured…), and the words were gone — trying again meant saying
it all a second time. chatkit had the same two gaps.
- The server leg's refusal carries the server's own words: postAudio reads
{ error } / { message } / { error: { message } } into a TranscriptionError;
an app's custom `transcribe` can throw one (or anything with `reason`).
Exposed as `problemDetail`, shown beside the problem line, never instead.
- The take is KEPT when transcription fails: `canRetry` + `retry()` send the
same audio again. Anything that moves on (a new take, a dismissal, a
different problem) drops it. Same for a recording handed over as a file.
- Composer: the problem line shows the detail and a "Try again" button
(label `retryTake`).
- Tests: reasonFromBody / reasonOf / TranscriptionError in core; in the
browser, a 429 then a 200 — the reason shows, Try again resends the
identical bytes, the problem clears.
0.3.2. No tag: consumers pin a commit.
Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39
Co-authored-by: Claude <noreply@anthropic.com>