Commit f0a334c
authored
feat: close UI visibility gaps — toast, circuit breaker, process logs, adapter selector (#26)
* feat: close UI visibility gaps — toast system, circuit breaker, process logs, adapter selector
Implement 14-step UI gap plan exposing backend capabilities to the frontend:
Backend:
- Circuit breaker snapshot via SlidingWindowBreaker.getSnapshot() with relative timing
- Process output forwarding with secret redaction (PARTICIPANT_ONLY)
- Watchdog timer events for reconnect grace period
- Resume failure broadcasting to consumers
- Session auto-naming from first user message (with secret redaction)
- Adapter selector inbound message type
Frontend:
- Toast notification system (auto-dismiss, FIFO eviction, max 5)
- Circuit breaker banner with live countdown (open/half_open states)
- Watchdog countdown in ConnectionBanner
- Process log drawer with ANSI stripping and ring buffer (200 lines)
- Observer mode banner and action gating
- Permission mode picker with YOLO confirmation dialog
- Adapter selector dropdown in StatusBar
- Model picker with abbreviated names in StatusBar
- Tool result polish: line numbers, copy button, grep highlighting
- Web Audio API completion sound + browser notifications
- Connection health section in TaskPanel
- Session state badges in Sidebar
- Encryption status icon stub in TopBar
Code quality (from dual review):
- Fix circuit breaker casing (backend sends lowercase)
- Memoize breakerEndMs to prevent re-render loops
- Fix observer role check (=== "observer" not !== "participant")
- Add Notification typeof guard for SSR safety
- Strip ANSI from process logs before storing
- Clean processLogBuffers on session close (memory leak fix)
- Clean processLogs in store.removeSession()
- Reset confirmingBypass dialog on session switch
- Fix CopyButton setTimeout cleanup on unmount
- Extract shared useDropdown hook (5 components)
Tests: 419 frontend + 1543 backend passing, TypeScript clean
* fix: broadcastToParticipants excludes owner/operator roles
The role filter used `!== "participant"` which incorrectly skipped
owner and operator roles. Changed to `=== "observer"` to only
exclude read-only observers, matching the PARTICIPANT_ONLY_TYPES
check pattern already used elsewhere.1 parent 8746f5b commit f0a334c
File tree
33 files changed
+2162
-227
lines changed- docs/reviews
- src
- adapters
- sdk-url
- core
- types
- utils
- web/src
- components
- hooks
- utils
33 files changed
+2162
-227
lines changedLarge diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
| |||
234 | 247 | | |
235 | 248 | | |
236 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
237 | 256 | | |
238 | 257 | | |
239 | 258 | | |
| |||
256 | 275 | | |
257 | 276 | | |
258 | 277 | | |
259 | | - | |
| 278 | + | |
| 279 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
513 | 522 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
112 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
248 | 260 | | |
249 | 261 | | |
250 | 262 | | |
251 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
252 | 271 | | |
253 | 272 | | |
254 | 273 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
1351 | 1352 | | |
1352 | 1353 | | |
1353 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
1354 | 1399 | | |
1355 | 1400 | | |
1356 | 1401 | | |
| |||
1386 | 1431 | | |
1387 | 1432 | | |
1388 | 1433 | | |
1389 | | - | |
| 1434 | + | |
1390 | 1435 | | |
1391 | 1436 | | |
1392 | 1437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| |||
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
176 | 234 | | |
177 | 235 | | |
178 | 236 | | |
| |||
290 | 348 | | |
291 | 349 | | |
292 | 350 | | |
| 351 | + | |
293 | 352 | | |
294 | | - | |
| 353 | + | |
295 | 354 | | |
296 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
297 | 361 | | |
298 | 362 | | |
299 | 363 | | |
300 | 364 | | |
| 365 | + | |
| 366 | + | |
301 | 367 | | |
302 | 368 | | |
303 | 369 | | |
304 | 370 | | |
305 | | - | |
| 371 | + | |
306 | 372 | | |
307 | 373 | | |
308 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
183 | 189 | | |
0 commit comments