Commit 48bc44a
fix(web): auto-hide error banner when chat error is cleared
The error banner visibility was only set to true when an error occurred,
but was never automatically hidden when the error state was cleared. This
caused stale 'Network error' banners to persist even after a new request
started successfully.
Now the banner visibility is properly synchronized with the error state:
- When error is truthy: banner is visible
- When error is falsy: banner is hidden
This ensures that benign transient errors that get cleared by the AI SDK
(e.g. when a new request starts) no longer leave lingering error banners.
Fixes SOU-2018
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>1 parent 3f98f44 commit 48bc44a
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
424 | 426 | | |
425 | | - | |
426 | | - | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
0 commit comments