diff --git a/R/utils.R b/R/utils.R index 4fb9e981c..4ff6457f3 100644 --- a/R/utils.R +++ b/R/utils.R @@ -41,10 +41,12 @@ is_rstudio_running <- function() { # Copied from testthat:::is_llm() is_llm <- function() { - nzchar(Sys.getenv("AGENT")) || + isTRUE(getOption("posit_assistant")) || + nzchar(Sys.getenv("AGENT")) || nzchar(Sys.getenv("CLAUDECODE")) || nzchar(Sys.getenv("GEMINI_CLI")) || - nzchar(Sys.getenv("CURSOR_AGENT")) + nzchar(Sys.getenv("CURSOR_AGENT")) || + nzchar(Sys.getenv("CODEX_CI")) } # Suppress cli wrapping