File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Bug fixes
11
11
12
+ * Fixed a bug with ` Chat() ` sometimes silently dropping errors. (#1672 )
13
+
12
14
* ` shiny create ` now uses the template ` id ` rather than the directory name as the default directory. (#1666 )
13
15
14
16
## [ 1.1.0] - 2024-09-03
Original file line number Diff line number Diff line change @@ -571,19 +571,12 @@ async def _stream_task():
571
571
572
572
# Since the task runs in the background (outside/beyond the current context,
573
573
# if any), we need to manually raise any exceptions that occur
574
- try :
575
- ctx = reactive .get_current_context ()
576
- except Exception :
577
- return
578
-
579
574
@reactive .effect
580
575
async def _handle_error ():
581
576
e = _stream_task .error ()
582
577
if e :
583
578
await self ._raise_exception (e )
584
-
585
- ctx .on_invalidate (_handle_error .destroy )
586
- self ._effects .append (_handle_error )
579
+ _handle_error .destroy () # type: ignore
587
580
588
581
async def _append_message_stream (self , message : AsyncIterable [Any ]):
589
582
id = _utils .private_random_id ()
You can’t perform that action at this time.
0 commit comments