bbsbot 2026-03-29
251 new tests, spy-agent CLI, undef-terminal ANSI re-export, wait_for_update
28 files · 3,812+ · 506-

251 new tests across core bot subsystems

5 files changed
  • test_loop_state.py 78 tests for loop state, error detection, resume, and menu recovery
  • test_trading_loop.py Tests for core trading loop decision handlers
  • test_connection.py 57 tests for connection orchestration and login phases P1/P2
  • test_character_state.py 66 tests for character state, diagnostics, and MCP control tools
  • test_navigation.py 50 tests for bot_navigation module
  • 251 tests added: 78 for loop state/error detection/resume/menu recovery, tests for trading loop decision handlers, 57 for connection orchestration and login phases P1/P2, 66 for character state/diagnostics/MCP tools, and 50 for bot navigation. Coverage spans the core bot decision loop. qualify internal
    3 files
    • test_loop_state.py
    • test_connection.py
    • test_character_state.py

Replace blind sleeps with wait_for_update

1 file changed
  • trading.py Blind sleeps in haggle and Y/N prompt handlers replaced with wait_for_update calls
  • Blind asyncio.sleep() calls in haggle negotiation and Y/N prompt handlers replaced with wait_for_update() to wait for screen state changes rather than fixed time delays. remediate behavioral
    1 file
    • trading.py

spy-agent CLI and undef-terminal module re-export

2 files changed
  • cli.py spy-agent CLI command added
  • terminal.py AnsiBuffer and ANSI utilities replaced with re-exports from undef-terminal; duplicate terminal modules removed
  • spy-agent CLI command added for direct agent inspection. Duplicate terminal modules replaced with thin re-exports from undef-terminal, removing redundant AnsiBuffer and ANSI utility code. ManagedAgentPlugin wired to app.state for route resolution. instantiate behavioral
    2 files
    • cli.py
    • terminal.py