Description
When running the minimal example from the Readme for R, I get the following error:
library(shiny)
library(bslib)
library(querychat)
querychat_config <- querychat_init(mtcars)
ui <- page_sidebar(
sidebar = querychat_sidebar("chat"),
DT::DTOutput("dt")
)
server <- function(input, output, session) {
querychat <- querychat_server("chat", querychat_config)
output$dt <- DT::renderDT({
DT::datatable(querychat$df())
})
}
shinyApp(ui, server)
Warning: ERROR: An error occurred in `chat_append_stream(id="chat-chat")`
Caused by error in `isIncomplete()`:
! 'con' is not a connection
This is what is looks like in the Viewer:

I'm not sure I'm able to track down exactly where this is happening, but perhaps somewhere in shinychat
?
Session info
``` > sessionInfo() R version 4.5.1 (2025-06-13 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows 11 x64 (build 26100)Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] querychat_0.0.0.9000 bslib_0.9.0 shiny_1.11.1
loaded via a namespace (and not attached):
[1] jsonlite_2.0.0 compiler_4.5.1 renv_1.1.4 promises_1.3.3
[5] Rcpp_1.1.0 later_1.4.2 jquerylib_0.1.4 yaml_2.3.10
[9] fastmap_1.2.0 mime_0.13 R6_2.6.1 curl_6.4.0
[13] httr2_1.2.0 htmlwidgets_1.6.4 tibble_3.3.0 ellmer_0.2.1
[17] DBI_1.2.3 pillar_1.11.0 rlang_1.1.6 DT_0.33
[21] cachem_1.1.0 httpuv_1.6.16 fs_1.6.6 sass_0.4.10
[25] S7_0.2.0 memoise_2.0.1 cli_3.6.5 withr_3.0.2
[29] magrittr_2.0.3 crosstalk_1.2.1 shinychat_0.2.0.9000 digest_0.6.37
[33] xtable_1.8-4 rappdirs_0.3.3 lifecycle_1.0.4 coro_1.1.0
[37] vctrs_0.6.5 glue_1.8.0 whisker_0.4.1 duckdb_1.3.2
[41] purrr_1.1.0 pkgconfig_2.0.3 tools_4.5.1 htmltools_0.5.8.1
</details>