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.py78 tests for loop state, error detection, resume, and menu recoverytest_trading_loop.pyTests for core trading loop decision handlerstest_connection.py57 tests for connection orchestration and login phases P1/P2test_character_state.py66 tests for character state, diagnostics, and MCP control toolstest_navigation.py50 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.pytest_connection.pytest_character_state.py
Replace blind sleeps with wait_for_update
1 file changed
trading.pyBlind 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.pyspy-agent CLI command addedterminal.pyAnsiBuffer 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.pyterminal.py