Running ‘test_providers_manual.R’
  Running ‘testthat.R’ [173s/531s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(aisdk)
  > 
  > # Note: helper-env.R is automatically loaded by testthat from tests/testthat/
  > # No need to manually source it here
  > 
  > test_check("aisdk")
  
  > Assistant:
  Mock response
  x Network Connection Interrupted
  i Don't worry! This process is designed to be resilient.
  * If you were running a task, it is safe to re-run.
  * Option 1: Simply run the last command again.
  * Option 2: Ask the agent to 'Continue where you left off'.
  
  > Assistant:
  v Debug view enabled. Detailed tool logs and thinking are now visible.
  v Debug view disabled. Console output is now compact.
  
  > Assistant:
  ok
  v Clipboard image saved to '/tmp/RtmpKpXlrF/working_dir/RtmpzmyWkD/console-startup-25506e204df0a0/.aisdk/cache/images/clipboard-image-test.png'
  
  > Assistant:
  ok
  v Inspect view enabled. Tool timelines are now summarized after each turn.
  v Inspect view disabled. Console output is now clean.
  i Model chooser cancelled.
  v Switched to model: "anthropic:claude-sonnet-4-20250514"
  Current model: "openai:gpt-4o"
  v Reloaded skills: 1 -> 1.
  
  -- Available Skills --
  
  * dummy_skill: A dummy skill
  v Context-window override set to "512.0k".
  v Max output-token override set to "64.0k".
  v Default generation token limit set to "700".
  v Default thinking mode enabled.
  v Default reasoning effort set to "high".
  v Default thinking budget set to "2.0k".
  v Default thinking mode cleared.
  v Custom persona activated.
  v Persona evolved for "custom".
  v Persona reset to default.
  v Inspect overlay opened for the latest turn.
  v Inspect overlay closed.
  v Inspect overlay opened for the latest turn.
  v Inspect overlay moved to the "next" tool.
  v Inspect overlay moved to the "next" tool.
  v Inspect overlay moved to the "prev" tool.
  ⠋ Running R code: packageVersion('ggtree')
  v R code completed
  ⠙ Running r_eval
  x r_eval call had invalid arguments
  ⠹ Running R code: message('heads up'); warning('careful'); 2 + 2
  v R code completed
  
  > Assistant:
  Console protocol worked.
  
  > Assistant:
  我先调用工具。
  
  我先调用工具。工具结果已经处理完。
  
  > Assistant:
  FINAL REPORT
  The package names are available.FINAL REPORT
  The package names are available.
  
  > Assistant:
  ! Cancelled current turn. History was restored to before this request.
  
  > Assistant:
  x Error: boom
  
  [Permission Required] Tool: dangerous_tool
  Arguments:
  []
  Saving _problems/test-r-introspect-tools-197.R
  
  -- Header ----------------------------------------------------------------------
  
  
  -- Header 1 --------------------------------------------------------------------
  
  -- Header 2 --
  
  
  * List item 1
  * List item 2
  
  ```r
  x <- 1
  y <- 2
  ```
  Result text
  Line 1
  Line 2
  Hint: Run check_api(url = 'https://offline.test') to diagnose connection issues.
  [ FAIL 1 | WARN 0 | SKIP 53 | PASS 7964 ]
  
  ══ Skipped tests (53) ══════════════════════════════════════════════════════════
  • API tests disabled: set ENABLE_API_TESTS=TRUE to run live API tests. (5):
    'test-provider-anthropic.R:65:3', 'test-provider-anthropic.R:91:3',
    'test-provider-gemini.R:477:5', 'test-provider-openai.R:863:3',
    'test-provider-openai.R:886:3'
  • On CRAN (40): 'test-computer.R:13:3', 'test-computer.R:24:3',
    'test-computer.R:34:3', 'test-computer.R:45:3', 'test-computer.R:62:3',
    'test-computer.R:79:3', 'test-computer.R:101:3', 'test-computer.R:111:3',
    'test-computer.R:127:3', 'test-computer.R:140:3', 'test-computer.R:151:3',
    'test-computer.R:162:3', 'test-computer.R:173:3', 'test-computer.R:185:3',
    'test-computer.R:198:3', 'test-computer.R:209:3', 'test-computer.R:223:3',
    'test-computer.R:233:3', 'test-computer.R:295:3', 'test-computer.R:316:3',
    'test-computer.R:326:3', 'test-computer.R:341:3',
    'test-provider-anthropic.R:126:3', 'test-provider-openai.R:920:3',
    'test-provider-openai.R:960:3', 'test-provider-openai.R:1003:3',
    'test-provider-openai.R:1059:3', 'test-provider-openai.R:1103:3',
    'test-provider-openai.R:1148:3', 'test-provider-openai.R:1191:3',
    'test-provider-openai.R:1234:3', 'test-provider-openai.R:1278:3',
    'test-provider-openai.R:1363:3', 'test-provider-openai.R:1448:3',
    'test-provider-openai.R:1513:3', 'test-provider-openai.R:1561:3',
    'test-r-introspect-tools.R:336:3', 'test-session.R:184:3',
    'test-session.R:210:3', 'test-session.R:240:3'
  • r-debug skill not installed yet (run devtools::install) (2):
    'test-r-introspect-tools.R:413:3', 'test-r-introspect-tools.R:422:3'
  • {aisdk.channels} is not installed (3): 'test-console-agent.R:813:5',
    'test-console-agent.R:863:5', 'test-console-agent.R:876:5'
  • {aisdk.skills} is not installed (3): 'test-console-agent.R:89:5',
    'test-console-agent.R:106:5', 'test-console-agent.R:139:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-r-introspect-tools.R:197:3'): [B] dynamic-dispatch console_chat() still aborts via subprocess marker ──
  Expected `elapsed` < 5.
  Actual comparison: 7.5 >= 5.0
  Difference: 2.5 >= 0
  
  [ FAIL 1 | WARN 0 | SKIP 53 | PASS 7964 ]
  Error:
  ! Test failures.
  Execution halted