Commit 04cdbc4
committed
Flag AI post-processing fallbacks in transcription history
Builds on altic-dev#279. After that PR a failed AI cleanup silently falls back
to the raw transcription with only a log line — a broken API key can
go unnoticed. This PR adds a durable visible signal.
Added `aiProcessingError: String?` to TranscriptionHistoryEntry
(Codable via decodeIfPresent — fully back-compat with existing
persisted history, old entries decode with nil). Threaded the
fallback reason into addEntry at the two dictation callsites.
UI:
- History list row shows an orange ⚠ triangle next to entries with
a set aiProcessingError; hover reveals the error message.
- History detail view shows an orange callout card at the top with
the full error message when the entry has one.
I also tried surfacing the failure as a transient message in the notch
overlay, but it was overridden by the post-typing overlay cleanup (the
NotchOverlayManager hide() that fires immediately after typing
completes), so that attempt is left as a follow-up.1 parent 53fbbfc commit 04cdbc4
3 files changed
Lines changed: 69 additions & 5 deletions
File tree
- Sources/Fluid
- Persistence
- UI
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
| 1816 | + | |
1816 | 1817 | | |
1817 | 1818 | | |
1818 | 1819 | | |
| |||
1843 | 1844 | | |
1844 | 1845 | | |
1845 | 1846 | | |
| 1847 | + | |
1846 | 1848 | | |
1847 | 1849 | | |
1848 | 1850 | | |
| |||
1908 | 1910 | | |
1909 | 1911 | | |
1910 | 1912 | | |
1911 | | - | |
| 1913 | + | |
| 1914 | + | |
1912 | 1915 | | |
1913 | 1916 | | |
1914 | 1917 | | |
| |||
2118 | 2121 | | |
2119 | 2122 | | |
2120 | 2123 | | |
| 2124 | + | |
2121 | 2125 | | |
2122 | 2126 | | |
2123 | 2127 | | |
| |||
2127 | 2131 | | |
2128 | 2132 | | |
2129 | 2133 | | |
| 2134 | + | |
2130 | 2135 | | |
2131 | 2136 | | |
2132 | 2137 | | |
| |||
2142 | 2147 | | |
2143 | 2148 | | |
2144 | 2149 | | |
2145 | | - | |
| 2150 | + | |
| 2151 | + | |
2146 | 2152 | | |
2147 | 2153 | | |
2148 | 2154 | | |
| |||
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | | - | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
39 | 63 | | |
40 | 64 | | |
41 | 65 | | |
| |||
95 | 119 | | |
96 | 120 | | |
97 | 121 | | |
98 | | - | |
| 122 | + | |
| 123 | + | |
99 | 124 | | |
100 | 125 | | |
101 | 126 | | |
| |||
104 | 129 | | |
105 | 130 | | |
106 | 131 | | |
107 | | - | |
| 132 | + | |
| 133 | + | |
108 | 134 | | |
109 | 135 | | |
110 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| |||
294 | 301 | | |
295 | 302 | | |
296 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
297 | 329 | | |
298 | 330 | | |
299 | 331 | | |
| |||
0 commit comments